This commit is contained in:
parent
16959dd52e
commit
ebb7bfe3d6
@ -743,14 +743,15 @@ export default class LethalFantasyRoll extends Roll {
|
||||
if (currentAction) {
|
||||
if (rollContext === "rollLethargyDice") {
|
||||
if (currentAction.spellStatus === "castingTime") {
|
||||
if (currentAction.castingTime < currentAction.system.castingTime) {
|
||||
let message = `Casting time : ${currentAction.name}, count : ${currentAction.castingTime}/${currentAction.system.castingTime}`
|
||||
let time = currentAction.type === "spell" ? currentAction.system.castingTime : currentAction.system.prayerTime
|
||||
if (currentAction.castingTime < time) {
|
||||
let message = `Casting time : ${currentAction.name}, count : ${currentAction.castingTime}/${time}`
|
||||
ChatMessage.create({ content: message, speaker: ChatMessage.getSpeaker({ actor: combatant.actor }) })
|
||||
currentAction.castingTime += 1
|
||||
await combatant.setFlag(SYSTEM.id, "currentAction", foundry.utils.duplicate(currentAction))
|
||||
return
|
||||
} else {
|
||||
let message = `Spell ${currentAction.name} ready to be cast on next second !`
|
||||
let message = `Spell/Miracle ${currentAction.name} ready to be cast on next second !`
|
||||
ChatMessage.create({ content: message, speaker: ChatMessage.getSpeaker({ actor: combatant.actor }) })
|
||||
currentAction.castingTime = 1
|
||||
currentAction.spellStatus = "toBeCasted"
|
||||
@ -890,7 +891,7 @@ export default class LethalFantasyRoll extends Roll {
|
||||
},
|
||||
{
|
||||
action: "cast",
|
||||
label: "Cast a spell",
|
||||
label: "Cast a spell/Miracle",
|
||||
callback: (event, button, dialog) => {
|
||||
return "casting"
|
||||
},
|
||||
|
@ -298,8 +298,17 @@ export default class LethalFantasyCharacter extends foundry.abstract.TypeDataMod
|
||||
if (this.biodata.magicUser || this.biodata.clericUser) {
|
||||
let spells = this.parent.items.filter(i => i.type === "spell" || i.type === "miracle")
|
||||
for (let s of spells) {
|
||||
let dice = LethalFantasyUtils.getLethargyDice(s.system.level)
|
||||
weaponsChoices.push({ id: s.id, name: `${s.name} (Time: ${s.system.castingTime}, Lethargy: ${dice})`, combatProgressionDice: `${s.system.castingTime}+${dice}` })
|
||||
let title = ""
|
||||
let formula = ""
|
||||
if (s.type === "spell") {
|
||||
let dice = LethalFantasyUtils.getLethargyDice(s.system.level)
|
||||
title = `${s.name} (Casting time: ${s.system.castingTime}, Lethargy: ${dice})`
|
||||
formula = `${s.system.castingTime}+${dice}`
|
||||
} else {
|
||||
title = `${s.name} (Prayer time: ${s.system.prayerTime})`
|
||||
formula = `${s.system.prayerTime}`
|
||||
}
|
||||
weaponsChoices.push({ id: s.id, name: title, combatProgressionDice: formula })
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
MANIFEST-000239
|
||||
MANIFEST-000243
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-23:31:24.238771 7f31457fa6c0 Recovering log #237
|
||||
2025/04/22-23:31:24.249942 7f31457fa6c0 Delete type=3 #235
|
||||
2025/04/22-23:31:24.250077 7f31457fa6c0 Delete type=0 #237
|
||||
2025/04/22-23:43:44.737443 7f2ea7fff6c0 Level-0 table #242: started
|
||||
2025/04/22-23:43:44.737479 7f2ea7fff6c0 Level-0 table #242: 0 bytes OK
|
||||
2025/04/22-23:43:44.744412 7f2ea7fff6c0 Delete type=0 #240
|
||||
2025/04/22-23:43:44.750880 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750915 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:02:07.087054 7f3145ffb6c0 Recovering log #241
|
||||
2025/04/23-16:02:07.096981 7f3145ffb6c0 Delete type=3 #239
|
||||
2025/04/23-16:02:07.097039 7f3145ffb6c0 Delete type=0 #241
|
||||
2025/04/23-16:04:44.893831 7f2ea7fff6c0 Level-0 table #246: started
|
||||
2025/04/23-16:04:44.893889 7f2ea7fff6c0 Level-0 table #246: 0 bytes OK
|
||||
2025/04/23-16:04:44.900365 7f2ea7fff6c0 Delete type=0 #244
|
||||
2025/04/23-16:04:44.921865 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:04:44.921936 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-16:10:04.887355 7f31467fc6c0 Recovering log #233
|
||||
2025/04/22-16:10:04.897170 7f31467fc6c0 Delete type=3 #231
|
||||
2025/04/22-16:10:04.897273 7f31467fc6c0 Delete type=0 #233
|
||||
2025/04/22-16:24:56.381376 7f2ea7fff6c0 Level-0 table #238: started
|
||||
2025/04/22-16:24:56.381413 7f2ea7fff6c0 Level-0 table #238: 0 bytes OK
|
||||
2025/04/22-16:24:56.387438 7f2ea7fff6c0 Delete type=0 #236
|
||||
2025/04/22-16:24:56.393346 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-16:24:56.393372 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:31:24.238771 7f31457fa6c0 Recovering log #237
|
||||
2025/04/22-23:31:24.249942 7f31457fa6c0 Delete type=3 #235
|
||||
2025/04/22-23:31:24.250077 7f31457fa6c0 Delete type=0 #237
|
||||
2025/04/22-23:43:44.737443 7f2ea7fff6c0 Level-0 table #242: started
|
||||
2025/04/22-23:43:44.737479 7f2ea7fff6c0 Level-0 table #242: 0 bytes OK
|
||||
2025/04/22-23:43:44.744412 7f2ea7fff6c0 Delete type=0 #240
|
||||
2025/04/22-23:43:44.750880 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750915 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
|
||||
|
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000238
|
||||
MANIFEST-000242
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-23:31:24.253009 7f3144ff96c0 Recovering log #236
|
||||
2025/04/22-23:31:24.263050 7f3144ff96c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.263096 7f3144ff96c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.744546 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.744578 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.750735 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750897 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750924 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:02:07.100445 7f3144ff96c0 Recovering log #240
|
||||
2025/04/23-16:02:07.110685 7f3144ff96c0 Delete type=3 #238
|
||||
2025/04/23-16:02:07.110874 7f3144ff96c0 Delete type=0 #240
|
||||
2025/04/23-16:04:44.900471 7f2ea7fff6c0 Level-0 table #245: started
|
||||
2025/04/23-16:04:44.900493 7f2ea7fff6c0 Level-0 table #245: 0 bytes OK
|
||||
2025/04/23-16:04:44.907623 7f2ea7fff6c0 Delete type=0 #243
|
||||
2025/04/23-16:04:44.921891 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:04:44.921950 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-16:10:04.899683 7f31457fa6c0 Recovering log #232
|
||||
2025/04/22-16:10:04.910626 7f31457fa6c0 Delete type=3 #230
|
||||
2025/04/22-16:10:04.910674 7f31457fa6c0 Delete type=0 #232
|
||||
2025/04/22-16:24:56.374971 7f2ea7fff6c0 Level-0 table #237: started
|
||||
2025/04/22-16:24:56.375019 7f2ea7fff6c0 Level-0 table #237: 0 bytes OK
|
||||
2025/04/22-16:24:56.381214 7f2ea7fff6c0 Delete type=0 #235
|
||||
2025/04/22-16:24:56.393338 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-16:24:56.393365 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:31:24.253009 7f3144ff96c0 Recovering log #236
|
||||
2025/04/22-23:31:24.263050 7f3144ff96c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.263096 7f3144ff96c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.744546 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.744578 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.750735 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750897 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750924 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
|
||||
|
Binary file not shown.
BIN
packs-system/lf-gifts/MANIFEST-000242
Normal file
BIN
packs-system/lf-gifts/MANIFEST-000242
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000238
|
||||
MANIFEST-000242
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-23:31:24.225117 7f31467fc6c0 Recovering log #236
|
||||
2025/04/22-23:31:24.235493 7f31467fc6c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.235550 7f31467fc6c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.724728 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.724783 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.730920 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750847 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750890 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:02:07.071305 7f31457fa6c0 Recovering log #240
|
||||
2025/04/23-16:02:07.081459 7f31457fa6c0 Delete type=3 #238
|
||||
2025/04/23-16:02:07.081639 7f31457fa6c0 Delete type=0 #240
|
||||
2025/04/23-16:04:44.907842 7f2ea7fff6c0 Level-0 table #245: started
|
||||
2025/04/23-16:04:44.907895 7f2ea7fff6c0 Level-0 table #245: 0 bytes OK
|
||||
2025/04/23-16:04:44.913971 7f2ea7fff6c0 Delete type=0 #243
|
||||
2025/04/23-16:04:44.921908 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:04:44.921963 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-16:10:04.874243 7f3145ffb6c0 Recovering log #232
|
||||
2025/04/22-16:10:04.884436 7f3145ffb6c0 Delete type=3 #230
|
||||
2025/04/22-16:10:04.884505 7f3145ffb6c0 Delete type=0 #232
|
||||
2025/04/22-16:24:56.387518 7f2ea7fff6c0 Level-0 table #237: started
|
||||
2025/04/22-16:24:56.387539 7f2ea7fff6c0 Level-0 table #237: 0 bytes OK
|
||||
2025/04/22-16:24:56.393264 7f2ea7fff6c0 Delete type=0 #235
|
||||
2025/04/22-16:24:56.393353 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-16:24:56.393378 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:31:24.225117 7f31467fc6c0 Recovering log #236
|
||||
2025/04/22-23:31:24.235493 7f31467fc6c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.235550 7f31467fc6c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.724728 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.724783 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.730920 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750847 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750890 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
|
||||
|
Binary file not shown.
BIN
packs-system/lf-skills/MANIFEST-000242
Normal file
BIN
packs-system/lf-skills/MANIFEST-000242
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
MANIFEST-000238
|
||||
MANIFEST-000242
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-23:31:24.265717 7f3145ffb6c0 Recovering log #236
|
||||
2025/04/22-23:31:24.276539 7f3145ffb6c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.276606 7f3145ffb6c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.731066 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.731099 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.737300 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750866 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750946 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:02:07.114345 7f31467fc6c0 Recovering log #240
|
||||
2025/04/23-16:02:07.124115 7f31467fc6c0 Delete type=3 #238
|
||||
2025/04/23-16:02:07.124180 7f31467fc6c0 Delete type=0 #240
|
||||
2025/04/23-16:04:44.931650 7f2ea7fff6c0 Level-0 table #245: started
|
||||
2025/04/23-16:04:44.931686 7f2ea7fff6c0 Level-0 table #245: 0 bytes OK
|
||||
2025/04/23-16:04:44.938777 7f2ea7fff6c0 Delete type=0 #243
|
||||
2025/04/23-16:04:44.971323 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/23-16:04:44.971357 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
|
@ -1,8 +1,8 @@
|
||||
2025/04/22-16:10:04.912699 7f3144ff96c0 Recovering log #232
|
||||
2025/04/22-16:10:04.923248 7f3144ff96c0 Delete type=3 #230
|
||||
2025/04/22-16:10:04.923313 7f3144ff96c0 Delete type=0 #232
|
||||
2025/04/22-16:24:56.367680 7f2ea7fff6c0 Level-0 table #237: started
|
||||
2025/04/22-16:24:56.367779 7f2ea7fff6c0 Level-0 table #237: 0 bytes OK
|
||||
2025/04/22-16:24:56.374777 7f2ea7fff6c0 Delete type=0 #235
|
||||
2025/04/22-16:24:56.393329 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-16:24:56.393359 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:31:24.265717 7f3145ffb6c0 Recovering log #236
|
||||
2025/04/22-23:31:24.276539 7f3145ffb6c0 Delete type=3 #234
|
||||
2025/04/22-23:31:24.276606 7f3145ffb6c0 Delete type=0 #236
|
||||
2025/04/22-23:43:44.731066 7f2ea7fff6c0 Level-0 table #241: started
|
||||
2025/04/22-23:43:44.731099 7f2ea7fff6c0 Level-0 table #241: 0 bytes OK
|
||||
2025/04/22-23:43:44.737300 7f2ea7fff6c0 Delete type=0 #239
|
||||
2025/04/22-23:43:44.750866 7f2ea7fff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
2025/04/22-23:43:44.750946 7f2ea7fff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user