forked from ProjectSWGCore/NGECore2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fs_force_run.py
25 lines (20 loc) · 1.16 KB
/
fs_force_run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import sys
def setup(core, actor, buff):
buff.setDuration(buff.getDuration()+(actor.getSkillModBase('expertise_buff_duration_line_fs_force_run')))
return
def add(core, actor, buff):
actor.playEffectObject('clienteffect/pl_force_run.cef', '')
actor.setSpeedMultiplierBase(actor.getSpeedMultiplierBase() + 2.5 + (2.5 * (actor.getSkillModBase('expertise_movement_buff_fs_force_run')) / 100))
core.skillModService.addSkillMod(actor, 'slope_move', 5)
core.skillModService.addSkillMod(actor, 'movement_resist_snare', 100)
core.skillModService.addSkillMod(actor, 'movement_resist_root', 100)
##For Testing Purposes
##actor.sendSystemMessage('You are running at ' + str(actor.getSpeedMultiplierBase()) + ' times the running speed.', 0)
return
def remove(core, actor, buff):
actor.stopEffectObject('fs_force_run')
actor.setSpeedMultiplierBase(actor.getSpeedMultiplierBase() - 2.5 - (2.5 * (actor.getSkillModBase('expertise_movement_buff_fs_force_run')) / 100))
core.skillModService.deductSkillMod(actor, 'slope_move', 5)
core.skillModService.deductSkillMod(actor, 'movement_resist_snare', 100)
core.skillModService.deductSkillMod(actor, 'movement_resist_root', 100)
return