Facility values, per-visitor income and season-ticket price follow Diamond 3.7
kFacilityValue (entries 1, 2, 5), the per-visitor facility income table and the season-ticket price of the first division. Checked against the 3.7 programme in an emulator on whole savegames: weekly statistics now match without difference. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
96d52202fc
commit
73ffd23dcb
5 files changed
+6
-6
No files matched your search
@@ -36,7 +36,7 @@ constexpr uint16_t kFacilityCost[22] = {2000, 3000, 3000, 8000, 4000, 3000, 2500
|
||||
// BalancePlanRuntimeField6: monthly income of the first six facilities (FacilityIncome)
|
||||
constexpr uint16_t kFacilityIncome[6] = {0, 5000, 5000, 4800, 2400, 8000};
|
||||
// BalancePlanRuntimeField7: catering income per visitor of the facilities 0-13 (BookMoney)
|
||||
constexpr uint8_t kPerVisitor[14] = {0, 10, 10, 3, 5, 15, 3, 3, 3, 3, 2, 2, 2, 2};
|
||||
constexpr uint8_t kPerVisitor[14] = {0, 10, 15, 3, 5, 10, 3, 3, 3, 3, 2, 2, 2, 2}; // Diamond 3.7 (entries 2 and 5 were 10 and 15)
|
||||
// Rec32: price units of the six funds (BMH.exe+MonthRuntimeField10)
|
||||
constexpr int32_t kShareUnits[6] = {15, 18, 21, 24, 27, 30};
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ void restore_forfeit_squad(GameState& g, int team) {
|
||||
// per facility 0-13 that exists, BalancePlanRuntimeField7[k] * attendance * level / 100 (level of
|
||||
// facility 0 = its size step), then scaled by W(85, 115) %.
|
||||
int32_t catering_income(const GameState& g, int manager, int32_t spectators, WatcomRandom& rand) {
|
||||
static const uint8_t kPerVisitor[14] = {0, 10, 10, 3, 5, 15, 3, 3, 3, 3, 2, 2, 2, 2}; // BalancePlanRuntimeField7
|
||||
static const uint8_t kPerVisitor[14] = {0, 10, 15, 3, 5, 10, 3, 3, 3, 3, 2, 2, 2, 2}; // BalancePlanRuntimeField7
|
||||
const size_t rec = size_t(manager) * kManagerRecord;
|
||||
uint32_t sum = 0;
|
||||
for (int k = 0; k < 14; k++) {
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ constexpr int kLeagueClubs = 0x8a; // CareerSession_DispatchLineup_RuntimeF
|
||||
// are the extra value above 500 points.
|
||||
constexpr uint8_t kDevelopment[20] = {6, 6, 6, 5, 5, 5, 4, 4, 3, 1, 10, 15, 20, 30, 40, 45, 55, 75, 85, 95};
|
||||
// BalancePlanRuntimeField5: value of the facilities (maintenance per month), u16 per facility.
|
||||
constexpr uint16_t kFacilityValue[22] = {2000, 3000, 3000, 8000, 4000, 3000, 2500, 2500, 2500, 2500, 2600,
|
||||
constexpr uint16_t kFacilityValue[22] = {2000, 10000, 17000, 8000, 4000, 10000, 2500, 2500, 2500, 2500, 2600,
|
||||
2600, 2600, 2600, 13000, 9000, 9000, 8000, 1000, 1500, 1500, 2000};
|
||||
// BalancePlanRuntimeField6: monthly income of facilities 0-5 per level.
|
||||
constexpr uint16_t kFacilityIncome[6] = {0, 5000, 5000, 4800, 2400, 8000};
|
||||
|
||||
+1
-1
@@ -505,7 +505,7 @@ int club_popularity(GameState& g, int m, int team, bool pay) {
|
||||
void season_tickets(GameState& g, int m, WatcomRandom& rand) {
|
||||
static const uint8_t kBase[5] = {50, 40, 30, 30, 20}; // SeasonRuntimeField17
|
||||
static const uint16_t kTickets[5] = {5000, 2000, 1000, 1000, 300}; // SeasonRuntimeField15
|
||||
static const uint16_t kPrice[5] = {330, 270, 240, 240, 225}; // SeasonRuntimeField16
|
||||
static const uint16_t kPrice[5] = {300, 270, 240, 240, 225}; // SeasonRuntimeField16
|
||||
const int team = g.manager_teams.at(size_t(m));
|
||||
const int league = std::min(club_league(team), 4);
|
||||
const int pop = club_popularity(g, m, team, true);
|
||||
|
||||
+2
-2
@@ -76,8 +76,8 @@ constexpr int8_t kEuropeBonus[4] = {0, 1, 3, 2};
|
||||
constexpr uint8_t kWinnerEntry[4] = {0x00, 0x0f, 0x13, 0x15};
|
||||
constexpr int8_t kWinnerBonus[4] = {0x14, 0x1e, 0x14, 0x0f};
|
||||
constexpr int32_t kWinnerPremium[4] = {400000, 850000, 1000000, 850000}; // Diamond 3.7 (500000, 1500000, 2500000, 1500000 before)
|
||||
// Statistics: value of the facilities (BalancePlanRuntimeField5, u16 per facility).
|
||||
constexpr uint16_t kFacilityValue[22] = {2000, 3000, 3000, 8000, 4000, 3000, 2500, 2500, 2500, 2500, 2600,
|
||||
// Statistics: value of the facilities (BalancePlanRuntimeField5, u16 per facility). Diamond 3.7 values (entries 1, 2 and 5 were 3000 before).
|
||||
constexpr uint16_t kFacilityValue[22] = {2000, 10000, 17000, 8000, 4000, 10000, 2500, 2500, 2500, 2500, 2600,
|
||||
2600, 2600, 2600, 13000, 9000, 9000, 8000, 1000, 1500, 1500, 2000};
|
||||
|
||||
struct Record {
|
||||
|
||||
Reference in new issue
Block a user