feat: Add widen street upgrade
This commit is contained in:
parent
a5070e768c
commit
e1dc2f7420
|
|
@ -21,11 +21,31 @@ func update() -> void:
|
|||
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_wn1cs"]
|
||||
script/source = "extends Node
|
||||
|
||||
var enabled: bool = false
|
||||
var cost: int = 3
|
||||
var upgrade_name: String = \"Carrers amples\"
|
||||
var upgrade_description: String = \"Augmenta la amplaria dels carrers\"
|
||||
var icon: Texture2D = preload(\"res://assets/Images/Xenia Drawing 6.svg\")
|
||||
|
||||
func update() -> void:
|
||||
if enabled:
|
||||
print(\"Updating street width\")
|
||||
Global.street_width = 50
|
||||
else:
|
||||
Global.street_width = 40
|
||||
"
|
||||
|
||||
[node name="SpecialUpgrades" type="Node" unique_id=1238785974]
|
||||
script = ExtResource("1_76f4f")
|
||||
|
||||
[node name="ChunkSize" type="Node" parent="." unique_id=1030985851]
|
||||
script = SubResource("GDScript_8j6ry")
|
||||
|
||||
[node name="WidenStreet" type="Node" parent="." unique_id=243992892]
|
||||
script = SubResource("GDScript_wn1cs")
|
||||
|
||||
[node name="CameraZoom" type="Node" parent="." unique_id=1211450879]
|
||||
script = ExtResource("2_wn1cs")
|
||||
|
|
|
|||
Loading…
Reference in New Issue