Describe the bug
Bug Description
Game crashed when entering a scripted sequence, I believe because all the in-group NPC's had died.
Expected Behavior
Game doesn't crash.
Steps to Reproduce
- Allow all of your group members to die (random chance).
- Trigger a scripted sequence where the characters gather together.
- Receive a div/0 crash.
Additional Context
Kind of an edge case here I encountered but it should be handled to prevent crashing to desktop.
The error pointed to src/screens/level.py, line 592: 'rot_by = (180) / (len(npcs) - 1)' with a div/0 error.
Possible solutions:
A. Handle the exception in the event all group members have died (shouldn't be able to trigger a gathering sequence with them then I imagine...)
B. Prevent all group members from being able to die.
Version
0.1.0
Which aspect(s) of the project is this bug affecting?
game-gameplay
Screenshots
No response
Relevant log output
No response
Code of Conduct
Describe the bug
Bug Description
Game crashed when entering a scripted sequence, I believe because all the in-group NPC's had died.
Expected Behavior
Game doesn't crash.
Steps to Reproduce
Additional Context
Kind of an edge case here I encountered but it should be handled to prevent crashing to desktop.
The error pointed to src/screens/level.py, line 592: 'rot_by = (180) / (len(npcs) - 1)' with a div/0 error.
Possible solutions:
A. Handle the exception in the event all group members have died (shouldn't be able to trigger a gathering sequence with them then I imagine...)
Version
0.1.0
Which aspect(s) of the project is this bug affecting?
game-gameplay
Screenshots
No response
Relevant log output
No response
Code of Conduct