Jump to content

[42.0.2] [rev:25282] Chopping trees with right click 'Cut Down Tree' does not cause durability loss.


Recommended Posts

Posted

Version: [42.0.2]
Mode: [Singleplayer]
Server settings: [N/A]
Mods: [None]
Save: [New Save]
Reproduction steps:
    1. Start a new game and obtain any axe.
    2. Use the right click 'Cut Down Tree' to chop several trees.
    3. Note your axe is still in pristine condition and you have gained no maintenance xp.

Posted

Tree chopping used to have the opposite problem, auto-chopping would use axes up faster than chopping manually.  I guess that bug must have been fixed twice, so now they don't use any durability.

 

-- all of this is handled by tree:WeaponHit in java
-- 		if ZombRand(self.axe:getConditionLowerChance() * 2 + self.character:getMaintenanceMod() * 2) == 0 then
-- 			self.axe:setCondition(self.axe:getCondition() - 1)
-- 			ISWorldObjectContextMenu.checkWeapon(self.character);
-- 		else
-- 			self.character:getXp():AddXP(Perks.Maintenance, 1)
-- 		end


This is the code they commented out.

The WeaponHit function must have been changed as well, because there is nothing in there to damage the axe.

 

Posted

I notice that mine also don't lose durability, but when I crack a zombie head with the axe it lost durability. Maybe they are more durable when using in the "right" way, but still need some tweak 

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...