gamemanual:gm_lobbying
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gamemanual:gm_lobbying [2022/08/22 10:55] – [Lobbying Funds] admin | gamemanual:gm_lobbying [2022/08/22 15:33] (current) – [Variables] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======= Lobbying ======= | ||
| + | |||
| + | The Game Mechanics section of the manual details the internal formula used in the game's calculations. | ||
| + | |||
| + | The Game Mechanics part of the manual is mainly designed to be a reference for the frequently asked question, "Why do I get this rating when I do X, Y, Z?!" Usually, this answer involves many different variables, which this section of the manual demonstrates. | ||
| + | |||
| + | **The game mechanics section of the manual shows [[https:// | ||
| + | |||
| + | |||
| + | ===== Variables ===== | ||
| + | |||
| + | |||
| + | ^ Name ^ Description ^ ^ Name ^ Description ^ | ||
| + | | **totalNumberOfCitiesOrTerritories** | This is the total number of cities or territories on the game map. | | **Number Of Factories** | This is the number of factories the company owns. | | ||
| + | | **Number of Branches** | This is the number of branches the company owns. | | **ex_1d045p_year99** | 1.045%%^%%(year-1899) | | ||
| + | | **Lobbying_Budget** | This is the company' | ||
| + | |||
| + | |||
| + | ===== Maximum Lobbying Funds ===== | ||
| + | |||
| + | <code cpp> | ||
| + | |||
| + | cityAdjustment = 100.0/ | ||
| + | |||
| + | maximumLobbyingBudget = 25000; | ||
| + | |||
| + | lobbySize = (1 + (2 * Number Of Factories) + ( 0.5 * Number of Branches); | ||
| + | |||
| + | if(year < 2020) | ||
| + | { | ||
| + | maximumLobbyingBudget = 25000 * lobbySize * ex_1d045p_year99 * cityAdjustment; | ||
| + | } | ||
| + | else | ||
| + | { | ||
| + | maximumLobbyingBudget = 25000 * lobbySize * 205.62274 * cityAdjustment; | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | ===== Lobbying Effectiveness ===== | ||
| + | |||
| + | <code cpp> | ||
| + | |||
| + | if(Lobbying_Effectiveness_Budget < Lobbying_Budget * 0.05) | ||
| + | Lobbying_Effectiveness_Budget = Lobbying_Budget * 0.05; | ||
| + | |||
| + | if (Lobbying_Effectiveness_Budget < Lobbying_Budget) | ||
| + | Lobbying_Effectiveness_Budget = Lobbying_Effectiveness_Budget * 1.10 + 10; | ||
| + | |||
| + | if (Lobbying_Effectiveness_Budget > Lobbying_Budget) | ||
| + | Lobbying_Effectiveness_Budget = Lobbying_Budget; | ||
| + | |||
| + | Lobbying_Effectiveness = Lobbying_Effectiveness_Budget / maximumLobbyingBudget; | ||
| + | |||
| + | </ | ||