mirror of
https://github.com/tonytins/citylimits
synced 2025-06-25 09:24:44 -04:00
Reduced starting budget
- Redid money cheat code - Reduced starting budget to 20k now that the money cheat codes can handle any additional income
This commit is contained in:
parent
e86dd64b8b
commit
49a1186115
5 changed files with 26 additions and 12 deletions
|
@ -7,7 +7,7 @@ var prev_quarter: int
|
|||
var quarter: int = 1
|
||||
var population: int = 0
|
||||
var news_ticker: String
|
||||
var budget: int = 10000000
|
||||
var budget: int = 20000
|
||||
var prev_budget: int
|
||||
|
||||
var power_grid: int
|
||||
|
|
|
@ -8,14 +8,31 @@ enum {
|
|||
}
|
||||
|
||||
const valid_commands = [
|
||||
["money", [ARG_INT] ],
|
||||
["whereyoufrom", [ARG_STRING] ]
|
||||
["money", [ARG_STRING] ],
|
||||
["whereyoufrom", [ARG_STRING] ],
|
||||
["whatyearisit", [ARG_STRING] ]
|
||||
]
|
||||
|
||||
func _budget_print(value: int):
|
||||
return "Budget increased to " + str(value)
|
||||
|
||||
func money(value):
|
||||
SimData.budget += int(value)
|
||||
return "Budget changed to " + str(value)
|
||||
var motherlode = 50000
|
||||
var rosebud = 1000
|
||||
if value == "motherlode":
|
||||
SimData.budget += motherlode
|
||||
return _budget_print(motherlode)
|
||||
|
||||
if value == "rosebud":
|
||||
SimData.budget += rosebud
|
||||
return _budget_print(rosebud)
|
||||
|
||||
return ""
|
||||
|
||||
func whereyoufrom(value):
|
||||
SimData.city_name = str(value)
|
||||
return "Changed city name to: " + str(value)
|
||||
|
||||
func whatyearisit(value):
|
||||
SimData.year = int(value)
|
||||
return "Change year to: " + str(value)
|
||||
|
|
|
@ -2,10 +2,6 @@ extends Control
|
|||
|
||||
onready var debug_console = $Console
|
||||
onready var advisor = $AdvsiorNotice
|
||||
# onready var news_ticker = $TickerPanel/ScrollContainer
|
||||
|
||||
func _ready():
|
||||
advisor.show()
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_pressed("ui_cheats"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue