Closed charrednewth closed 5 years ago
The flag is not reset every time. It is set to zero if there is no such flag. It is incremented till 100 @line 355, otherwise not modified.
The flag is not reset every time. It is set to zero if there is no such flag. It is incremented till 100 @line 355, otherwise not modified.
Please test before you reply with a wrong answer: The intended check would be "if not hero.flag('diving_city_beach'):" (edit: hero.has_flag('vitality_bonus_from_diving_at_beach'), actually.)
global_flags.has_flag('vitality_bonus_from_diving_at_beach') is False and always will be...
Either way there is no point in having that "if" every single diving attempt.
sorry, you are right. A fix is committed.
np. Glad to be of assistance.
PyTFall/game/code/locations/beach/beach.rpy
Hero can currently gain infinite vitality with diving (flag resets every time) lines 277 -> 282
Simple fix:
Flag would be set to 0 only once, just at the first click on 'diving'.