mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-03 04:16:19 -04:00
(Added) BuffWorkshop Collection (Code) Added hologram variable to CreatureObject (BugFix) Inspiration ticks stop at max duration
28 lines
768 B
Python
28 lines
768 B
Python
from resources.common import BuffBuilder
|
|
import sys
|
|
|
|
def setup(core, actor, buff):
|
|
return
|
|
|
|
def add(core, actor, buff):
|
|
|
|
buffWorkshop = actor.getAttachment('buffWorkshop')
|
|
|
|
if buffWorkshop is None:
|
|
return
|
|
|
|
attached = actor.getAttachment('inspireDuration')
|
|
|
|
buff.setDuration(float(actor.getAttachment('inspireDuration') * 60))
|
|
|
|
for BuffItem in buffWorkshop:
|
|
core.skillModService.addSkillMod(actor, BuffItem.getSkillName(), BuffItem.getAffectAmount())
|
|
|
|
return
|
|
|
|
def remove(core, actor, buff):
|
|
for BuffItem in actor.getAttachment('buffWorkshop'):
|
|
core.skillModService.deductSkillMod(actor, BuffItem.getSkillName(), BuffItem.getAffectAmount())
|
|
|
|
actor.setAttachment('buffWorkshop', None)
|
|
return |