Skip to content

Commit b55e316

Browse files
committed
Tweaked the calculation in give_xp macro
1 parent bc5de71 commit b55e316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts_src/headers/exppoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
a message informing the player how many
488488
points he received.
489489
***************************************/
490-
#define calc_actual_xp_gain(x) (x + ((x * 5 / 100) * dude_perk(PERK_swift_learner)))
490+
#define calc_actual_xp_gain(x) (x + ((x * (5 * dude_perk(PERK_swift_learner))) / 100))
491491
#define give_xp(x) give_exp_points(x); \
492492
display_msg(g_mstr(100) + calc_actual_xp_gain(x) + g_mstr(101))
493493

0 commit comments

Comments
 (0)