2024-08-05 00:33:57 +02:00
|
|
|
extends Node2D
|
2024-09-06 02:16:49 +02:00
|
|
|
var hkr
|
|
|
|
var troublemaker
|
|
|
|
var travel = null
|
2024-08-05 00:33:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
2024-09-06 02:16:49 +02:00
|
|
|
hkr = $Railwaygirl
|
|
|
|
troublemaker = $Pamela
|
2024-08-05 00:33:57 +02:00
|
|
|
if !Global.debug:
|
|
|
|
_statrebase()
|
|
|
|
Global.live = 1
|
|
|
|
#pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
2024-09-06 02:16:49 +02:00
|
|
|
func _input(event):
|
|
|
|
if Input.is_action_just_pressed("ui_accept") && travel != null:
|
|
|
|
if Global.debug:
|
|
|
|
Global.dplace = travel
|
|
|
|
else:
|
|
|
|
Global.cplace = travel
|
|
|
|
Global.live = 5
|
|
|
|
|
2024-08-05 00:33:57 +02:00
|
|
|
func _statrebase():
|
|
|
|
for i in 4:
|
|
|
|
if Global.party[i][0] != null:
|
|
|
|
for j in 7:
|
|
|
|
Global.cstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]
|
2024-09-06 02:16:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
func _on_railwaygirl_body_entered(body: Node2D) -> void:
|
|
|
|
travel = [1, 8, 11]
|
|
|
|
|
|
|
|
|
|
|
|
func _on_railwaygirl_body_exited(body: Node2D) -> void:
|
|
|
|
travel = null
|
|
|
|
|
|
|
|
|
|
|
|
func _on_pamela_body_entered(body: Node2D) -> void:
|
|
|
|
travel = [1, 1, 17]
|
|
|
|
|
|
|
|
|
|
|
|
func _on_pamela_body_exited(body: Node2D) -> void:
|
|
|
|
travel = null
|