mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
A few PUPS can now be applied. Some effect names do not match the buff.iff table yet
27 lines
689 B
Python
27 lines
689 B
Python
import sys
|
|
from java.lang import Float
|
|
|
|
def setup(core, actor, buff):
|
|
|
|
#powerup = actor.getUseTarget()
|
|
powerupID = actor.getAttachment('LastUsedPUP')
|
|
powerup = core.objectService.getObject(long(powerupID))
|
|
effectName = powerup.getAttachment("effectName");
|
|
powerValue = powerup.getAttachment("powerValue");
|
|
effectName = effectName.replace('@stat_n:', '')
|
|
actor.sendSystemMessage('en %s' % effectName, 0)
|
|
actor.sendSystemMessage('pv %s' % powerValue, 0)
|
|
buff.setDuration(Float(1800.0))
|
|
if effectName:
|
|
buff.setEffect1Name(effectName)
|
|
if powerValue:
|
|
buff.setEffect1Value(Float(powerValue))
|
|
return
|
|
|
|
def add(core, actor, buff):
|
|
|
|
return
|
|
|
|
def remove(core, actor, buff):
|
|
|
|
return |