Package megamek.common.rules.core
Class CoreRulesWeapons
java.lang.Object
megamek.common.rules.RulesWeapons
megamek.common.rules.core.CoreRulesWeapons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHGRTriggerPSR(int mpUsed, int weightClass) Does the HGR trigger a PSR?booleanCan ultra autocannons jam?checkPPCCapacitor(int roll, Entity attackingEntity, WeaponMounted weapon) PPC Capacitor check.booleanflamerHeatAndDamage(boolean bmmFlamers) Do flamers do damage and heat.booleanDoes Apollo have saturation mode?intDoes Apollo change to-hit number.intWhat size do ATMs cluster in.intgetELRMMinimumRackSize(int rackSize) Do ELRMs reduce rack size under minimums?intIncrease the number of hits for MGA.intgetMRMClusterModifier(boolean apollo) What is the cluster modifier for MRMs.intgetMRMModifier(int modifier) What is the modifier on MRMs.booleanDoes a RAC unjamming cause issues?voidsetACHit(CriticalSlot cs, Mounted<?> mounted, Vector<Report> reports, int entityId) What happens when an AC is hit.
-
Constructor Details
-
CoreRulesWeapons
public CoreRulesWeapons()
-
-
Method Details
-
getRACUnjamRestriction
public boolean getRACUnjamRestriction()Does a RAC unjamming cause issues? RAC unjamming does not limit other actions outside of movement Core p.183- Specified by:
getRACUnjamRestrictionin classRulesWeapons- Returns:
- true if RAC unjamming has restrictions
-
getATMClusterSize
public int getATMClusterSize()What size do ATMs cluster in. ATM cluster size Core p.186- Specified by:
getATMClusterSizein classRulesWeapons- Returns:
- the ATM cluster size
-
canUACsJam
public boolean canUACsJam()Can ultra autocannons jam? UACs cannot jam Core p.183- Specified by:
canUACsJamin classRulesWeapons- Returns:
- true if ultra autocannons can jam
-
setACHit
What happens when an AC is hit. ACs can get hit one time. Core p.183- Specified by:
setACHitin classRulesWeapons- Parameters:
cs- the critical slot being hitmounted- the mounted weaponreports- vector of reports describing the hitentityId- the ID of the entity being hit
-
getELRMMinimumRackSize
public int getELRMMinimumRackSize(int rackSize) Do ELRMs reduce rack size under minimums? ELRMS under minimum do not reduce missiles that hit. Core p.186- Specified by:
getELRMMinimumRackSizein classRulesWeapons- Parameters:
rackSize- the rack size- Returns:
- the minimum ELRM rack size
-
getMRMModifier
public int getMRMModifier(int modifier) What is the modifier on MRMs. MRMs have no additional modifier Core p.186- Specified by:
getMRMModifierin classRulesWeapons- Parameters:
modifier- the base modifier- Returns:
- the MRM modifier
-
getMRMClusterModifier
public int getMRMClusterModifier(boolean apollo) What is the cluster modifier for MRMs. MRMs are -1 on the cluster hit Core p.186. With apollo they are 0. Core p.197- Specified by:
getMRMClusterModifierin classRulesWeapons- Parameters:
apollo- true if Apollo fire control is used- Returns:
- the MRM cluster modifier
-
getApolloToHit
public int getApolloToHit()Does Apollo change to-hit number. Apollo does not change the to-hit Core p.197- Specified by:
getApolloToHitin classRulesWeapons- Returns:
- the Apollo to-hit modifier
-
flamerHeatAndDamage
public boolean flamerHeatAndDamage(boolean bmmFlamers) Do flamers do damage and heat. Flamers do heat and damage Core p.183- Specified by:
flamerHeatAndDamagein classRulesWeapons- Parameters:
bmmFlamers- true if using alternate flamer rules- Returns:
- true if flamers do both damage and heat
-
checkPPCCapacitor
PPC Capacitor check. PPC Capacitors don't break on roll. Core p.188- Specified by:
checkPPCCapacitorin classRulesWeapons- Parameters:
roll- the dice roll resultattackingEntity- the entity firing the PPCweapon- the PPC weapon being fired- Returns:
- a report of the capacitor check result
-
getMGABonus
public int getMGABonus()Increase the number of hits for MGA. MGA gives +2 to cluster roll. Core p.185- Specified by:
getMGABonusin classRulesWeapons- Returns:
- the MGA bonus
-
canHGRTriggerPSR
public boolean canHGRTriggerPSR(int mpUsed, int weightClass) Does the HGR trigger a PSR? HGR does not cause PSRs- Specified by:
canHGRTriggerPSRin classRulesWeapons- Parameters:
mpUsed- the movement points usedweightClass- the weight class of the unit- Returns:
- true if HGR can trigger a piloting skill roll
-
getApolloSaturationMode
public boolean getApolloSaturationMode()Does Apollo have saturation mode? Returns True. we have Saturation Mode- Overrides:
getApolloSaturationModein classRulesWeapons- Returns:
- default of false. This is only in core and newer.
-