mirror of
https://github.com/tonytins/citylimits
synced 2025-12-15 20:54:43 -05:00
Removed some redundant code
- Change month and day within debug console - Removed get_week() in SimData
This commit is contained in:
parent
622eea364e
commit
ae1b600928
3 changed files with 19 additions and 7 deletions
|
|
@ -11,9 +11,17 @@ const valid_commands = [
|
|||
["money", [ARG_STRING] ],
|
||||
["whereyoufrom", [ARG_STRING] ],
|
||||
["whatyearisit", [ARG_STRING] ],
|
||||
["show_policy", [ARG_INT]]
|
||||
["show_policy", [ARG_INT]],
|
||||
["set_month", [ARG_INT]],
|
||||
["set_year", [ARG_INT]]
|
||||
]
|
||||
|
||||
func set_month(month):
|
||||
SimData.month = month
|
||||
|
||||
func set_year(year):
|
||||
SimData.year = year
|
||||
|
||||
func show_policy(policy):
|
||||
SimEvents.emit_signal("policy_message", policy)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue