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

@ -0,0 +1,24 @@
require("modifiers")
require("hiteffect")
require("battleutils")
--https://www.bluegartr.com/threads/107403-Stats-and-how-they-work/page22
function onGain(owner, effect)
owner.AddMod(modifiersGlobal.Attack, 345);
owner.SubtractMod(modifiersGlobal.Defense, 158);
end
function onCommandStart(effect, owner, command, actionContainer)
--if command is a weaponskill or jump
--27266: jump
if command.GetCommandType() == CommandType.Weaponskill or command.id == 27266 then
--At III just refresh the effect
effect.RefreshTime();
end
end
function onLose(owner, effect)
owner.SubtractMod(modifiersGlobal.Attack, 345);
owner.AddMod(modifiersGlobal.Defense, 158);
end