Room prices are no longer hardcoded

Office node now uses a generic room script with exported variables that control the price, income, ect...
This commit is contained in:
Anthony Foxclaw 2020-04-12 17:33:56 -04:00
parent 8586220975
commit dff1abaf49
3 changed files with 39 additions and 27 deletions

View file

@ -1,9 +1,14 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://src/office.gd" type="Script" id=1]
[ext_resource path="res://src/room.gd" type="Script" id=1]
[node name="Office" type="Node2D"]
script = ExtResource( 1 )
room_cost = 1000
room_income = 500
room_expense = 350
room_capacity = 1
is_rentable = true
[node name="Rent" type="Timer" parent="."]
wait_time = 5.0