kanethemediocre / BlingHustle

Open sauce 2d space adventure
GNU General Public License v3.0
0 stars 0 forks source link

Ghost town #30

Closed kanethemediocre closed 3 years ago

kanethemediocre commented 3 years ago

After 15 min ish in home system, most planets lacked bots in recent test. Possible respawn due to distance failure in the AI, which has been shuffled around a lot.

kanethemediocre commented 3 years ago

Respawn checked distance and hitpoints (to verify enemy was alive), but the hitpoint check still pointed at this.hp instead of this.ships[i].hp, so the if statement always evaluated as false because this.hp is meaningless within the System class.