kanethemediocre / BlingHustle

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

Destroy mission cheese #16

Closed kanethemediocre closed 3 years ago

kanethemediocre commented 3 years ago

If a destroy mission refers to a bot that is already dead, the mission instantly completes on acceptance. Should re-spawn the bot instead.

kanethemediocre commented 3 years ago

Mission class now has member function "take()" which both sets ".taken" member variable to true and respawns the relevant ship if the mission is of type "destroy". Using this (replacing a statement that simply sets the taken variable to true) has removed the cheese.