Skip to content

Commit

Permalink
temporary magic test logging removed
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Feb 26, 2025
1 parent e7d653c commit a2d5e6b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion lte/damagefield_firefield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ local function causeDamage(User, quality, penetration)
local damageDealt = math.random(math.min(damageLow, damageHigh), math.max(damageLow, damageHigh)) * (1 - resist + penetration)
damageDealt = math.max(damageDealt, 30)
User:increaseAttrib("hitpoints", -damageDealt)
User:talk(Character.say,"#me takes "..damageDealt.." damage.", "#me takes "..damageDealt.." damage.")
end
end

Expand Down
1 change: 0 additions & 1 deletion lte/damagefield_icefield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ local function causeDamage(User, quality, penetration)
local damageDealt = math.random(math.min(damageLow, damageHigh), math.max(damageLow, damageHigh)) * (1 - resist + penetration)
damageDealt = math.max(damageDealt, 30)
User:increaseAttrib("hitpoints", -damageDealt)
User:talk(Character.say,"#me takes "..damageDealt.." damage.", "#me takes "..damageDealt.." damage.")
end
end

Expand Down
1 change: 0 additions & 1 deletion lte/damagefield_poisoncloud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ local function causeDamage(User, quality, penetration)
local damageDealt = math.random(math.min(damageLow, damageHigh), math.max(damageLow, damageHigh)) * (1 - resist + penetration)
damageDealt = math.max(damageDealt, 30)
User:increaseAttrib("hitpoints", -damageDealt)
User:talk(Character.say,"#me takes "..damageDealt.." damage.", "#me takes "..damageDealt.." damage.")
end
end

Expand Down
1 change: 0 additions & 1 deletion lte/magic_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ function M.callEffect( effect, target )
effect:addValue("damagePerCycle", 0)
end
target:increaseAttrib("hitpoints", - currentDamage)
target:talk(Character.say,"#me takes "..currentDamage.." damage.", "#me takes "..currentDamage.." damage.")
end
effect.nextCalled = 5
return true
Expand Down
1 change: 0 additions & 1 deletion magic/arcane/dealMagicDamage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ function M.dealMagicDamage(user, target, spell, damage, level, DoT, castTime)
end
else
character.ChangeHP(target, -damage)
target:talk(Character.say,"#me takes "..damage.." damage.", "#me takes "..damage.." damage.") --temp logging of damage for testers
end

if not dwyfolTriggered and user then
Expand Down
4 changes: 0 additions & 4 deletions magic/arcane/plantRoot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ function M.applyPlantRoot(user, targets, spell, earthTrap)
end

function M.addEffect(myEffect, target)
log("Magic testing: "..tostring(target.name).."'s speed before application of plant root: "..tostring(target.speed))
local Tah
local SOLH
local Sih
Expand Down Expand Up @@ -315,7 +314,6 @@ function M.addEffect(myEffect, target)
target:inform("Als du von dem Zauber getroffen wirst, fühlst du dich langsamer, als wären deine Füße von Schlamm bedeckt, der dich hinabzieht.", "As you're hit by the spell, you feel yourself slow down as if your feet are covered in mud that's dragging you down.")
target.speed = target.speed - speedChange
end
log("Magic testing: "..tostring(target.name).."'s speed after application of plant root: "..tostring(target.speed))
end

function M.callEffect(myEffect, target)
Expand Down Expand Up @@ -371,7 +369,6 @@ function M.callEffect(myEffect, target)
end
end
target:inform("Deine Füße fühlen sich wieder leichter an, als die Wirkung des Zaubers, von dem du zuvor getroffen wurdest, nachlässt.", "Your feet feel lighter once more as the effect of the spell you were previously hit by wears off.")
log("Magic testing: "..tostring(target.name).."'s speed after last call of snare: "..tostring(target.speed))
return false
end

Expand Down Expand Up @@ -427,7 +424,6 @@ function M.callEffect(myEffect, target)
end
end
end
log("Magic testing: "..tostring(target.name).."'s speed after last call of plant root: "..tostring(target.speed))
return false
end

Expand Down
1 change: 0 additions & 1 deletion monster/base/spells/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ function M.dealMagicDamage(target, damage, usedMovepoints, level, monster)
else
arcaneMagicDamage.learnMagicResistance(target, usedMovepoints/3, level+20) -- Since monster magic uses movepoints instead of cast time, we scale the learning based on that similar to how fighting does it by dividing it by three
target:increaseAttrib("hitpoints", -damage)
target:talk(Character.say,"#me takes "..damage.." damage.", "#me takes "..damage.." damage.")
end
end

Expand Down
2 changes: 0 additions & 2 deletions server/standardfighting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -844,8 +844,6 @@ function CauseDamage(Attacker, Defender, Globals)
-- Add check here for whether Dwyfol has activated to reduce the damage based on magic resistance when magic resistance is applied

character.ChangeHP(Defender.Char,-Globals.Damage) -- Finally dealing the damage.
Defender.Char:talk(Character.say,"#me takes "..Globals.Damage.." damage.", "#me takes "..Globals.Damage.." damage.") --temp logging of damage for testers

chous.apply(Attacker.Char, Defender.Char) --After being hit, this glyph has a chance to activate to teleport the attacker away from the defender
coeden.apply(Defender.Char, Attacker.Char) --After being hit, this glyph has a chance to activate to teleport the defender away from the attacker
end
Expand Down

0 comments on commit a2d5e6b

Please sign in to comment.