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.
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.
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. ThehealHits
function should just check for going below zero.