Skip to content

Commit 108cc29

Browse files
Fixed an issue where the iron knees wouldn't have any effect
1 parent 80f0824 commit 108cc29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Player.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ func _on_effect_changes(effect:String, added:bool) -> void:
288288

289289

290290
func _on_broken_leg(amount:int) -> void:
291+
if "ironknees" in Items.player_items:
292+
health.broken_moving_appendages -= amount
293+
return
291294
if amount != 0:
292295
Map.play_sound(preload("res://Sfx/broken_legs.wav"), position, 1.0, 0.8+randf()*0.4)
293296
if blood_is_gasoline and health.blood > 0.01:

0 commit comments

Comments
 (0)