4 Commits

Author SHA1 Message Date
b21c5ac9bb Add rituals !
Some checks failed
Release Creation / build (release) Failing after 44s
2025-04-25 00:26:28 +02:00
a43bebc63b Add rituals !
Some checks failed
Release Creation / build (release) Failing after 21s
2025-04-24 23:54:52 +02:00
2b418695c4 Actualiser README.md 2025-03-31 16:34:00 +02:00
5dbb168891 Improve release management 2025-03-31 14:31:23 +02:00
32 changed files with 132 additions and 75 deletions

View File

@ -1,6 +1,15 @@
<h2><em>Cthulhu Eternal RPG</em> for Foundry Virtual TableTop</h2> # Cthulhu Eternal RPG for FoundryVTT
<div align="center"> Cthulhu Eternal : https://cthulhueternal.com/
</div> The system contains :
- Protagonist, Creature and Vehicle sheet
- Arcane, Archetype, Armor, Bond, Gear, Injury, Mental Disorder, Motivation, Ritual, Skill, Tome, Weapon items
- Support for all available eras
- Pre-filled compendium for each era
- Specific look&fell for each era
- And much more !
Discord Contact : LeRatierBretonnien (at Official Foundry Discord of French Foundry Discord)

View File

@ -1,3 +1,8 @@
# 12.0.12
- Add missing skills for WW1, WW2, future and post-apocalyptic
- Fix packaging
# 12.0.11 # 12.0.11
- Initial release - Initial release

View File

@ -2680,6 +2680,14 @@ i.fvtt-cthulhu-eternal {
margin-top: 8px; margin-top: 8px;
background-color: var(--color-light-1); background-color: var(--color-light-1);
} }
.fvtt-cthulhu-eternal .ritual-content fieldset .editor-content {
max-height: 400px;
overflow-y: auto;
}
.fvtt-cthulhu-eternal .ritual-content fieldset .editor-container {
max-height: 400px;
overflow-y: auto;
}
.fvtt-cthulhu-eternal .ritual-content .header { .fvtt-cthulhu-eternal .ritual-content .header {
background-color: var(--color-light-1); background-color: var(--color-light-1);
display: flex; display: flex;

View File

@ -457,6 +457,7 @@
"Simple": "Simple", "Simple": "Simple",
"Complex": "Complex", "Complex": "Complex",
"Elaborate": "Elaborate", "Elaborate": "Elaborate",
"Difficult": "Difficult",
"FIELDS": { "FIELDS": {
"ritualType": { "ritualType": {
"label": "Type" "label": "Type"

View File

@ -240,6 +240,7 @@ export const MULTIPLIER_CHOICES = {
export const RITUAL_TYPES = { export const RITUAL_TYPES = {
"simple": "CTHULHUETERNAL.Ritual.Simple", "simple": "CTHULHUETERNAL.Ritual.Simple",
"difficult": "CTHULHUETERNAL.Ritual.Difficult",
"complex": "CTHULHUETERNAL.Ritual.Complex", "complex": "CTHULHUETERNAL.Ritual.Complex",
"elaborate": "CTHULHUETERNAL.Ritual.Elaborate" "elaborate": "CTHULHUETERNAL.Ritual.Elaborate"
} }

View File

@ -147,6 +147,24 @@ export default class CthulhuEternalRoll extends Roll {
options.isNudge = false options.isNudge = false
break break
case "damage": case "damage":
let isLethal = false
options.isNudge = false
if (options.rollItem.system.lethality > 0) {
let lethalityRoll = new Roll("1d100")
await lethalityRoll.evaluate()
isLethal = (lethalityRoll.total <= options.rollItem.system.lethality)
let flavor = `${options.rollItem.name} - <strong>Lethality Roll</strong> : ${lethalityRoll.total} <= ${options.rollItem.system.lethality} => ${isLethal}`
if ( isLethal) {
flavor += `<br>The target is lethally wounded => HP = 0`
} else {
let wounds = Math.floor(lethalityRoll.total/10) + (lethalityRoll.total % 10)
flavor += `<br>The target is not lethally wounded => HP loss = ${wounds}`
}
await lethalityRoll.toMessage({
flavor:flavor
});
return
}
let formula = options.rollItem.system.damage let formula = options.rollItem.system.damage
if ( options.rollItem.system.weaponType === "melee" || options.rollItem.system.weaponType === "unarmed") { if ( options.rollItem.system.weaponType === "melee" || options.rollItem.system.weaponType === "unarmed") {
formula += ` + ${options.rollItem.damageBonus}` formula += ` + ${options.rollItem.damageBonus}`
@ -156,16 +174,6 @@ export default class CthulhuEternalRoll extends Roll {
await damageRoll.toMessage({ await damageRoll.toMessage({
flavor: `${options.rollItem.name} - Damage Roll` flavor: `${options.rollItem.name} - Damage Roll`
}); });
let isLethal = false
options.isNudge = false
if (options.rollItem.system.lethality > 0) {
let lethalityRoll = new Roll("1d100")
await lethalityRoll.evaluate()
isLethal = (lethalityRoll.total <= options.rollItem.system.lethality)
await lethalityRoll.toMessage({
flavor: `${options.rollItem.name} - Lethality Roll : ${lethalityRoll.total} <= ${options.rollItem.system.lethality} => ${isLethal}`
});
}
return return
case "weapon": case "weapon":
let era = game.settings.get("fvtt-cthulhu-eternal", "settings-era") let era = game.settings.get("fvtt-cthulhu-eternal", "settings-era")

Binary file not shown.

View File

@ -0,0 +1 @@
MANIFEST-000010

View File

8
packs-system/rituals/LOG Normal file
View File

@ -0,0 +1,8 @@
2025/04/25-00:23:55.566074 7fd0855fa6c0 Recovering log #8
2025/04/25-00:23:55.627155 7fd0855fa6c0 Delete type=3 #6
2025/04/25-00:23:55.627214 7fd0855fa6c0 Delete type=0 #8
2025/04/25-00:24:39.296644 7fd07effd6c0 Level-0 table #13: started
2025/04/25-00:24:39.296707 7fd07effd6c0 Level-0 table #13: 0 bytes OK
2025/04/25-00:24:39.302890 7fd07effd6c0 Delete type=0 #11
2025/04/25-00:24:39.309638 7fd07effd6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)
2025/04/25-00:24:39.309671 7fd07effd6c0 Manual compaction at level-1 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2025/04/24-23:56:15.236151 7fd0855fa6c0 Recovering log #4
2025/04/24-23:56:15.247158 7fd0855fa6c0 Delete type=0 #4
2025/04/24-23:56:15.247228 7fd0855fa6c0 Delete type=3 #2
2025/04/25-00:23:51.709456 7fd07effd6c0 Level-0 table #9: started
2025/04/25-00:23:51.709498 7fd07effd6c0 Level-0 table #9: 0 bytes OK
2025/04/25-00:23:51.747489 7fd07effd6c0 Delete type=0 #7
2025/04/25-00:23:51.747677 7fd07effd6c0 Manual compaction at level-0 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)
2025/04/25-00:23:51.809910 7fd07effd6c0 Manual compaction at level-1 from '!items!4oyPRBWPBWAChrJP' @ 72057594037927935 : 1 .. '!items!zVFfp3o0G0Zg3Ia4' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

View File

@ -1 +1 @@
MANIFEST-000153 MANIFEST-000174

View File

@ -1,8 +1,7 @@
2025/03/31-14:17:56.392165 7f9cf57fa6c0 Recovering log #150 2025/04/25-00:23:55.465639 7fd07f7fe6c0 Recovering log #172
2025/03/31-14:17:56.402772 7f9cf57fa6c0 Delete type=3 #148 2025/04/25-00:23:55.561118 7fd07f7fe6c0 Delete type=3 #170
2025/03/31-14:17:56.402849 7f9cf57fa6c0 Delete type=0 #150 2025/04/25-00:23:55.561198 7fd07f7fe6c0 Delete type=0 #172
2025/03/31-14:18:14.649211 7f9cf4ff96c0 Level-0 table #156: started 2025/04/25-00:24:39.302991 7fd07effd6c0 Level-0 table #177: started
2025/03/31-14:18:14.649284 7f9cf4ff96c0 Level-0 table #156: 0 bytes OK 2025/04/25-00:24:39.303023 7fd07effd6c0 Level-0 table #177: 0 bytes OK
2025/03/31-14:18:14.657130 7f9cf4ff96c0 Delete type=0 #154 2025/04/25-00:24:39.309509 7fd07effd6c0 Delete type=0 #175
2025/03/31-14:18:14.671046 7f9cf4ff96c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end) 2025/04/25-00:24:39.309652 7fd07effd6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)
2025/03/31-14:18:14.671088 7f9cf4ff96c0 Manual compaction at level-1 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)

View File

@ -1,15 +1,7 @@
2025/03/31-13:30:08.704004 7f9cf57fa6c0 Recovering log #146 2025/04/24-23:56:15.221751 7fd07f7fe6c0 Recovering log #168
2025/03/31-13:30:08.713893 7f9cf57fa6c0 Delete type=3 #144 2025/04/24-23:56:15.231420 7fd07f7fe6c0 Delete type=0 #168
2025/03/31-13:30:08.713965 7f9cf57fa6c0 Delete type=0 #146 2025/04/24-23:56:15.231515 7fd07f7fe6c0 Delete type=3 #166
2025/03/31-14:17:51.825999 7f9cf4ff96c0 Level-0 table #151: started 2025/04/25-00:23:51.673765 7fd07effd6c0 Level-0 table #173: started
2025/03/31-14:17:51.831210 7f9cf4ff96c0 Level-0 table #151: 139466 bytes OK 2025/04/25-00:23:51.673830 7fd07effd6c0 Level-0 table #173: 0 bytes OK
2025/03/31-14:17:51.837284 7f9cf4ff96c0 Delete type=0 #149 2025/04/25-00:23:51.709271 7fd07effd6c0 Delete type=0 #171
2025/03/31-14:17:51.843769 7f9cf4ff96c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end) 2025/04/25-00:23:51.747663 7fd07effd6c0 Manual compaction at level-0 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)
2025/03/31-14:17:51.843820 7f9cf4ff96c0 Manual compaction at level-1 from '!folders!5PrT9QmN1cFPzDFP' @ 72057594037927935 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at '!items!zvoUByzWSWZ87fxA' @ 526 : 1
2025/03/31-14:17:51.843828 7f9cf4ff96c0 Compacting 1@1 + 1@2 files
2025/03/31-14:17:51.850707 7f9cf4ff96c0 Generated table #152@1: 548 keys, 311006 bytes
2025/03/31-14:17:51.850737 7f9cf4ff96c0 Compacted 1@1 + 1@2 files => 311006 bytes
2025/03/31-14:17:51.856748 7f9cf4ff96c0 compacted to: files[ 0 0 1 0 0 0 0 ]
2025/03/31-14:17:51.856867 7f9cf4ff96c0 Delete type=2 #5
2025/03/31-14:17:51.856985 7f9cf4ff96c0 Delete type=2 #151
2025/03/31-14:17:51.888059 7f9cf4ff96c0 Manual compaction at level-1 from '!items!zvoUByzWSWZ87fxA' @ 526 : 1 .. '!items!zvoUByzWSWZ87fxA' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -5,6 +5,14 @@
fieldset { fieldset {
margin-top: 8px; margin-top: 8px;
background-color: var(--color-light-1); background-color: var(--color-light-1);
.editor-content {
max-height: 400px;
overflow-y: auto;
}
.editor-container {
max-height: 400px;
overflow-y: auto;
}
} }
.header { .header {

View File

@ -61,6 +61,14 @@
"system": "fvtt-cthulhu-eternal", "system": "fvtt-cthulhu-eternal",
"path": "packs-system/skills", "path": "packs-system/skills",
"type": "Item" "type": "Item"
},
{
"name": "rituals",
"banner": "",
"label": "Rituals",
"system": "fvtt-cthulhu-eternal",
"path": "packs-system/rituals",
"type": "Item"
} }
], ],
"grid": { "grid": {

View File

@ -6,7 +6,7 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset> </fieldset>
</section> </section>

View File

@ -10,7 +10,7 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset> </fieldset>
</section>h </section>h

View File

@ -15,7 +15,7 @@
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput {{formInput
systemFields.description systemFields.description
enriched=description enriched=enrichedDescription
value=system.description value=system.description
name="system.description" name="system.description"
toggled="false" toggled="false"

View File

@ -12,7 +12,7 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description"
toggled=true}} toggled=true}}
</fieldset> </fieldset>

View File

@ -12,7 +12,7 @@
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput {{formInput
systemFields.description systemFields.description
enriched=description enriched=enrichedDescription
value=system.description value=system.description
name="system.description" name="system.description"
toggled="false" toggled="false"

View File

@ -6,7 +6,7 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset> </fieldset>
</section> </section>

View File

@ -17,7 +17,8 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset> </fieldset>
</section> </section>

View File

@ -36,7 +36,7 @@
<fieldset> <fieldset>
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput systemFields.description enriched=description value=system.description name="system.description" toggled=true}} {{formInput systemFields.description enriched=enrichedDescription value=system.description name="system.description" toggled=true}}
</fieldset> </fieldset>
</section> </section>

View File

@ -33,7 +33,7 @@
<legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend> <legend>{{localize "CTHULHUETERNAL.Label.description"}}</legend>
{{formInput {{formInput
systemFields.description systemFields.description
enriched=description enriched=enrichedDescription
value=system.description value=system.description
name="system.description" name="system.description"
toggled=true toggled=true