21 lines
493 B
GDScript3
21 lines
493 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
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
|
||
|
|
||
|
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]]
|