Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
repligator committed Nov 4, 2024
1 parent 8bea36f commit e70b1ae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion megamek/data/mekfiles/meks/3075/Grigori C-GRG-O Invictus.mtf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ quirk:imp_com
quirk:imp_sensors
quirk:bad_rep_clan
quirk:bad_rep_is
quirk:animalistic


Mass:60
Expand Down Expand Up @@ -126,7 +127,7 @@ Cockpit
Sensors
Light PPC (omnipod)
Light PPC (omnipod)
-Empty-
Neural Interface
-Empty-
-Empty-
-Empty-
Expand Down
3 changes: 2 additions & 1 deletion megamek/src/megamek/common/Mek.java
Original file line number Diff line number Diff line change
Expand Up @@ -3301,7 +3301,8 @@ public PilotingRollData addEntityBonuses(PilotingRollData roll) {

// VDNI bonus?
if (hasAbility(OptionsConstants.MD_VDNI)
&& !hasAbility(OptionsConstants.MD_BVDNI)) {
&& !hasAbility(OptionsConstants.MD_BVDNI)
&& hasQuirk("animalistic")) {
roll.addModifier(-1, "VDNI");
}

Expand Down
1 change: 1 addition & 0 deletions megamek/src/megamek/common/MiscType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4283,6 +4283,7 @@ public static MiscType createBattleMekNeuralInterfaceUnit() {

misc.name = "Direct Neural Interface Cockpit Modification";
misc.setInternalName("BABattleMechNIU");
misc.setInternalName("Neural Interface");
misc.tonnage = 0.0;
misc.criticals = 0;
misc.cost = 500000;
Expand Down
5 changes: 3 additions & 2 deletions megamek/src/megamek/common/actions/WeaponAttackAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -4150,8 +4150,9 @@ private static ToHitData compileCrewToHitMods(Game game, Entity ae, Entity te, T
// Manei Domini Upgrades

// VDNI
if (ae.hasAbility(OptionsConstants.MD_VDNI)
|| ae.hasAbility(OptionsConstants.MD_BVDNI)) {
if (ae.hasAbility(OptionsConstants.MD_VDNI) && ae.hasQuirk("animalistic")
|| ae.hasAbility(OptionsConstants.MD_BVDNI)
&& ae.hasQuirk("animalistic")){
toHit.addModifier(-1, Messages.getString("WeaponAttackAction.Vdni"));
}

Expand Down

0 comments on commit e70b1ae

Please sign in to comment.