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.
This commit is contained in:
darkk1138
2013-12-15 10:07:08 +01:00
parent fac5422198
commit 95e372fb82
+2 -1
View File
@@ -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);