mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-16 06:13:45 -04:00
Fixed #791
This commit is contained in:
@@ -2,18 +2,20 @@ from resources.common import RadialOptions
|
||||
import sys
|
||||
|
||||
def createRadial(core, owner, target, radials):
|
||||
#if not core.mountService.getMount(target):
|
||||
# radials.add(RadialOptions(0, 21, 3, '@pet_menu:menu_call'))
|
||||
#else:
|
||||
# radials.add(RadialOptions(0, 21, 3, '@pet_menu:menu_store'))
|
||||
radials.add(RadialOptions(0, 61, 1, ''))
|
||||
if core.mountService.getMount(target) is None:
|
||||
radials.add(RadialOptions(0, 61, 1, '@pet/pet_menu:menu_call'))
|
||||
else:
|
||||
radials.add(RadialOptions(0, 61, 1, '@pet/pet_menu:menu_store'))
|
||||
radials.add(RadialOptions(0, 7, 1, ''))
|
||||
radials.add(RadialOptions(0, 15, 1, ''))
|
||||
return
|
||||
|
||||
def handleSelection(core, owner, target, option):
|
||||
if option == 61 and target:
|
||||
core.mountService.call(owner, target)
|
||||
if core.mountService.getMount(target) is None:
|
||||
core.mountService.call(owner, target)
|
||||
else:
|
||||
core.mountService.store(owner, core.mountService.getMount(target))
|
||||
elif option == 15 and target:
|
||||
core.mountService.destroy(owner, target)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user