mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-22 07:22:20 +00:00
- Added another existing character, Cindy Diamond, to take over as City Planning now that City Limits officially takes place in Nethington. Zack now handles transport. - News keys are now properly shuffled after index. - Updated screenshot to the recent look - Simplified money cheat - Updated credits in README
28 lines
517 B
GDScript
28 lines
517 B
GDScript
extends Node
|
|
|
|
enum {
|
|
ARG_INT,
|
|
ARG_STRING,
|
|
ARG_BOOL,
|
|
ARG_FLOAT
|
|
}
|
|
|
|
const valid_commands = [
|
|
["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)
|
|
|
|
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)
|