Index: ps/trunk/binaries/data/mods/public/simulation/components/Loot.js =================================================================== --- ps/trunk/binaries/data/mods/public/simulation/components/Loot.js +++ ps/trunk/binaries/data/mods/public/simulation/components/Loot.js @@ -12,15 +12,14 @@ Loot.prototype.GetXp = function() { - return +(this.template.xp || 0); + return Math.floor(ApplyValueModificationsToEntity("Loot/xp", +(this.template.xp || 0), this.entity)); }; Loot.prototype.GetResources = function() { let ret = {}; for (let res of Resources.GetCodes()) - ret[res] = +(this.template[res] || 0); - + ret[res] = Math.floor(ApplyValueModificationsToEntity("Loot/" + res, +(this.template[res] || 0), this.entity)); return ret; };