Merge branch '1-use-different-cost-category' into 'master'
Resolve "Use different cost category?" Closes #1 See merge request jottyfan/bee-reward!2
This commit is contained in:
@@ -6,7 +6,7 @@ name = BeeReward
|
||||
version =
|
||||
|
||||
description_file = bananas_description.txt
|
||||
url = http://dev.openttdcoop.org/projects/bee-awards
|
||||
url = https://gitlab.com/jottyfan/bee-reward/
|
||||
license = GPL v2
|
||||
tags = cargo, challenge, goal, cooperative, reward
|
||||
openttd_minimum_supported_version = 1.4.2
|
||||
|
||||
@@ -181,8 +181,8 @@ function CompanyGoal::UpdateDelivered(mon, comp_id)
|
||||
}
|
||||
local goal_won_news;
|
||||
if (this.reward > 0) {
|
||||
GSCompany.ChangeBankBalance(comp_id, this.reward, 0);
|
||||
goal_won_news = GSText(GSText.STR_COMPANY_GOAL_REWARD_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news, this.reward);
|
||||
GSCompany.ChangeBankBalance(comp_id, this.reward, GSCompany.EXPENSES_OTHER);
|
||||
// goal_won_news = GSText(GSText.STR_COMPANY_GOAL_REWARD_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news, this.reward);
|
||||
} else {
|
||||
goal_won_news = GSText(GSText.STR_COMPANY_GOAL_WON_NEWS, cargo.cid, this.wanted_amount, destination_string_news);
|
||||
}
|
||||
|
||||
2
info.nut
2
info.nut
@@ -33,7 +33,7 @@ class BeeRewardInfo extends GSInfo {
|
||||
function CreateInstance() { return "BeeRewardClass"; }
|
||||
function GetShortName() { return "BREW"; }
|
||||
function GetAPIVersion() { return "1.5"; }
|
||||
function GetUrl() { return "http://dev.openttdcoop.org/projects/bee-awards"; }
|
||||
function GetUrl() { return "https://gitlab.com/jottyfan/bee-reward/"; }
|
||||
function MinVersionToLoad() { return MINCOMPATIBLE_SAVEGAME_VERSION; }
|
||||
function GetSettings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user