SelinaDev / Godot-Roguelike-Tutorial

Yet Another Roguelike Tutorial in Godot
MIT License
102 stars 11 forks source link

bug with confused spell at part 9 #7

Closed ghost closed 10 months ago

ghost commented 10 months ago

func perform() -> void: if turns_remaining <= 0: MessageLog.send_message("The %s is no longer confused.", Color.WHITE) entity.ai_component = previous_ai queue_free()

the %s part is not written, it is missing entity.get_entity_name()

thedyze commented 10 months ago

Confirmed.

confused_enemy_ai_component.gd, perform() function should be updated with:

MessageLog.send_message("The %s is no longer confused." % entity.get_entity_name(), Color.WHITE)

SelinaDev commented 10 months ago

Thank you for notifying me. I just uploaded the changes both in this repository and the turorial.