Skip to content

Commit 35cf5da

Browse files
committed
chore: Finish up symbolist's symbol active effect
1 parent e06fed4 commit 35cf5da

21 files changed

+868
-39
lines changed

module/helpers/config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ FU.resources = {
396396
ip: 'FU.InventoryPoints',
397397
fp: 'FU.FabulaPoints',
398398
exp: 'FU.Exp',
399+
zenit: 'FU.Zenit',
399400
};
400401

401402
FU.resourcesAbbr = {
@@ -404,6 +405,7 @@ FU.resourcesAbbr = {
404405
ip: 'FU.InventoryAbbr',
405406
fp: 'FU.FabulaAbbr',
406407
exp: 'FU.ExpAbbr',
408+
zenit: 'FU.Zenit',
407409
};
408410

409411
FU.resourceIcons = {

module/helpers/inline-resources.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const recoveryFlavor = {
3232
ip: 'FU.InventoryPointRecovery',
3333
fp: 'FU.TextEditorButtonCommandGain',
3434
exp: 'FU.TextEditorButtonCommandGain',
35+
zenit: 'FU.TextEditorButtonCommandGain',
3536
};
3637

3738
const lossFlavor = {
@@ -40,6 +41,7 @@ const lossFlavor = {
4041
ip: 'FU.InventoryPointLoss',
4142
fp: 'FU.TextEditorButtonCommandLoss',
4243
exp: 'FU.TextEditorButtonCommandLoss',
44+
zenit: 'FU.TextEditorButtonCommandLoss',
4345
};
4446

4547
const messages = {
@@ -48,6 +50,7 @@ const messages = {
4850
ip: 'FU.InventoryPointRecoveryMessage',
4951
fp: 'FU.ChatResourceGain',
5052
exp: 'FU.ChatResourceGain',
53+
zenit: 'FU.ChatResourceGain',
5154
};
5255

5356
function createReplacementElement(amount, type, elementClass, uncapped) {
@@ -179,7 +182,7 @@ function onDropActor(actor, sheet, { type, recoveryType, amount, source, uncappe
179182

180183
async function applyRecovery(actor, resource, amount, source, uncapped) {
181184
const amountRecovered = Math.max(0, amount + (actor.system.bonuses.incomingRecovery[resource] || 0));
182-
const isValue = resource === 'fp' || resource === 'exp';
185+
const isValue = resource === 'fp' || resource === 'exp' || resource === 'zenit';
183186
const attrKey = `resources.${resource}`;
184187
const attr = foundry.utils.getProperty(actor.system, attrKey);
185188
const uncappedRecoveryValue = amountRecovered + attr.value;
@@ -226,7 +229,7 @@ async function applyRecovery(actor, resource, amount, source, uncapped) {
226229

227230
async function applyLoss(actor, resource, amount, source) {
228231
const amountLost = -amount;
229-
const isValue = resource === 'fp' || resource === 'exp';
232+
const isValue = resource === 'fp' || resource === 'exp' || resource === 'zenit';
230233
const updates = [];
231234

232235
// Handle specific cases for fp and exp

src/packs/skills/classFeature_Symbol_of_Binding_C8Erod4IEe7SCEGF.json

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,62 @@
1313
},
1414
"featureType": "projectfu.symbol",
1515
"data": {
16-
"description": "<p>The <strong>current </strong>Attribute die sizes of the creature bearing this <strong>symbol </strong>can <strong>never </strong>be <strong>higher </strong>than that creature’s corresponding <strong>base </strong>Attribute die sizes (this does <strong>not</strong> end any spells or effects, but it will negate their influence over the creature’s Attributes).</p><hr><p>@LOSS[2 ip]</p>"
16+
"description": "<p>The <strong>current </strong>Attribute die sizes of the creature bearing this <strong>symbol </strong>can <strong>never </strong>be <strong>higher </strong>than that creature’s corresponding <strong>base </strong>Attribute die sizes (this does <strong>not</strong> end any spells or effects, but it will negate their influence over the creature’s Attributes).</p><hr><p>@UUID[Compendium.projectfu.actor-effects.Item.UwPbW3l5dOc5TawO]{DEX Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.3BnJm5HkDhJfm1U1]{INS Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.muWeWDQSvZDY0IcI]{MIG Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.BOVKFGdnuk8xq5EX]{WLP Base Cap}</p><p>@LOSS[2 ip]</p>"
1717
},
1818
"source": "FUHF149",
1919
"fuid": "symbol-of-binding"
2020
},
21-
"effects": [],
21+
"effects": [
22+
{
23+
"origin": "Compendium.projectfu.skills.Item.C8Erod4IEe7SCEGF",
24+
"duration": {
25+
"rounds": 1,
26+
"startTime": null,
27+
"seconds": null,
28+
"combat": null,
29+
"turns": null,
30+
"startRound": null,
31+
"startTurn": null
32+
},
33+
"disabled": true,
34+
"name": "Symbol of Binding (DEX)",
35+
"img": "icons/magic/symbols/rune-sigil-green.webp",
36+
"_id": "ppIL2W4yAjvAH9vl",
37+
"type": "base",
38+
"system": {},
39+
"changes": [
40+
{
41+
"key": "system.attributes.dex.current",
42+
"mode": 3,
43+
"value": "@system.attributes.dex.base",
44+
"priority": null
45+
}
46+
],
47+
"description": "<p>The <strong>current </strong>Attribute die sizes of the creature bearing this <strong>symbol </strong>can <strong>never </strong>be <strong>higher </strong>than that creature’s corresponding <strong>base </strong>Attribute die sizes (this does <strong>not</strong> end any spells or effects, but it will negate their influence over the creature’s Attributes).</p><hr /><p>@UUID[Compendium.projectfu.actor-effects.Item.UwPbW3l5dOc5TawO]{DEX Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.3BnJm5HkDhJfm1U1]{INS Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.muWeWDQSvZDY0IcI]{MIG Base Cap} @UUID[Compendium.projectfu.actor-effects.Item.BOVKFGdnuk8xq5EX]{WLP Base Cap}</p>",
48+
"tint": "#ffffff",
49+
"transfer": true,
50+
"statuses": [],
51+
"sort": 0,
52+
"flags": {
53+
"projectfu": {
54+
"type": "default",
55+
"source": "FUHF149",
56+
"CrisisInteraction": "none"
57+
}
58+
},
59+
"_stats": {
60+
"compendiumSource": null,
61+
"duplicateSource": null,
62+
"coreVersion": "12.331",
63+
"systemId": "projectfu",
64+
"systemVersion": "#{VERSION}#",
65+
"createdTime": 1730449149859,
66+
"modifiedTime": 1730919168973,
67+
"lastModifiedBy": "B6evqtezy9ZsGZG3"
68+
},
69+
"_key": "!items.effects!C8Erod4IEe7SCEGF.ppIL2W4yAjvAH9vl"
70+
}
71+
],
2272
"ownership": {
2373
"default": 2,
2474
"hYECXwi6O8UUBuN4": 3,
@@ -33,8 +83,8 @@
3383
"systemVersion": "#{VERSION}#",
3484
"coreVersion": "12.331",
3585
"createdTime": 1710177274883,
36-
"modifiedTime": 1724180861709,
37-
"lastModifiedBy": "dobQfkKFj2NK96cc",
86+
"modifiedTime": 1730919153451,
87+
"lastModifiedBy": "B6evqtezy9ZsGZG3",
3888
"compendiumSource": null,
3989
"duplicateSource": null
4090
},

src/packs/skills/classFeature_Symbol_of_Creation_5PBHJ7pd0OQlnIoa.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,50 @@
1818
"source": "FUHF149",
1919
"fuid": "symbol-of-creation"
2020
},
21-
"effects": [],
21+
"effects": [
22+
{
23+
"origin": "Compendium.projectfu.skills.Item.5PBHJ7pd0OQlnIoa",
24+
"duration": {
25+
"rounds": 1,
26+
"startTime": null,
27+
"seconds": null,
28+
"combat": null,
29+
"turns": null,
30+
"startRound": null,
31+
"startTurn": null
32+
},
33+
"disabled": true,
34+
"name": "Symbol of Creation",
35+
"img": "icons/magic/symbols/cog-glowing-green.webp",
36+
"_id": "yW2LEWpD5Dif5ZCA",
37+
"type": "base",
38+
"system": {},
39+
"changes": [],
40+
"description": "<p>When the creature bearing this <strong>symbol </strong>needs to spend Inventory Points during a conflict, they may instead destroy this <strong>symbol </strong>to spend no Inventory Points.</p>",
41+
"tint": "#ffffff",
42+
"transfer": true,
43+
"statuses": [],
44+
"sort": 0,
45+
"flags": {
46+
"projectfu": {
47+
"type": "default",
48+
"source": "FUHF149",
49+
"CrisisInteraction": "none"
50+
}
51+
},
52+
"_stats": {
53+
"compendiumSource": null,
54+
"duplicateSource": null,
55+
"coreVersion": "12.331",
56+
"systemId": "projectfu",
57+
"systemVersion": "#{VERSION}#",
58+
"createdTime": 1730449791524,
59+
"modifiedTime": 1730449870828,
60+
"lastModifiedBy": "B6evqtezy9ZsGZG3"
61+
},
62+
"_key": "!items.effects!5PBHJ7pd0OQlnIoa.yW2LEWpD5Dif5ZCA"
63+
}
64+
],
2265
"ownership": {
2366
"default": 2,
2467
"hYECXwi6O8UUBuN4": 3,

src/packs/skills/classFeature_Symbol_of_Despair_Tr7be00yVo0KtNvA.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,50 @@
1818
"source": "FUHF149",
1919
"fuid": "symbol-of-despair"
2020
},
21-
"effects": [],
21+
"effects": [
22+
{
23+
"origin": "Compendium.projectfu.skills.Item.Tr7be00yVo0KtNvA",
24+
"duration": {
25+
"rounds": 1,
26+
"startTime": null,
27+
"seconds": null,
28+
"combat": null,
29+
"turns": null,
30+
"startRound": null,
31+
"startTurn": null
32+
},
33+
"disabled": true,
34+
"name": "Symbol of Despair",
35+
"img": "icons/magic/symbols/mask-yellow-orange.webp",
36+
"_id": "tzKS3xShNJTpezMo",
37+
"type": "base",
38+
"system": {},
39+
"changes": [],
40+
"description": "<p>When the creature bearing this <strong>symbol </strong>recovers Hit Points and/or Mind Points during conflicts, instead they only recover <strong>half </strong>the normal amount of Hit Points and/or Mind Points, respectively.</p>",
41+
"tint": "#ffffff",
42+
"transfer": true,
43+
"statuses": [],
44+
"sort": 0,
45+
"flags": {
46+
"projectfu": {
47+
"type": "default",
48+
"source": "FUHF149",
49+
"CrisisInteraction": "none"
50+
}
51+
},
52+
"_stats": {
53+
"compendiumSource": null,
54+
"duplicateSource": null,
55+
"coreVersion": "12.331",
56+
"systemId": "projectfu",
57+
"systemVersion": "#{VERSION}#",
58+
"createdTime": 1730449967668,
59+
"modifiedTime": 1730450033905,
60+
"lastModifiedBy": "B6evqtezy9ZsGZG3"
61+
},
62+
"_key": "!items.effects!Tr7be00yVo0KtNvA.tzKS3xShNJTpezMo"
63+
}
64+
],
2265
"ownership": {
2366
"default": 2,
2467
"hYECXwi6O8UUBuN4": 3,

src/packs/skills/classFeature_Symbol_of_Destiny_iHSsrs2yonFdBM6g.json

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,55 @@
1313
},
1414
"featureType": "projectfu.symbol",
1515
"data": {
16-
"description": "<p>After the creature bearing this <strong>symbol </strong>makes a Check, if you are able to see them, you may spend 1 Fabula Point to force that creature to reroll both dice. You may only do so once per Check, and only if the Result was not a <strong>critical success</strong> or <strong>fumble</strong>.</p><hr><p>@LOSS[2 ip]</p>"
16+
"description": "<p>After the creature bearing this <strong>symbol </strong>makes a Check, if you are able to see them, you may spend @LOSS[1 fp] to force that creature to reroll both dice. You may only do so once per Check, and only if the Result was not a <strong>critical success</strong> or <strong>fumble</strong>.</p><hr><p>@LOSS[2 ip]</p>"
1717
},
1818
"source": "FUHF149",
1919
"fuid": "symbol-of-destiny"
2020
},
21-
"effects": [],
21+
"effects": [
22+
{
23+
"origin": "Compendium.projectfu.skills.Item.iHSsrs2yonFdBM6g",
24+
"duration": {
25+
"rounds": 1,
26+
"startTime": null,
27+
"seconds": null,
28+
"combat": null,
29+
"turns": null,
30+
"startRound": null,
31+
"startTurn": null
32+
},
33+
"disabled": true,
34+
"name": "Symbol of Destiny",
35+
"img": "icons/magic/symbols/star-solid-gold.webp",
36+
"_id": "K7GI9inLxnzRiIVQ",
37+
"type": "base",
38+
"system": {},
39+
"changes": [],
40+
"description": "<p>After the creature bearing this <strong>symbol </strong>makes a Check, if you are able to see them, you may spend 1 Fabula Point to force that creature to reroll both dice. You may only do so once per Check, and only if the Result was not a <strong>critical success</strong> or <strong>fumble</strong>.</p>",
41+
"tint": "#ffffff",
42+
"transfer": true,
43+
"statuses": [],
44+
"sort": 0,
45+
"flags": {
46+
"projectfu": {
47+
"type": "default",
48+
"source": "FUHF149",
49+
"CrisisInteraction": "none"
50+
}
51+
},
52+
"_stats": {
53+
"compendiumSource": null,
54+
"duplicateSource": null,
55+
"coreVersion": "12.331",
56+
"systemId": "projectfu",
57+
"systemVersion": "#{VERSION}#",
58+
"createdTime": 1730450095506,
59+
"modifiedTime": 1730450118331,
60+
"lastModifiedBy": "B6evqtezy9ZsGZG3"
61+
},
62+
"_key": "!items.effects!iHSsrs2yonFdBM6g.K7GI9inLxnzRiIVQ"
63+
}
64+
],
2265
"ownership": {
2366
"default": 2,
2467
"hYECXwi6O8UUBuN4": 3,
@@ -33,8 +76,8 @@
3376
"systemVersion": "#{VERSION}#",
3477
"coreVersion": "12.331",
3578
"createdTime": 1710177406622,
36-
"modifiedTime": 1724180862905,
37-
"lastModifiedBy": "dobQfkKFj2NK96cc",
79+
"modifiedTime": 1730726334277,
80+
"lastModifiedBy": "B6evqtezy9ZsGZG3",
3881
"compendiumSource": null,
3982
"duplicateSource": null
4083
},

src/packs/skills/classFeature_Symbol_of_Elements_urIOyQRzl8QncNxx.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,50 @@
1818
"source": "FUHF149",
1919
"fuid": "symbol-of-elements"
2020
},
21-
"effects": [],
21+
"effects": [
22+
{
23+
"origin": "Compendium.projectfu.skills.Item.urIOyQRzl8QncNxx",
24+
"duration": {
25+
"rounds": null,
26+
"startTime": null,
27+
"seconds": null,
28+
"combat": null,
29+
"turns": null,
30+
"startRound": null,
31+
"startTurn": null
32+
},
33+
"disabled": true,
34+
"name": "Symbol of Elements",
35+
"img": "icons/magic/symbols/rune-sigil-red-orange.webp",
36+
"_id": "yba4BkZcSQ7umrMH",
37+
"type": "base",
38+
"system": {},
39+
"changes": [],
40+
"description": "<p>When you create this <strong>symbol</strong>, choose a damage type: <strong>air</strong>, <strong>bolt</strong>, <strong>dark</strong>, <strong>earth</strong>, <strong>fire</strong>, <strong>ice</strong>, <strong>light</strong>, or <strong>poison</strong>. When the creature bearing this <strong>symbol</strong> deals damage to one or more creatures, if you can see the creature bearing this <strong>symbol</strong>, you may spend an amount of Mind Points equal to <strong>one third of the total damage being inflicted to those creatures</strong> (including any sources of extra damage). If you do, all damage dealt this way changes type to the type chosen when you created this <strong>symbol</strong>.</p>",
41+
"tint": "#ffffff",
42+
"transfer": true,
43+
"statuses": [],
44+
"sort": 0,
45+
"flags": {
46+
"projectfu": {
47+
"type": "default",
48+
"source": "FUHF149",
49+
"CrisisInteraction": "none"
50+
}
51+
},
52+
"_stats": {
53+
"compendiumSource": null,
54+
"duplicateSource": null,
55+
"coreVersion": "12.331",
56+
"systemId": "projectfu",
57+
"systemVersion": "#{VERSION}#",
58+
"createdTime": 1730916287777,
59+
"modifiedTime": 1730916308368,
60+
"lastModifiedBy": "B6evqtezy9ZsGZG3"
61+
},
62+
"_key": "!items.effects!urIOyQRzl8QncNxx.yba4BkZcSQ7umrMH"
63+
}
64+
],
2265
"ownership": {
2366
"default": 2,
2467
"hYECXwi6O8UUBuN4": 3,

0 commit comments

Comments
 (0)