Tchernobill Posted September 6, 2022 Share Posted September 6, 2022 B41.73 PC No Mod CDDA trait Handy active (adds +1 maintenance) among other non related traits. I have a katana in both hands, I push a zombie on purpose (with space bar, it was NOT a short distance backup push). Current: Maintenance levelled up (from 1 to 2) Expected: Maintenance does not get xp when pushing zombie. (as far as I know there is no hand maintenance) trombonaught 1 Link to comment Share on other sites More sharing options...
Hugo Qwerty Posted September 6, 2022 Share Posted September 6, 2022 I've seen this too. The offending code is in zombie.ai.states.SwipeStatePlayer: if (Rand.Next(var6 + var1.getMaintenanceMod() * 2) == 0) { WeaponLowerCondition(var5, var1); } else if (Rand.NextBool(2) && !var5.isRanged() && WeaponType.getWeaponType(var1) != WeaponType.barehand) { if (var5.isTwoHandWeapon() && (var1.getPrimaryHandItem() != var5 || var1.getSecondaryHandItem() != var5) && Rand.NextBool(3)) { return; } var1.getXp().AddXP(Perks.Maintenance, 1.0F); } It appears the code only checks that you have a weapon equipped, so it can give xp for a push - and I think you can also lose weapon condition from the push. Tchernobill 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now