From 95e372fb82e110a88c7e95d815e53c981d54120d Mon Sep 17 00:00:00 2001 From: darkk1138 Date: Sun, 15 Dec 2013 10:07:08 +0100 Subject: [PATCH] Add a factor for dance XP. Note, this implementation is not yet 100% accurate, but it should match XP values from Entertainer FAQ for all dances. --- src/services/EntertainmentService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/EntertainmentService.java b/src/services/EntertainmentService.java index bc564664..ee40e874 100644 --- a/src/services/EntertainmentService.java +++ b/src/services/EntertainmentService.java @@ -327,7 +327,8 @@ public class EntertainmentService implements INetworkDispatch { int floXP = p.getFlourishXpMod(); int floCount = entertainer.getFlourishCount(); - int XP = ((floCount > 2) ? 2 : floCount) * floXP; + //FIXME: this is not an accurate implementation yet. It needs group bonuses and other things. + int XP = (int) Math.round( ((floCount > 2) ? 2 : floCount) * floXP * 3.8 ); entertainer.setFlourishCount(0); core.playerService.giveExperience(entertainer, XP);