mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
More changes
This commit is contained in:
parent
37d04344ae
commit
f374ee3be9
35 changed files with 38 additions and 38 deletions
|
@ -14,6 +14,6 @@ function onBlock(effect, attacker, defender, skill, action, actionContainer)
|
|||
|
||||
--33008: You recover x HP from Aegis Boon
|
||||
defender.AddHP(absorbAmount);
|
||||
actionContainer.AddHPAction(defender.actorId, 33008, absorbAmount);
|
||||
actionContainer.AddHPAction(defender.Id, 33008, absorbAmount);
|
||||
defender.statusEffects.RemoveStatusEffect(effect, actionContainer);
|
||||
end;
|
|
@ -18,7 +18,7 @@ function onHit(effect, attacker, defender, skill, action, actionContainer)
|
|||
|
||||
attacker.AddHP(absorbAmount);
|
||||
--30332: You absorb hp from target
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 30332, absorbAmount)
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 30332, absorbAmount)
|
||||
--Bloodbath is lost after absorbing hp
|
||||
defender.statusEffects.RemoveStatusEffect(effect,actionContainer, 30331, false);
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ function onDamageTaken(effect, attacker, defender, skill, action, actionContaine
|
|||
|
||||
defender.AddHP(absorbAmount);
|
||||
--30451: You recover [absorbAmount] HP.
|
||||
actionContainer.AddHPAction(defender.actorId, 30451, absorbAmount)
|
||||
actionContainer.AddHPAction(defender.Id, 30451, absorbAmount)
|
||||
--Dread Spike is lost after absorbing hp
|
||||
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
|
||||
end
|
||||
|
|
|
@ -20,7 +20,7 @@ function onEvade(effect, attacker, defender, skill, action, actionContainer)
|
|||
local mpToReturn = percent * action.amountMitigated;
|
||||
defender.AddMP(math.ceil(mpToReturn));
|
||||
--33010: You recover x MP from Featherfoot
|
||||
actionContainer.AddMPAction(defender.actorId, 33010, mpToReturn);
|
||||
actionContainer.AddMPAction(defender.Id, 33010, mpToReturn);
|
||||
--Featherfoot is lost after evading
|
||||
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
|
||||
end;
|
|
@ -14,6 +14,6 @@ function onHit(effect, attacker, defender, skill, action, actionContainer)
|
|||
|
||||
local amount = math.floor((healPercent * action.amount) + 1);
|
||||
attacker.AddHP(amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 30332, amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 30332, amount);
|
||||
end
|
||||
end;
|
|
@ -10,6 +10,6 @@ function onHit(effect, attacker, defender, skill, action, actionContainer)
|
|||
|
||||
local amount = math.floor((healPercent * action.amount) + 1);
|
||||
attacker.AddHP(amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 30332, amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 30332, amount);
|
||||
end
|
||||
end;
|
|
@ -14,6 +14,6 @@ function onHit(effect, attacker, defender, skill, action, actionContainer)
|
|||
|
||||
local amount = math.floor((healPercent * action.amount) + 1);
|
||||
attacker.AddHP(amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 30332, amount);
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 30332, amount);
|
||||
end
|
||||
end;
|
|
@ -6,7 +6,7 @@ function onHit(effect, attacker, defender, skill, action, actionContainer)
|
|||
--Necrogenesis returns 75% of damage done rounded up(?) as MP.
|
||||
local hpToReturn = math.ceil(0.75 * action.amount);
|
||||
attacker.AddHP(hpToReturn);
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 33012, hpToReturn);
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 33012, hpToReturn);
|
||||
attacker.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
|
||||
end
|
||||
end
|
|
@ -19,6 +19,6 @@ function onBlock(effect, attacker, defender, skill, action, actionContainer)
|
|||
local mpToReturn = math.ceil(0.10 * action.amount);
|
||||
defender.AddMP(math.ceil(mpToReturn));
|
||||
--33009: You recover x MP from Outmaneuver
|
||||
actionContainer.AddMPAction(defender.actorId, 33009, mpToReturn);
|
||||
actionContainer.AddMPAction(defender.Id, 33009, mpToReturn);
|
||||
end
|
||||
end;
|
|
@ -27,7 +27,7 @@ function onCrit(effect, attacker, defender, skill, action, actionContainer)
|
|||
healAmount = math.Clamp(healAmount, 0, attacker.GetMaxHP() - attacker.GetHP());
|
||||
attacker.AddHP(healAmount);
|
||||
--33012: You recover [healAmount] HP.
|
||||
actionContainer.AddHPAbsorbAction(defender.actorId, 33008, healAmount);
|
||||
actionContainer.AddHPAbsorbAction(defender.Id, 33008, healAmount);
|
||||
end;
|
||||
|
||||
--"Effect fades over time"
|
||||
|
|
|
@ -4,5 +4,5 @@ require("modifiers")
|
|||
function onDamageTaken(effect, attacker, defender, skill, action, actionContainer)
|
||||
local mpToRestore = action.amount * 0.30;
|
||||
defender.AddMP(mpToRestore);
|
||||
actionContainer.AddMPAction(defender.actorId, 33011, mpToRestore);
|
||||
actionContainer.AddMPAction(defender.Id, 33011, mpToRestore);
|
||||
end
|
|
@ -18,5 +18,5 @@ end;
|
|||
function onDamageTaken(effect, attacker, defender, skill, action, actionContainer)
|
||||
local mpToRestore = action.amount * 0.30;
|
||||
defender.AddMP(mpToRestore);
|
||||
actionContainer.AddMPAction(defender.actorId, 33011, mpToRestore);
|
||||
actionContainer.AddMPAction(defender.Id, 33011, mpToRestore);
|
||||
end
|
|
@ -10,6 +10,6 @@ function onDamageTaken(effect, attacker, defender, skill, action, actionContaine
|
|||
--30350: Counter! You hit target for x points of damage
|
||||
--There are counter messages for blocks, can Vengeance be blocked/parried?
|
||||
attacker.DelHP(amount, actionContainer);
|
||||
actionContainer.AddHitAction(attacker.actorId, 30350, amount);
|
||||
actionContainer.AddHitAction(attacker.Id, 30350, amount);
|
||||
end;
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue