Page 1 of 1

[b30] Equilibrium gain on hit/archery

Posted: Mon Jul 25, 2011 7:16 am
by lukep
Archery looks like it doesn't regenerate Equilibrium (from hats of Absorption etc...)

From Archery.lua

Code: Select all

	-- Regen on being hit
	if hitted and not target.dead and target:attr("stamina_regen_on_hit") then target:incStamina(target.stamina_regen_on_hit) end
	if hitted and not target.dead and target:attr("mana_regen_on_hit") then target:incMana(target.mana_regen_on_hit) end
Should probably be the same as:

From Combat.lua

Code: Select all

	-- Regen on being hit
	if hitted and not target.dead and target:attr("stamina_regen_on_hit") then target:incStamina(target.stamina_regen_on_hit) end
	if hitted and not target.dead and target:attr("mana_regen_on_hit") then target:incMana(target.mana_regen_on_hit) end
	if hitted and not target.dead and target:attr("equilibrium_regen_on_hit") then target:incEquilibrium(-target.equilibrium_regen_on_hit) end
Found code diving. Haven't tested in game.

Re: [b30] Equilibrium gain on hit/archery

Posted: Fri Jul 29, 2011 8:59 pm
by darkgod
fixed