Apply intelligence boost to all XP gains

This commit is contained in:
Martin Haye 2021-08-17 07:58:46 -07:00
parent 4d2111ec3f
commit 118e0f6f09

View File

@ -3414,7 +3414,7 @@ end
// Add XP to every player in the party, leveling them up as appropriate
export def addXP_all(val)#0
ctx = val
forEach(global=>p_players, &(p) addXP(p, ctx))
forEach(global=>p_players, &(p) addXP(p, ctx + addPercent(ctx, 10*p->b_intelligence)))
end
///////////////////////////////////////////////////////////////////////////////////////////////////