mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-27 12:56:07 +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
15
data/scripts/effects/rampart.lua
Normal file
15
data/scripts/effects/rampart.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
require("modifiers")
|
||||
|
||||
--Rampart gives 105 defense at level 50.
|
||||
--Guessing it scales with level. If I had to guess it's either 2.1 * level or (2 * level) + 5.
|
||||
--I'm going to guess the latter since it always leaves you with a whole number. I could be completely wrong though
|
||||
--The party_battle_leve has rampart giving 36? defense. It's from an earlier patch so probably useless
|
||||
function onGain(target, effect)
|
||||
effect.SetMagnitude(2 * target.GetLevel() + 5);
|
||||
|
||||
target.AddMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
target.SubtractMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue