mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Rename research_cost_table to kResearchCosts
This commit is contained in:
@@ -580,7 +580,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
int32_t currentResearchLevel = gameState.researchFundingLevel;
|
||||
auto ft = Formatter();
|
||||
ft.Add<money64>(research_cost_table[currentResearchLevel]);
|
||||
ft.Add<money64>(kResearchCosts[currentResearchLevel]);
|
||||
DrawTextBasic(
|
||||
rt, w->windowPos + ScreenCoordsXY{ 10, w->widgets[WIDX_TAB_1].top + 60 }, STR_RESEARCH_COST_PER_MONTH, ft);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
using namespace OpenRCT2;
|
||||
|
||||
// Monthly research funding costs
|
||||
const money64 research_cost_table[RESEARCH_FUNDING_COUNT] = {
|
||||
const money64 kResearchCosts[RESEARCH_FUNDING_COUNT] = {
|
||||
0.00_GBP, // No funding
|
||||
100.00_GBP, // Minimum funding
|
||||
200.00_GBP, // Normal funding
|
||||
@@ -123,7 +123,7 @@ void FinancePayResearch()
|
||||
}
|
||||
|
||||
const uint8_t level = gameState.researchFundingLevel;
|
||||
FinancePayment(research_cost_table[level] / 4, ExpenditureType::research);
|
||||
FinancePayment(kResearchCosts[level] / 4, ExpenditureType::research);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -262,7 +262,7 @@ void FinanceUpdateDailyProfit()
|
||||
|
||||
// Research costs
|
||||
uint8_t level = gameState.researchFundingLevel;
|
||||
current_profit -= research_cost_table[level];
|
||||
current_profit -= kResearchCosts[level];
|
||||
|
||||
// Loan costs
|
||||
auto current_loan = gameState.park.bankLoan;
|
||||
|
||||
@@ -36,7 +36,7 @@ constexpr uint8_t kFinanceHistorySize = 128;
|
||||
|
||||
constexpr uint8_t kMaxBankLoanInterestRate = 255;
|
||||
|
||||
extern const money64 research_cost_table[RESEARCH_FUNDING_COUNT];
|
||||
extern const money64 kResearchCosts[RESEARCH_FUNDING_COUNT];
|
||||
|
||||
bool FinanceCheckMoneyRequired(uint32_t flags);
|
||||
bool FinanceCheckAffordability(money64 cost, uint32_t flags);
|
||||
|
||||
Reference in New Issue
Block a user