mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-30 00:15:57 -04:00
16 lines
532 B
Python
16 lines
532 B
Python
from resources.common import RadialOptions
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
radials.clear()
|
|
if target.getAttachment('AI') and core.resourceService and core.resourceService.canMilk(owner, target):
|
|
radials.add(RadialOptions(0, 167, 3, '@pet/pet_menu:milk_me'))
|
|
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
|
|
if option == 167 and target.getAttachment('AI') and core.resourceService and core.resourceService.canMilk(owner, target):
|
|
core.resourceService.doMilk(owner, target)
|
|
return
|
|
|