mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
added mob name colour update
- added mobmods (need to be loaded from db) - added Zone.GetBattleNpcById - added missing IsValidTarget check in AttackState
This commit is contained in:
parent
9077c60b96
commit
ce5030acd1
18 changed files with 434 additions and 22 deletions
|
@ -7,10 +7,11 @@ magic =
|
|||
};
|
||||
|
||||
--[[
|
||||
modifier - Modifier.Intelligence, Modifier.Mind (see Modifier.cs)
|
||||
statId - see BattleTemp.cs
|
||||
modifierId - Modifier.Intelligence, Modifier.Mind (see Modifier.cs)
|
||||
multiplier -
|
||||
]]
|
||||
function magic.HandleHealingMagic(caster, target, spell, action, modifierId, multiplier, baseAmount)
|
||||
function magic.HandleHealingMagic(caster, target, spell, action, statId, modifierId, multiplier, baseAmount)
|
||||
potency = potency or 1.0;
|
||||
healAmount = baseAmount;
|
||||
|
||||
|
@ -18,19 +19,19 @@ function magic.HandleHealingMagic(caster, target, spell, action, modifierId, mul
|
|||
local mind = caster.GetMod(Modifier.Mind);
|
||||
end;
|
||||
|
||||
function magic.HandleAttackMagic(caster, target, spell, action, modifierId, multiplier, baseAmount)
|
||||
function magic.HandleAttackMagic(caster, target, spell, action, statId, modifierId, multiplier, baseAmount)
|
||||
-- todo: actually handle this
|
||||
damage = baseAmount or math.random(1,10) * 10;
|
||||
|
||||
return damage;
|
||||
end;
|
||||
|
||||
function magic.HandleEvasion(caster, target, spell, action, modifierId)
|
||||
function magic.HandleEvasion(caster, target, spell, action, statId, modifierId)
|
||||
|
||||
return false;
|
||||
end;
|
||||
|
||||
function magic.HandleStoneskin(caster, target, spell, action, modifierId, damage)
|
||||
function magic.HandleStoneskin(caster, target, spell, action, statId, modifierId, damage)
|
||||
--[[
|
||||
if target.statusEffects.HasStatusEffect(StatusEffect.Stoneskin) then
|
||||
-- todo: damage reduction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue