We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc5de71 commit b55e316Copy full SHA for b55e316
scripts_src/headers/exppoint.h
@@ -487,7 +487,7 @@
487
a message informing the player how many
488
points he received.
489
***************************************/
490
-#define calc_actual_xp_gain(x) (x + ((x * 5 / 100) * dude_perk(PERK_swift_learner)))
+#define calc_actual_xp_gain(x) (x + ((x * (5 * dude_perk(PERK_swift_learner))) / 100))
491
#define give_xp(x) give_exp_points(x); \
492
display_msg(g_mstr(100) + calc_actual_xp_gain(x) + g_mstr(101))
493
0 commit comments