Combat additions

Added formulas for base EXP gain and chain experience
Added basic scripts for most player abilities and effects
Added stat gains for some abilities
Changed status flags
Fixed bug with player death
Fixed bug where auto attacks didnt work when not locked on
Added traits
This commit is contained in:
yogurt 2018-04-18 16:06:41 -05:00
parent b8d6a943aa
commit c5ce2ec771
239 changed files with 5125 additions and 1237 deletions

View file

@ -40,32 +40,4 @@ function magic.HandleStoneskin(caster, target, spell, action, statId, modifierId
end;
]]
return false;
end;
function magic.onMagicFinish(caster, target, spell, action)
action.battleActionType = BattleActionType.AttackMagic;
local damage = math.random(50, 150);
action.amount = damage;
action.CalcHitType(caster, target, spell);
action.TryStatus(caster, target, spell, true);
return action.amount;
end;
--For healing magic
function magic.onCureMagicFinish(caster, target, spell, action)
action.battleActionType = BattleActionType.Heal;
local amount = math.random(200, 450);
action.amount = amount;
action.CalcHitType(caster, target, spell);
action.TryStatus(caster, target, spell, true);
return action.amount;
end;
--For status magic
function magic.onStatusMagicFinish(caster, target, spell, action)
action.battleActionType = BattleActionType.Status;
action.amount = 0;
action.CalcHitType(caster, target, spell);
action.TryStatus(caster, target, spell, false);
return action.amount;
end;