hotfix
Some checks failed
Code Review / iso-8859-1 (push) Failing after 4s
Code Review / formatting (push) Failing after 5s
Code Review / syntax-lua (push) Failing after 3s
Code Review / syntax-npc (push) Failing after 2s
Code Review / header (push) Failing after 4s
Code Review / binary (push) Failing after 8s

This commit is contained in:
brightrim 2026-05-16 14:46:36 +02:00
parent 03ed4145fd
commit 4428069ecb
3 changed files with 9 additions and 2 deletions

View file

@ -153,7 +153,8 @@ M.skillNames = {
Character.bloomweave,
Character.wildweave,
Character.stoneweave,
Character.witherweave
Character.witherweave,
Character.natureResistance
}
local attributeNames={
"agility",

View file

@ -19,6 +19,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
local common = require("base.common")
local character = require("base.character")
local shared = require("magic.nature.shared")
local traps = require("magic.arcane.traps")
local M = {}
@ -86,6 +87,11 @@ function M.CharacterOnField(user)
end
end
if fieldItem:getData("spell") ~= "" then --It is an earth spell trap from arcane magic and not a poison cloud
traps.triggerEarthTrap(fieldItem, user)
return
end
-- dont harm dead chars anymore
if character.GetHP(user) == 0 then
return

View file

@ -24,10 +24,10 @@ local M = {}
function M.addPoison(user, quality, penetration)
penetration = penetration/100 -- We deal with it in decimals but to store it as a value before it had to be a whole integer
local cloakGemBonus = magic.getGemBonusCloak(user)/100
local resistance = shared.getNatureResistance(user)
local damageLow = 100 + 40 * (quality) --Anywhere between 140 and 500
local damageHigh = 100 + 80 * (quality) -- between 180 and 900
local damageDealt = math.random(math.min(damageLow, damageHigh), math.max(damageLow, damageHigh))