mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
- Factory crate correctly implemented for REing - PUPs proc initial steps, needs to be further developed - Multi-colored junk items name handling added
19 lines
614 B
Python
19 lines
614 B
Python
from resources.common import RadialOptions
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.clear()
|
|
radials.add(RadialOptions(0, 44, 0, 'Get Item From Crate'))
|
|
radials.add(RadialOptions(0, 49, 0, 'Split'))
|
|
radials.add(RadialOptions(0, 7, 0, 'Examine'))
|
|
radials.add(RadialOptions(0, 15, 0, 'Destroy'))
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if option == 44 and target:
|
|
target.getObjectOutOfCrate(owner)
|
|
if option == 15 and target:
|
|
core.objectService.destroyObject(target)
|
|
#if option == 49 and target:
|
|
#target.splitFactoryCrate(owner, target, option)
|
|
return |