mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
(Bug Fix) Must now wait before performing multiple flourishes (Bug Fix) Can no longer propose to yourself (aka your hand) (Bug Fix) Fixed some strings that didn't have variables (Added) Posture checks before Skill Animating (Added) Additional radial options show on players
23 lines
613 B
Python
23 lines
613 B
Python
from resources.common import RadialOptions
|
|
from resources.datatables import Posture
|
|
import sys
|
|
|
|
def createRadial(core, owner, target, radials):
|
|
if target.getPosture() == Posture.SkillAnimating:
|
|
if target.getPerformanceType() is True:
|
|
radials.add(RadialOptions(0, 140, 1, 'Watch'))
|
|
else:
|
|
radials.add(RadialOptions(0, 140, 1, 'Listen'))
|
|
|
|
return
|
|
|
|
def handleSelection(core, owner, target, option):
|
|
if option == 140:
|
|
if target.getPerformanceType() is True:
|
|
core.commandService.callCommand(owner, 'watch', target, '')
|
|
return
|
|
else:
|
|
# TODO: Insert callCommand /listen
|
|
return
|
|
return
|
|
return |