Skip to content

Commit

Permalink
Merge pull request #461 from PiotrKaszuba/strange_item_adjust
Browse files Browse the repository at this point in the history
Strange item adjustment
  • Loading branch information
Kvel2D authored Oct 6, 2024
2 parents 9d98534 + 2513e12 commit beddcd5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/items/item_behaviors/strange_item.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
extends ItemBehavior


# [ORIGINAL_GAME_DEVIATION] Removed auto-dropping behavior
# to make Strange Item usable during bonus waves.
#
# In youtd1, Strange Item would automatically drop from
# towers during bonus waves. Note that in youtd1, bonus
# waves did not have individual wave numbers - they were all
# part of wave "241". So Strange Item would not work during
# bonus waves, even if it didn't get auto-removed from
# towers.
#
# In youtd2, bonus waves have their own wave numbers so
# Strange Item can work during bonus waves.


func get_ability_description() -> String:
var text: String = ""

Expand Down Expand Up @@ -70,7 +84,3 @@ func periodic(_event: Event):
new.fly_to_stash(0.0)

item.set_charges(item.user_int)

if cur_level > Utils.get_max_level():
item.drop()
item.fly_to_stash(0.0)

0 comments on commit beddcd5

Please sign in to comment.