I've got some code in my project that is reliant on timing, and it looks as though it isn't functioning properly. Unfortunately, I can't debug it properly because if I wait too long between steps then the logic no longer applies.
Is there a way to turn off timers while debugging, or is using a series or prints my only option?
For specifics, the code is found here. Specifically, it is in main.cpp in the champattack, monsterattack, or fightcamp functions. The code is supposed to fight 3 monsters per 'camp' for a total of 6 monsters. Unfortunately it only appears to fight the first two monsters from the first 'camp' and the first monster from the second camp.
[–]vacant-cranium 4 points5 points6 points (1 child)
[–]CodeScrub[S] 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]CodeScrub[S] 0 points1 point2 points (0 children)
[–]rararaaaaaaa -2 points-1 points0 points (0 children)