Snayff/nqp2

Combat sometimes doesn't end and can infinitely spawn mobs

Opened this issue · 0 comments

The Bug

Sometimes when combat is won (enemies all defeated) the combat won't end and continues to say "press shift to start combat". You can then press shift continuously to spawn infinite mobs but, after a point, they won't fight your units.

Expected behaviour

When enemy or player units all defeated the combat results screen (ie. win or lose) should trigger and player them prompted to move rooms.

Platform

Describe the system and setup you were using when the bug happened.

  • OS: Windows 10
  • Python Version: 3.9

Log Output/Stack Trace

2022-03-26 21:05:41,837| INFO | Player chose albrom as their commander. Run starting now!
2022-03-26 21:06:07,357| INFO | Moving to new room (combat).
2022-03-26 21:06:19,715| DEBUG | cabalist3 combat chosen.
2022-03-26 21:06:19,715| DEBUG | Unit conjurer(6) created and added to enemy's troupe.
2022-03-26 21:06:19,715| DEBUG | Unit enchanter(7) created and added to enemy's troupe.
2022-03-26 21:06:56,940| DEBUG | hammerites4 combat chosen.
2022-03-26 21:06:56,941| DEBUG | Unit disciple_of_the_hammer(9) created and added to enemy's troupe.
2022-03-26 21:06:56,941| DEBUG | Unit copper_golem(10) created and added to enemy's troupe.
2022-03-26 21:06:56,941| DEBUG | Unit copper_golem(11) created and added to enemy's troupe.
2022-03-26 21:06:58,929| DEBUG | empire3 combat chosen.
2022-03-26 21:06:58,929| DEBUG | Unit infantryman(13) created and added to enemy's troupe.
2022-03-26 21:06:58,930| DEBUG | Unit infantryman(14) created and added to enemy's troupe.
2022-03-26 21:06:58,930| DEBUG | Unit skirmisher(15) created and added to enemy's troupe.
2022-03-26 21:06:58,930| DEBUG | Unit skirmisher(16) created and added to enemy's troupe.
2022-03-26 21:06:59,422| DEBUG | hammerites4 combat chosen.
2022-03-26 21:06:59,423| DEBUG | Unit disciple_of_the_hammer(18) created and added to enemy's troupe.
2022-03-26 21:06:59,423| DEBUG | Unit copper_golem(19) created and added to enemy's troupe.
2022-03-26 21:06:59,423| DEBUG | Unit copper_golem(20) created and added to enemy's troupe.
2022-03-26 21:06:59,634| DEBUG | cabalist5 combat chosen.
2022-03-26 21:06:59,634| DEBUG | Unit apprentice_magi(22) created and added to enemy's troupe.
2022-03-26 21:06:59,634| DEBUG | Unit apprentice_magi(23) created and added to enemy's troupe.
2022-03-26 21:06:59,634| DEBUG | Unit apprentice_magi(24) created and added to enemy's troupe.
2022-03-26 21:06:59,635| DEBUG | Unit magi(25) created and added to enemy's troupe.
2022-03-26 21:06:59,812| DEBUG | hammerites4 combat chosen.
2022-03-26 21:06:59,812| DEBUG | Unit disciple_of_the_hammer(27) created and added to enemy's troupe.
2022-03-26 21:06:59,812| DEBUG | Unit copper_golem(28) created and added to enemy's troupe.
2022-03-26 21:06:59,813| DEBUG | Unit copper_golem(29) created and added to enemy's troupe.
2022-03-26 21:07:00,015| DEBUG | empire1 combat chosen.
2022-03-26 21:07:00,015| DEBUG | Unit infantryman(31) created and added to enemy's troupe.
2022-03-26 21:07:00,016| DEBUG | Unit infantryman(32) created and added to enemy's troupe.
2022-03-26 21:07:00,016| DEBUG | Unit infantryman(33) created and added to enemy's troupe.
2022-03-26 21:07:00,016| DEBUG | Unit infantryman(34) created and added to enemy's troupe.
2022-03-26 21:07:00,016| DEBUG | Unit infantryman(35) created and added to enemy's troupe.
2022-03-26 21:07:08,764| DEBUG | cabalist2 combat chosen.
2022-03-26 21:07:08,764| DEBUG | Unit apprentice_magi(37) created and added to enemy's troupe.
2022-03-26 21:07:08,764| DEBUG | Unit djinn(38) created and added to enemy's troupe.
2022-03-26 21:07:08,764| DEBUG | Unit enchanter(39) created and added to enemy's troupe.
2022-03-26 21:07:10,485| DEBUG | empire1 combat chosen.
2022-03-26 21:07:10,485| DEBUG | Unit infantryman(41) created and added to enemy's troupe.
2022-03-26 21:07:10,486| DEBUG | Unit infantryman(42) created and added to enemy's troupe.
2022-03-26 21:07:10,486| DEBUG | Unit infantryman(43) created and added to enemy's troupe.
2022-03-26 21:07:10,486| DEBUG | Unit infantryman(44) created and added to enemy's troupe.
2022-03-26 21:07:10,486| DEBUG | Unit infantryman(45) created and added to enemy's troupe.
2022-03-26 21:07:11,898| DEBUG | cabalist1 combat chosen.
2022-03-26 21:07:11,899| DEBUG | Unit apprentice_magi(47) created and added to enemy's troupe.
2022-03-26 21:07:11,899| DEBUG | Unit djinn(48) created and added to enemy's troupe.
2022-03-26 21:07:11,899| DEBUG | Unit djinn(49) created and added to enemy's troupe.
2022-03-26 21:07:13,244| DEBUG | cabalist2 combat chosen.
2022-03-26 21:07:13,244| DEBUG | Unit apprentice_magi(51) created and added to enemy's troupe.
2022-03-26 21:07:13,244| DEBUG | Unit djinn(52) created and added to enemy's troupe.
2022-03-26 21:07:13,244| DEBUG | Unit enchanter(53) created and added to enemy's troupe.
2022-03-26 21:07:14,450| DEBUG | empire3 combat chosen.
2022-03-26 21:07:14,450| DEBUG | Unit infantryman(55) created and added to enemy's troupe.
2022-03-26 21:07:14,450| DEBUG | Unit infantryman(56) created and added to enemy's troupe.
2022-03-26 21:07:14,450| DEBUG | Unit skirmisher(57) created and added to enemy's troupe.
2022-03-26 21:07:14,450| DEBUG | Unit skirmisher(58) created and added to enemy's troupe.