AaronGullickson / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.info/mekhq
2 stars 0 forks source link

Add takeHits and healHits to ChangePersonStoryTrigger #42

Closed AaronGullickson closed 8 months ago

AaronGullickson commented 8 months ago

I use setHits to assign hits to the belligerents in the trothkin fight depending on outcome. However, I am realizing that this is not right as they may already have taken hits from combat. In fact, they may die of taking wounds in that fight even if its not lethal.

To deal with this I need to add functions to increment or decrement hits to the ChangePersonStoryTrigger. The takeHits method should also check to see if hits >= 6 and if so change status to KIA. The healHits function should just check for going below zero.

AaronGullickson commented 8 months ago

Added in 44c77cd52f