Bug Fixes and Feature: Damage Logic and Stability Improvements
1. FEAT: Change of Damaging When Explosive Mob Dies (#23)
What
There was an error in the existing explosive mob explosion processing method, so I changed it to use Q to process it.
Why
Previously, when a Magenta EnemyShip was destroyed by an explosive mob, the damage calculation was handled in the EnemyShipFormation class rather than in the GameScreen class. This caused an issue where the Magenta Mob didn’t drop items upon destruction. This has now been fixed.
Duplicate code has also been removed and refactored for better code maintainability.
Related Issue
Closes dev-jjjjjeong-bin#54 on TA repo
Additional Information
Removed and modified duplicated code in the EnemyShipFormation and GameScreen classes to handle explosion logic more effectively.
2. FIX: Stability Improvement in the actionPerformed Method (#22)
What
Added an index check in the first if statement of the actionPerformed method to improve stability.
Why
The absence of an index validation caused potential crashes when handling enemy ship positioning. This fix prevents index out-of-bounds errors and ensures smoother gameplay.
Related Issue
Closes dev-jjjjjeong-bin#73 on TA repo
Bug Fixes and Feature: Damage Logic and Stability Improvements
1. FEAT: Change of Damaging When Explosive Mob Dies (#23)
What
There was an error in the existing explosive mob explosion processing method, so I changed it to use Q to process it.
Why
Previously, when a Magenta EnemyShip was destroyed by an explosive mob, the damage calculation was handled in the
EnemyShipFormation
class rather than in theGameScreen
class. This caused an issue where the Magenta Mob didn’t drop items upon destruction. This has now been fixed.Related Issue
Closes dev-jjjjjeong-bin#54 on TA repo
Additional Information
EnemyShipFormation
andGameScreen
classes to handle explosion logic more effectively.2. FIX: Stability Improvement in the actionPerformed Method (#22)
What
Added an index check in the first
if
statement of theactionPerformed
method to improve stability.Why
The absence of an index validation caused potential crashes when handling enemy ship positioning. This fix prevents index out-of-bounds errors and ensures smoother gameplay.
Related Issue
Closes dev-jjjjjeong-bin#73 on TA repo