Files
NGECore2/scripts/radial/npc/pet_radial.py
CharonInferar 0985451d7d Fix for #958, #959
- Added a way to obtain a pet without BEing
- Attempted to figure out how to bring up the pet tool bar
2014-07-05 18:10:39 +02:00

18 lines
465 B
Python

from resources.common import RadialOptions
import sys
def createRadial(core, owner, target, radials):
radials.add(RadialOptions(0, 45, 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 == 45 and target:
core.petService.store(owner, target)
elif option == 15 and target:
core.petService.destroy(owner, target)
return