UQcsse3200 / 2023-studio-3

MIT License
1 stars 4 forks source link

[Team 4] Mob counter not decrementing #261

Closed meganroxburgh closed 11 months ago

meganroxburgh commented 11 months ago

Description

When playing the game, the mob counter is not being incremented when split moblings are spawned. When they die, they are being successfully decremented from the counter, but this causes the count to become negative and the wave never ends,

How To Reproduce

Play the ice level and add some turrets to attack the mobs. Observe when a slime dies and spawns mini slimes. When they spawn, the counter remains unchanged and when the moblings die, the counter decreases and will eventually become negative and continue to decrement, as there are still mobs remaining in the wave.

Expected Behaviour

The counter should decrement by one anytime a mob dies. Similarly, for the split moblings, it should increment by the number of moblings spawned and then when they die, should be decremented by one.

Temporary Fix

Remove the split moblings component from any mobs - however, this is not ideal as the component is essential to user experience.