Package megamek.server.commands
Class SkillModifierCommand
java.lang.Object
megamek.server.commands.ServerCommand
megamek.server.commands.ClientServerCommand
megamek.server.commands.GamemasterServerCommand
megamek.server.commands.SkillModifierCommand
The gamemaster command "/skillMod" that gives a unit's crew a temporary skill change: a delta to gunnery and
piloting, and a delta to the unit's individual initiative roll, lasting a set number of rounds or until cleared.
Skill deltas are added to the skill number, so a negative delta improves the crew (a -1 makes a 4 gunner a 3) and
a positive delta worsens it; the initiative delta is added to the roll, where a positive delta is the improvement. A
duration of TemporarySkillModifiers.PERMANENT lasts until cleared, and a duration of 0 clears whatever is
active. The stored skills are never touched, so the change reverses itself completely when it expires.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class megamek.server.commands.ClientServerCommand
errorMsg, gameManager, loggerFields inherited from class megamek.server.commands.ServerCommand
server -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class megamek.server.commands.GamemasterServerCommand
postRunCommand, preRunMethods inherited from class megamek.server.commands.ClientServerCommand
getGameManager, getHelp, getHelpHtml, getLongName, isGM, isOutsideOfBoard, parseArguments, run, safeParseArgumentsAndRunMethods inherited from class megamek.server.commands.ServerCommand
canRunRestrictedCommand, getName
-
Field Details
-
UNIT_ID
- See Also:
-
GUNNERY
- See Also:
-
PILOTING
- See Also:
-
INITIATIVE
- See Also:
-
ROUNDS
- See Also:
-
-
Constructor Details
-
SkillModifierCommand
-
-
Method Details
-
defineArguments
- Overrides:
defineArgumentsin classClientServerCommand
-
runCommand
- Specified by:
runCommandin classClientServerCommand
-