Package mekhq.campaign.mod.am
Class InjuryTypes.BrokenRib
java.lang.Object
mekhq.campaign.personnel.InjuryType
mekhq.campaign.mod.am.InjuryTypes.BrokenRib
- Enclosing class:
- InjuryTypes
-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.personnel.InjuryType
InjuryType.XMLAdapter
-
Field Summary
Fields inherited from class mekhq.campaign.personnel.InjuryType
allowedLocations, BAD_HEALTH, fluffText, level, maxSeverity, MODTAG_INJURY, permanent, recoveryTime, simpleName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenStressEffect
(Campaign c, Person p, Injury i, int hits) Return a function which will generate a list of effects combat and similar stressful situation while injured would have on the person in question given the random integer source.protected int
modifyInjuryTime
(Campaign campaign, Person person, int time) newInjury
(Campaign c, Person p, BodyLocation loc, int severity) Methods inherited from class mekhq.campaign.personnel.InjuryType
byId, byKey, getAllKeys, getAllTypes, getBaseRecoveryTime, getFluffText, getId, getKey, getLevel, getMaxSeverity, getModifiers, getName, getRecoveryTime, getRecoveryTime, getSimpleName, getSimpleName, impliesDead, impliesMissingLocation, isHidden, isPermanent, isValidInLocation, newResetRecoveryTimeAction, register, register
-
Constructor Details
-
BrokenRib
public BrokenRib()
-
-
Method Details
-
genStressEffect
Description copied from class:InjuryType
Return a function which will generate a list of effects combat and similar stressful situation while injured would have on the person in question given the random integer source. Descriptions should be something like "50% chance of losing a leg" and similar.Note that specific systems aren't required to use this generator. They are free to implement their own.
- Overrides:
genStressEffect
in classInjuryType
-
modifyInjuryTime
-
newInjury
- Overrides:
newInjury
in classInjuryType
-