- Container behavior for Weapons, Def. Weapons and Armor is now the same as for items

- Fixed some Bugs
This commit is contained in:
Ender
2024-01-21 00:33:31 +01:00
parent 33c65735bd
commit 9da36e6a6f
7 changed files with 324 additions and 196 deletions
+3
View File
@@ -39,6 +39,7 @@ export class M5Character extends Actor {
): M5CharacterCalculatedData {
let ret: M5CharacterCalculatedData = {
level: 0,
initiative: 0,
attributes: {
st: { value: 0, bonus: 0, mods: [] },
gs: { value: 0, bonus: 0, mods: [] },
@@ -101,6 +102,8 @@ export class M5Character extends Actor {
ret.level = M5Character.levelFromExp(data.info.race === "Zwerg" ? Math.min(data.calc.stats?.hoard * 2 || 0, data.es) : data.es);
ret.initiative = data.skills.general.anfuehren.fw;
ret.attributes.st.value = M5Character.attributeMinMax(data.attributes.st); // TODO item effects
ret.attributes.gs.value = M5Character.attributeMinMax(data.attributes.gs);
ret.attributes.gw.value = M5Character.attributeMinMax(data.attributes.gw);