Jump to content

[41.73] Maintenance improved while pushing a zombie


Tchernobill

Recommended Posts

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)

Link to comment
Share on other sites

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.
 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...