File tree Expand file tree Collapse file tree 2 files changed +18
-26
lines changed Expand file tree Collapse file tree 2 files changed +18
-26
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,15 @@ var _creep: Creep = null
12
12
13
13
14
14
## #######################
15
- ## # Built-in ###
15
+ ## # Public ###
16
+ ## #######################
17
+
18
+ func set_creep (creep : Creep ):
19
+ _creep = creep
20
+
21
+
22
+ ## #######################
23
+ ## # Private ###
16
24
## #######################
17
25
18
26
# NOTE: this code consumes a lot of frametime so it needs to
@@ -39,18 +47,6 @@ func _update_labels():
39
47
_dmg_right_label .append_text (dmg_right_text )
40
48
41
49
42
- ## #######################
43
- ## # Public ###
44
- ## #######################
45
-
46
- func set_creep (creep : Creep ):
47
- _creep = creep
48
-
49
-
50
- ## #######################
51
- ## # Private ###
52
- ## #######################
53
-
54
50
func _get_stats_left_text () -> String :
55
51
var slow_amount : float = _creep .get_prop_move_speed () - 1.0
56
52
var slow_amount_string : String = Utils .format_percent (slow_amount , 0 )
Original file line number Diff line number Diff line change @@ -16,7 +16,15 @@ var _tower: Tower = null
16
16
17
17
18
18
## #######################
19
- ## # Built-in ###
19
+ ## # Public ###
20
+ ## #######################
21
+
22
+ func set_tower (tower : Tower ):
23
+ _tower = tower
24
+
25
+
26
+ ## #######################
27
+ ## # Private ###
20
28
## #######################
21
29
22
30
# NOTE: this code consumes a lot of frametime so it needs to
@@ -55,18 +63,6 @@ func _update_labels():
55
63
_oils_label .append_text (oils_text )
56
64
57
65
58
- ## #######################
59
- ## # Public ###
60
- ## #######################
61
-
62
- func set_tower (tower : Tower ):
63
- _tower = tower
64
-
65
-
66
- ## #######################
67
- ## # Private ###
68
- ## #######################
69
-
70
66
func _get_dmg_stats_left_text () -> String :
71
67
var base_damage : int = roundi (_tower .get_current_attack_damage_base ())
72
68
var base_damage_string : String = TowerDetails .int_format (base_damage )
You can’t perform that action at this time.
0 commit comments