mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 05:54:50 +02:00
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:
parent
b8d6a943aa
commit
c5ce2ec771
239 changed files with 5125 additions and 1237 deletions
|
@ -11,13 +11,19 @@ end;
|
|||
|
||||
--Increased enmity
|
||||
function onCombo(caster, target, skill)
|
||||
skill.enmityModifier = 1.5;
|
||||
skill.enmityModifier = 2.5;
|
||||
end;
|
||||
|
||||
function onSkillFinish(caster, target, skill, action)
|
||||
local damage = math.random(10, 100);
|
||||
function onSkillFinish(caster, target, skill, action, actionContainer)
|
||||
--Increased damage with higher hp
|
||||
--random guess
|
||||
local potencyModifier = caster:GetHPP() + 25;
|
||||
skill.basePotency = skill.basePotency * (potencyModifier / 100);
|
||||
return weaponskill.onSkillFinish(caster, target, skill, action)
|
||||
|
||||
skill.basePotency = skill.basePotency * potencyModifier;
|
||||
|
||||
--calculate ws damage
|
||||
action.amount = skill.basePotency;
|
||||
|
||||
--DoAction handles rates, buffs, dealing damage
|
||||
action.DoAction(caster, target, skill, actionContainer);
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue