forked from public/fvtt-cthulhu-eternal
Fix #38 - Auto set bond values
This commit is contained in:
parent
75a81e589b
commit
7341580a7b
@ -234,5 +234,4 @@ export default class CthulhuEternalProtagonistSheet extends CthulhuEternalActorS
|
||||
}
|
||||
}
|
||||
|
||||
// #endregion
|
||||
}
|
||||
|
@ -52,6 +52,13 @@ export default class CthulhuEternalActor extends Actor {
|
||||
continue
|
||||
}
|
||||
}
|
||||
if (i.type === "bond") {
|
||||
if (i.system.bondType === "individual") {
|
||||
i.system.value = this.system.characteristics.cha.value
|
||||
} else {
|
||||
i.system.value = Math.floor(this.system.resources.permanentRating / 2)
|
||||
}
|
||||
}
|
||||
newData.push(i)
|
||||
}
|
||||
return super.createEmbeddedDocuments(embeddedName, newData, operation)
|
||||
|
@ -165,7 +165,6 @@ export default class CthulhuEternalProtagonist extends foundry.abstract.TypeData
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
isLowWP() {
|
||||
return this.wp.value <= 2
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
MANIFEST-000100
|
||||
MANIFEST-000104
|
||||
|
@ -1,8 +1,3 @@
|
||||
2025/02/01-21:14:17.990919 7fd1caffd6c0 Recovering log #98
|
||||
2025/02/01-21:14:18.007782 7fd1caffd6c0 Delete type=3 #96
|
||||
2025/02/01-21:14:18.007839 7fd1caffd6c0 Delete type=0 #98
|
||||
2025/02/01-21:17:36.962718 7fd1c93ff6c0 Level-0 table #103: started
|
||||
2025/02/01-21:17:36.962748 7fd1c93ff6c0 Level-0 table #103: 0 bytes OK
|
||||
2025/02/01-21:17:36.968886 7fd1c93ff6c0 Delete type=0 #101
|
||||
2025/02/01-21:17:36.975842 7fd1c93ff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
2025/02/01-21:17:36.986064 7fd1c93ff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
2025/02/06-20:25:16.737126 7ffae77fe6c0 Recovering log #102
|
||||
2025/02/06-20:25:16.746805 7ffae77fe6c0 Delete type=3 #100
|
||||
2025/02/06-20:25:16.746880 7ffae77fe6c0 Delete type=0 #102
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/02/01-13:04:37.403980 7fd1c9ffb6c0 Recovering log #94
|
||||
2025/02/01-13:04:37.414560 7fd1c9ffb6c0 Delete type=3 #92
|
||||
2025/02/01-13:04:37.414616 7fd1c9ffb6c0 Delete type=0 #94
|
||||
2025/02/01-21:09:42.547683 7fd1c93ff6c0 Level-0 table #99: started
|
||||
2025/02/01-21:09:42.547729 7fd1c93ff6c0 Level-0 table #99: 0 bytes OK
|
||||
2025/02/01-21:09:42.554673 7fd1c93ff6c0 Delete type=0 #97
|
||||
2025/02/01-21:09:42.570630 7fd1c93ff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
2025/02/01-21:09:42.570661 7fd1c93ff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
2025/02/01-21:14:17.990919 7fd1caffd6c0 Recovering log #98
|
||||
2025/02/01-21:14:18.007782 7fd1caffd6c0 Delete type=3 #96
|
||||
2025/02/01-21:14:18.007839 7fd1caffd6c0 Delete type=0 #98
|
||||
2025/02/01-21:17:36.962718 7fd1c93ff6c0 Level-0 table #103: started
|
||||
2025/02/01-21:17:36.962748 7fd1c93ff6c0 Level-0 table #103: 0 bytes OK
|
||||
2025/02/01-21:17:36.968886 7fd1c93ff6c0 Delete type=0 #101
|
||||
2025/02/01-21:17:36.975842 7fd1c93ff6c0 Manual compaction at level-0 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
2025/02/01-21:17:36.986064 7fd1c93ff6c0 Manual compaction at level-1 from '!folders!DD8331Hda4rhvEf9' @ 72057594037927935 : 1 .. '!items!zplzTG30QXHURusr' @ 0 : 0; will stop at (end)
|
||||
|
Binary file not shown.
BIN
packs-system/skills/MANIFEST-000104
Normal file
BIN
packs-system/skills/MANIFEST-000104
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user