Fixed Deprivation
- Removed deprivationBonus & Pw + Changed container to footer on baseValues + Fixed rolls, wording & images in new footer
This commit is contained in:
@@ -126,15 +126,9 @@ export class M5Character extends Actor {
|
||||
brawlFw: 0,
|
||||
poisonResistance: { value: 0, mods: [] },
|
||||
enduranceBonus: 0,
|
||||
deprivationCold: { value: 0, mods: [] },
|
||||
deprivationColdBonus: { value: 0, mods: [] },
|
||||
deprivationColdPw: 0,
|
||||
deprivationHeat: { value: 0, mods: [] },
|
||||
deprivationHeatBonus: { value: 0, mods: [] },
|
||||
deprivationHeatPw: 0,
|
||||
deprivationFood: { value: 0, mods: [] },
|
||||
deprivationFoodBonus: { value: 0, mods: [] },
|
||||
deprivationFoodPw: 0,
|
||||
deprivationCold: 0,
|
||||
deprivationHeat: 0,
|
||||
deprivationFood: 0,
|
||||
hoard: 0,
|
||||
encumbrance: 0,
|
||||
load: 0,
|
||||
@@ -210,15 +204,9 @@ export class M5Character extends Actor {
|
||||
ret.stats.brawlFw = ret.stats.brawl.value + ret.stats.attackBonus.value + (data.info.race === "Zwerg" ? 1 : 0);
|
||||
ret.stats.poisonResistance = this.modResult(30 + Math.floor(ret.attributes.ko.value / 2));
|
||||
ret.stats.enduranceBonus = Math.floor(ret.attributes.ko.value / 10) + Math.floor(ret.attributes.st.value / 20);
|
||||
ret.stats.deprivationCold = this.modResult(Math.floor(ret.attributes.ko.value / 2));
|
||||
ret.stats.deprivationColdBonus = this.modResult(0);
|
||||
ret.stats.deprivationColdPw = Math.min(100, (ret.stats.deprivationCold.value + ret.stats.deprivationColdBonus.value));
|
||||
ret.stats.deprivationHeat = this.modResult(Math.floor(ret.attributes.ko.value / 2));
|
||||
ret.stats.deprivationHeatBonus = this.modResult(0);
|
||||
ret.stats.deprivationHeatPw = Math.min(100, (ret.stats.deprivationHeat.value + ret.stats.deprivationHeatBonus.value));
|
||||
ret.stats.deprivationFood = this.modResult(Math.floor(40 + (ret.attributes.ko.value / 2)));
|
||||
ret.stats.deprivationFoodBonus = this.modResult(0);
|
||||
ret.stats.deprivationFoodPw = Math.min(100, (ret.stats.deprivationFood.value + ret.stats.deprivationFoodBonus.value));
|
||||
ret.stats.deprivationCold = (Math.floor(ret.attributes.ko.value / 2));
|
||||
ret.stats.deprivationHeat = (Math.floor(ret.attributes.ko.value / 2));
|
||||
ret.stats.deprivationFood = (Math.floor(40 + (ret.attributes.ko.value / 2)));
|
||||
ret.stats.hoardMin = M5Character.levelThreshold.at(ret.level - 1) / 2;
|
||||
ret.stats.hoardNext = M5Character.levelThreshold.at(ret.level) / 2;
|
||||
ret.stats.wealth = parseFloat((data.info.gold + data.info.silver / 10 + data.info.copper / 100).toPrecision(3));
|
||||
@@ -561,17 +549,17 @@ export class M5Character extends Actor {
|
||||
|
||||
// Adjust stat Kälte based on Überleben (Gebirge) skill
|
||||
if (item.name === "Überleben (Gebirge)") {
|
||||
ret.stats.deprivationColdBonus.value += Math.floor(item.system.fw * 5);
|
||||
ret.stats.deprivationCold += Math.floor(item.system.fw * 5);
|
||||
}
|
||||
|
||||
// Adjust stat Kälte based on Überleben (Steppe) skill
|
||||
if (item.name === "Überleben (Steppe)") {
|
||||
ret.stats.deprivationHeatBonus.value += Math.floor(item.system.fw * 5);
|
||||
ret.stats.deprivationHeat += Math.floor(item.system.fw * 5);
|
||||
}
|
||||
|
||||
// Adjust stat Durst & Hunger based on Robustheit skill
|
||||
if (item.name === "Robustheit") {
|
||||
ret.stats.deprivationFoodBonus.value += 10;
|
||||
ret.stats.deprivationFood += 10;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -41,9 +41,9 @@ export default class M5ModAggregate {
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.AP, operation: M5ModOperation.SET, value: calc.stats.ap.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.PROTECTION_LP, operation: M5ModOperation.SET, value: calc.stats.lpProtection.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.PROTECTION_AP, operation: M5ModOperation.SET, value: calc.stats.apProtection.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_COLD, operation: M5ModOperation.SET, value: calc.stats.deprivationCold.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_HEAT, operation: M5ModOperation.SET, value: calc.stats.deprivationHeat.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_FOOD, operation: M5ModOperation.SET, value: calc.stats.deprivationFood.value }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_COLD, operation: M5ModOperation.SET, value: calc.stats.deprivationCold }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_HEAT, operation: M5ModOperation.SET, value: calc.stats.deprivationHeat }, characterString);
|
||||
this.push({ type: M5ModType.STAT, id: M5Stats.DEPRIVATION_FOOD, operation: M5ModOperation.SET, value: calc.stats.deprivationFood }, characterString);
|
||||
}
|
||||
|
||||
push(mod: M5ItemMod, source: string) {
|
||||
|
||||
Reference in New Issue
Block a user