Code: Select all
// NEW NEW XP FORMULA:
// HL = highest hitdie of party (ignore ECL here, pcs only)
// CR = Creature challenge rating
// Base XP award base(CR, HL):
// for CR >= HL: base = (25 + 6 * CR) * (0.3 * (CR - HL) + 1)
// for CR < HL: base = (25 + 6 * CR) * (0.1 * (CR - HL) + 1)
// ECL adjustment: a % of the base award
// = 0.1 * (10 - ECL) [i.e. ECL 1 has 10% penalty, ECL 2 20%...]
// Final XP calculation is player's hitdie/highest party member hitdie then * ECL adjustment
Quick spreadsheet (decimals are chopped at each step in nwn engine calcs since using ints and there's a few other factors, so not perfect):