Fix spells

This commit is contained in:
LeRatierBretonnien 2025-04-22 15:48:25 +02:00
parent d961e130e0
commit a2364e1252
25 changed files with 64 additions and 75 deletions

View File

@ -288,6 +288,7 @@
"spell-attack": "Spell - Attack",
"miracle-power": "Miracle - Power",
"miracle-attack": "Miracle - Attack",
"spell": "Spell",
"will":"Will",
"dodge":"Dodge",
"toughness":"Toughness",

View File

@ -222,8 +222,12 @@ export default class LethalFantasyRoll extends Roll {
options.rollTarget.value = options.rollTarget.actorModifiers.levelSpellModifier + options.rollTarget.actorModifiers.intSpellModifier
options.rollTarget.charModifier = options.rollTarget.actorModifiers.intSpellModifier
hasStaticModifier = options.rollType === "spell-power"
hasModifier = options.rollType !== "spell-attack"
options.rollTarget.staticModifier = options.rollTarget.actorLevel
//hasModifier = options.rollType !== "spell-attack"
if ( hasStaticModifier ) {
options.rollTarget.staticModifier = options.rollTarget.actorLevel
} else {
options.rollTarget.staticModifier = 0
}
} else if (options.rollType === "miracle" || options.rollType === "miracle-attack" || options.rollType === "miracle-power") {
hasD30 = true
@ -234,9 +238,13 @@ export default class LethalFantasyRoll extends Roll {
hasChangeDice = false
options.rollTarget.value = options.rollTarget.actorModifiers.levelMiracleModifier + options.rollTarget.actorModifiers.chaMiracleModifier
options.rollTarget.charModifier = options.rollTarget.actorModifiers.chaMiracleModifier
hasStaticModifier = options.rollType === "spell-power"
hasModifier = options.rollType !== "miracle-attack"
options.rollTarget.staticModifier = options.rollTarget.actorLevel
hasStaticModifier = options.rollType === "miracle-power"
//hasModifier = options.rollType !== "miracle-attack"
if ( hasStaticModifier ) {
options.rollTarget.staticModifier = options.rollTarget.actorLevel
} else {
options.rollTarget.staticModifier = 0
}
} else if (options.rollType === "shield-roll") {
hasD30 = false

View File

@ -1 +1 @@
MANIFEST-000223
MANIFEST-000227

View File

@ -1,8 +1,3 @@
2025/04/22-07:53:33.108355 7f5dcf7fe6c0 Recovering log #221
2025/04/22-07:53:33.118876 7f5dcf7fe6c0 Delete type=3 #219
2025/04/22-07:53:33.119001 7f5dcf7fe6c0 Delete type=0 #221
2025/04/22-08:41:45.602694 7f5dcd3ff6c0 Level-0 table #226: started
2025/04/22-08:41:45.602769 7f5dcd3ff6c0 Level-0 table #226: 0 bytes OK
2025/04/22-08:41:45.608936 7f5dcd3ff6c0 Delete type=0 #224
2025/04/22-08:41:45.629902 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.629976 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/22-15:21:55.489075 7f31467fc6c0 Recovering log #225
2025/04/22-15:21:55.498564 7f31467fc6c0 Delete type=3 #223
2025/04/22-15:21:55.498630 7f31467fc6c0 Delete type=0 #225

View File

@ -1,8 +1,8 @@
2025/04/21-17:09:30.765172 7f5dceffd6c0 Recovering log #217
2025/04/21-17:09:30.774995 7f5dceffd6c0 Delete type=3 #215
2025/04/21-17:09:30.775106 7f5dceffd6c0 Delete type=0 #217
2025/04/21-17:40:19.481504 7f5dcd3ff6c0 Level-0 table #222: started
2025/04/21-17:40:19.481549 7f5dcd3ff6c0 Level-0 table #222: 0 bytes OK
2025/04/21-17:40:19.518709 7f5dcd3ff6c0 Delete type=0 #220
2025/04/21-17:40:19.572101 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/21-17:40:19.634424 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/22-07:53:33.108355 7f5dcf7fe6c0 Recovering log #221
2025/04/22-07:53:33.118876 7f5dcf7fe6c0 Delete type=3 #219
2025/04/22-07:53:33.119001 7f5dcf7fe6c0 Delete type=0 #221
2025/04/22-08:41:45.602694 7f5dcd3ff6c0 Level-0 table #226: started
2025/04/22-08:41:45.602769 7f5dcd3ff6c0 Level-0 table #226: 0 bytes OK
2025/04/22-08:41:45.608936 7f5dcd3ff6c0 Delete type=0 #224
2025/04/22-08:41:45.629902 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.629976 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!ATr9wZhg5uTVTksM' @ 72057594037927935 : 1 .. '!items!znm6T1ef4qQI8BX7' @ 0 : 0; will stop at (end)

View File

@ -1 +1 @@
MANIFEST-000222
MANIFEST-000226

View File

@ -1,8 +1,3 @@
2025/04/22-07:53:33.123478 7f5dceffd6c0 Recovering log #220
2025/04/22-07:53:33.137098 7f5dceffd6c0 Delete type=3 #218
2025/04/22-07:53:33.137188 7f5dceffd6c0 Delete type=0 #220
2025/04/22-08:41:45.623210 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.623299 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.629704 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629962 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.630021 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/22-15:21:55.503043 7f3145ffb6c0 Recovering log #224
2025/04/22-15:21:55.514229 7f3145ffb6c0 Delete type=3 #222
2025/04/22-15:21:55.514364 7f3145ffb6c0 Delete type=0 #224

View File

@ -1,8 +1,8 @@
2025/04/21-17:09:30.778463 7f5dcdffb6c0 Recovering log #216
2025/04/21-17:09:30.789411 7f5dcdffb6c0 Delete type=3 #214
2025/04/21-17:09:30.789468 7f5dcdffb6c0 Delete type=0 #216
2025/04/21-17:40:19.406720 7f5dcd3ff6c0 Level-0 table #221: started
2025/04/21-17:40:19.406774 7f5dcd3ff6c0 Level-0 table #221: 0 bytes OK
2025/04/21-17:40:19.446347 7f5dcd3ff6c0 Delete type=0 #219
2025/04/21-17:40:19.572073 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/21-17:40:19.572119 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/22-07:53:33.123478 7f5dceffd6c0 Recovering log #220
2025/04/22-07:53:33.137098 7f5dceffd6c0 Delete type=3 #218
2025/04/22-07:53:33.137188 7f5dceffd6c0 Delete type=0 #220
2025/04/22-08:41:45.623210 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.623299 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.629704 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629962 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.630021 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!yPWGvxHJbDNHVSnY' @ 72057594037927935 : 1 .. '!items!zjvGljrLk5SshC9D' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000222
MANIFEST-000226

View File

@ -1,8 +1,3 @@
2025/04/22-07:53:33.091484 7f5dce7fc6c0 Recovering log #220
2025/04/22-07:53:33.102983 7f5dce7fc6c0 Delete type=3 #218
2025/04/22-07:53:33.103111 7f5dce7fc6c0 Delete type=0 #220
2025/04/22-08:41:45.609074 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.609111 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.615192 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629926 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.629989 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/22-15:21:55.474637 7f31457fa6c0 Recovering log #224
2025/04/22-15:21:55.485024 7f31457fa6c0 Delete type=3 #222
2025/04/22-15:21:55.485072 7f31457fa6c0 Delete type=0 #224

View File

@ -1,8 +1,8 @@
2025/04/21-17:09:30.749204 7f5dce7fc6c0 Recovering log #216
2025/04/21-17:09:30.759893 7f5dce7fc6c0 Delete type=3 #214
2025/04/21-17:09:30.760044 7f5dce7fc6c0 Delete type=0 #216
2025/04/21-17:40:19.292988 7f5dcd3ff6c0 Level-0 table #221: started
2025/04/21-17:40:19.293026 7f5dcd3ff6c0 Level-0 table #221: 0 bytes OK
2025/04/21-17:40:19.329102 7f5dcd3ff6c0 Delete type=0 #219
2025/04/21-17:40:19.406586 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/21-17:40:19.406620 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/22-07:53:33.091484 7f5dce7fc6c0 Recovering log #220
2025/04/22-07:53:33.102983 7f5dce7fc6c0 Delete type=3 #218
2025/04/22-07:53:33.103111 7f5dce7fc6c0 Delete type=0 #220
2025/04/22-08:41:45.609074 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.609111 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.615192 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629926 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.629989 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!7j8H7DbmBb9Uza2X' @ 72057594037927935 : 1 .. '!items!zt8s7564ep1La4XQ' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000222
MANIFEST-000226

View File

@ -1,8 +1,3 @@
2025/04/22-07:53:33.143404 7f5dcdffb6c0 Recovering log #220
2025/04/22-07:53:33.157266 7f5dcdffb6c0 Delete type=3 #218
2025/04/22-07:53:33.157351 7f5dcdffb6c0 Delete type=0 #220
2025/04/22-08:41:45.615323 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.615360 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.622976 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629946 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.630005 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/22-15:21:55.517149 7f3144ff96c0 Recovering log #224
2025/04/22-15:21:55.527229 7f3144ff96c0 Delete type=3 #222
2025/04/22-15:21:55.527296 7f3144ff96c0 Delete type=0 #224

View File

@ -1,8 +1,8 @@
2025/04/21-17:09:30.792733 7f5dcf7fe6c0 Recovering log #216
2025/04/21-17:09:30.802787 7f5dcf7fe6c0 Delete type=3 #214
2025/04/21-17:09:30.802873 7f5dcf7fe6c0 Delete type=0 #216
2025/04/21-17:40:19.329256 7f5dcd3ff6c0 Level-0 table #221: started
2025/04/21-17:40:19.329290 7f5dcd3ff6c0 Level-0 table #221: 0 bytes OK
2025/04/21-17:40:19.360850 7f5dcd3ff6c0 Delete type=0 #219
2025/04/21-17:40:19.406600 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/21-17:40:19.406634 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/22-07:53:33.143404 7f5dcdffb6c0 Recovering log #220
2025/04/22-07:53:33.157266 7f5dcdffb6c0 Delete type=3 #218
2025/04/22-07:53:33.157351 7f5dcdffb6c0 Delete type=0 #220
2025/04/22-08:41:45.615323 7f5dcd3ff6c0 Level-0 table #225: started
2025/04/22-08:41:45.615360 7f5dcd3ff6c0 Level-0 table #225: 0 bytes OK
2025/04/22-08:41:45.622976 7f5dcd3ff6c0 Delete type=0 #223
2025/04/22-08:41:45.629946 7f5dcd3ff6c0 Manual compaction at level-0 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)
2025/04/22-08:41:45.630005 7f5dcd3ff6c0 Manual compaction at level-1 from '!folders!mnO9OzE7BEE2KDfh' @ 72057594037927935 : 1 .. '!items!zkK6ixtCsCw3RH9X' @ 0 : 0; will stop at (end)

View File

@ -4,10 +4,10 @@
<legend>{{localize (concat "LETHALFANTASY.Label." rollType)}} - {{actorName}}</legend>
{{#if (match rollType "attack")}}
<div class="dialog-save">Attack roll !</div>
<div class="dialog-save">Attack roll ! - {{rollTarget.name}}</div>
{{/if}}
{{#if (match rollType "defense")}}
<div class="dialog-save">Defense roll !</div>
<div class="dialog-save">Defense roll ! - {{rollTarget.name}}</div>
{{/if}}
{{#if hasModifier}}