Skip to content

Commit 27fdea8

Browse files
committed
Fix f-n order
1 parent c935c23 commit 27fdea8

File tree

2 files changed

+18
-26
lines changed

2 files changed

+18
-26
lines changed

src/hud/unit_menu/creep_mini_details.gd

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@ var _creep: Creep = null
1212

1313

1414
#########################
15-
### Built-in ###
15+
### Public ###
16+
#########################
17+
18+
func set_creep(creep: Creep):
19+
_creep = creep
20+
21+
22+
#########################
23+
### Private ###
1624
#########################
1725

1826
# NOTE: this code consumes a lot of frametime so it needs to
@@ -39,18 +47,6 @@ func _update_labels():
3947
_dmg_right_label.append_text(dmg_right_text)
4048

4149

42-
#########################
43-
### Public ###
44-
#########################
45-
46-
func set_creep(creep: Creep):
47-
_creep = creep
48-
49-
50-
#########################
51-
### Private ###
52-
#########################
53-
5450
func _get_stats_left_text() -> String:
5551
var slow_amount: float = _creep.get_prop_move_speed() - 1.0
5652
var slow_amount_string: String = Utils.format_percent(slow_amount, 0)

src/hud/unit_menu/tower_mini_details.gd

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ var _tower: Tower = null
1616

1717

1818
#########################
19-
### Built-in ###
19+
### Public ###
20+
#########################
21+
22+
func set_tower(tower: Tower):
23+
_tower = tower
24+
25+
26+
#########################
27+
### Private ###
2028
#########################
2129

2230
# NOTE: this code consumes a lot of frametime so it needs to
@@ -55,18 +63,6 @@ func _update_labels():
5563
_oils_label.append_text(oils_text)
5664

5765

58-
#########################
59-
### Public ###
60-
#########################
61-
62-
func set_tower(tower: Tower):
63-
_tower = tower
64-
65-
66-
#########################
67-
### Private ###
68-
#########################
69-
7066
func _get_dmg_stats_left_text() -> String:
7167
var base_damage: int = roundi(_tower.get_current_attack_damage_base())
7268
var base_damage_string: String = TowerDetails.int_format(base_damage)

0 commit comments

Comments
 (0)