mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
refactored slightly.. wasted a lot of time with that. :p
This commit is contained in:
@@ -221,6 +221,8 @@ public class EntertainmentService implements INetworkDispatch {
|
||||
core.commandService.registerCommand("groupdance");
|
||||
core.commandService.registerCommand("startdance");
|
||||
core.commandService.registerCommand("stopdance");
|
||||
core.commandService.registerCommand("watch");
|
||||
core.commandService.registerCommand("stopwatching");
|
||||
}
|
||||
|
||||
public void giveInspirationBuff(SWGObject reciever, Vector<BuffItem> buffVector) {
|
||||
@@ -251,7 +253,7 @@ public class EntertainmentService implements INetworkDispatch {
|
||||
Performance p = performances.get(danceName);
|
||||
|
||||
//if 0 , then it's no dance. need to handle that in the script.
|
||||
return p.getDanceVisualId();
|
||||
return ((p == null) ? 0 : p.getDanceVisualId());
|
||||
}
|
||||
|
||||
public Map<Long,String> getAvailableDances(CreatureObject actor) {
|
||||
@@ -290,6 +292,18 @@ public class EntertainmentService implements INetworkDispatch {
|
||||
return performances.get(name);
|
||||
}
|
||||
|
||||
public void startPerformance(CreatureObject actor, int performanceId, int performanceCounter, String skillName, boolean isDance) {
|
||||
actor.setPerformanceId(performanceId);
|
||||
actor.setPerformanceCounter(performanceCounter);
|
||||
actor.setCurrentAnimation(skillName);
|
||||
actor.setPerformanceType(isDance);
|
||||
|
||||
actor.startPerformance();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void shutdown() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user