mirror of
https://github.com/tpawstdio/skyscraperrising.git
synced 2025-06-25 09:34:43 -04:00
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:
parent
8586220975
commit
dff1abaf49
3 changed files with 39 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue