mirror of
https://github.com/tonytins/citylimits
synced 2025-12-18 13:54:43 -05:00
Tax system
- New tax system - Advisor window modeled after SC3k's - Advisor start_dialogue() function is now connected to a SimEvent "advisor_message" signal - Advisor windows are now autoloaded and no longer part of the core interface node - Added 3D buildings from Micropolis repo
This commit is contained in:
parent
49a1186115
commit
e5505a3244
243 changed files with 3853 additions and 224 deletions
16
scripts/power_station.gd
Normal file
16
scripts/power_station.gd
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
extends "res://scripts/zone.gd"
|
||||
|
||||
func _ready():
|
||||
SimEvents.connect("has_power", self, "_power_zones")
|
||||
|
||||
func _power_zones():
|
||||
SimData.power_grid += 1
|
||||
|
||||
if SimData.power_grid <= 1:
|
||||
SimData.has_power = true
|
||||
|
||||
func _input(event):
|
||||
_drag_drop(event)
|
||||
|
||||
if can_grab == false:
|
||||
SimEvents.emit_signal("has_power")
|
||||
Loading…
Add table
Add a link
Reference in a new issue