Skip to content

Commit c70d5c9

Browse files
[MoM] Add Psychometry clairsentient power (#82389)
* Initial implementation * Add practice recipe * Add learning EoC * Add knack * Recipe learning EoC in place * Fixes * Slightly edit Fifth Sun description
1 parent 690cc17 commit c70d5c9

File tree

10 files changed

+223
-18
lines changed

10 files changed

+223
-18
lines changed

data/mods/MindOverMatter/PowerDescriptionSpoilers.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ This is natural painkiller and so has natural effects (reduces speed slightly)<b
309309
*Prerequisites*: Discern Weakness 7<br />
310310
</details>
311311
<details>
312+
<summary><h3>Psychometry</h3></summary>
313+
314+
*Difficulty*: 4<br />
315+
*Target*: One item<br />
316+
*Duration*: Instant<br />
317+
*Stamina Cost*: 5000<br />
318+
*Channeling Time*: 5 minutes<br />
319+
*Effects*: Examine a single object, determining hidden information about it. Current supports determining: artifact resonance.<br />
320+
*Prerequisites*: Aura Sight 6, Speed Reading 8 *or* Premonition 8<br />
321+
</details>
322+
<details>
312323
<summary><h3>Sense Hostility (C)</h3></summary>
313324

314325
*Difficulty*: 5<br />

data/mods/MindOverMatter/effectoncondition/eoc_learn_recipes.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_SPOT_WEAKNESS",
151151
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_AURA_SIGHT",
152152
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_RANGED_ENHANCE",
153+
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_EXAMINE_ITEMS",
153154
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_SENSE_HOSTILE_CREATURES",
154155
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_VOYANCE",
155156
"EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_DODGE_POWER",
@@ -205,6 +206,12 @@
205206
"condition": { "and": [ { "u_has_trait": "CLAIRSENTIENT" }, { "math": [ "u_spell_level('clair_ranged_enhance') >= 0" ] } ] },
206207
"effect": [ { "u_learn_recipe": "practice_clair_ranged_enhance" } ]
207208
},
209+
{
210+
"type": "effect_on_condition",
211+
"id": "EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_EXAMINE_ITEMS",
212+
"condition": { "and": [ { "u_has_trait": "CLAIRSENTIENT" }, { "math": [ "u_spell_level('clair_examine_item') >= 0" ] } ] },
213+
"effect": [ { "u_learn_recipe": "practice_clair_examine_item" } ]
214+
},
208215
{
209216
"type": "effect_on_condition",
210217
"id": "EOC_CHECK_GAMEBEGIN_CLAIR_RECIPE_SENSE_HOSTILE_CREATURES",

data/mods/MindOverMatter/hobbies.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,16 @@
589589
"traits": [ "PSYCHIC_KNACK" ],
590590
"spells": [ { "id": "clair_danger_sense_knack", "level": 6 } ]
591591
},
592+
{
593+
"type": "profession",
594+
"subtype": "hobby",
595+
"id": "knack_clair_examine_item",
596+
"name": "Psychic Knack (Psychometry)",
597+
"description": "Before the Cataclysm you would sometimes get strong impressions from items you touched, or have dreams about things you had bought. Bits of their history that seemed so real, they had to have happened. Hopefully it helps you survive.",
598+
"points": 3,
599+
"traits": [ "PSYCHIC_KNACK" ],
600+
"spells": [ { "id": "clair_examine_item_knack", "level": 6 } ]
601+
},
592602
{
593603
"type": "profession",
594604
"subtype": "hobby",

data/mods/MindOverMatter/items/teleporter_start_items.json

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"ammo_effects": [ "PLASMA", "PLASMA_BUBBLE", "IGNITE" ],
2525
"ammo": [ "mom_fusion_ammo" ],
2626
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "magazine_well": "25 ml", "item_restriction": [ "mom_fusion_mag" ] } ],
27-
"flags": [ "NEVER_JAMS", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR" ]
27+
"flags": [ "NEVER_JAMS", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR", "FIFTH_SUN_TECHNOLOGY" ]
2828
},
2929
{
3030
"id": "mom_fusion_mag",
@@ -91,7 +91,7 @@
9191
"ammo_effects": [ "NEURAL_STUNGUN" ],
9292
"ammo": [ "mom_fifth_sun_stungun_ammo" ],
9393
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "magazine_well": "25 ml", "item_restriction": [ "mom_fifth_sun_stungun_mag" ] } ],
94-
"flags": [ "NEVER_JAMS", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR" ]
94+
"flags": [ "NEVER_JAMS", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR", "FIFTH_SUN_TECHNOLOGY" ]
9595
},
9696
{
9797
"id": "mom_fifth_sun_stungun_mag",
@@ -164,7 +164,7 @@
164164
"melee_damage": { "bash": 12 },
165165
"ammo": [ "mom_lightning_rifle_ammo" ],
166166
"pocket_data": [ { "pocket_type": "MAGAZINE_WELL", "magazine_well": "50 ml", "item_restriction": [ "mom_lightning_rifle_mag" ] } ],
167-
"flags": [ "NEVER_JAMS", "NO_REPAIR", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR" ],
167+
"flags": [ "NEVER_JAMS", "NO_REPAIR", "NON_FOULING", "NEEDS_NO_LUBE", "NO_REPAIR", "FIFTH_SUN_TECHNOLOGY" ],
168168
"variant_type": "generic",
169169
"variants": [
170170
{
@@ -267,7 +267,7 @@
267267
{ "covers": [ "eyes" ], "rigid_layer_only": true, "coverage": 100, "encumbrance": 10 }
268268
],
269269
"melee_damage": { "bash": 1 },
270-
"flags": [ "VARSIZE", "WATERPROOF", "MUNDANE", "STURDY", "PADDED" ]
270+
"flags": [ "VARSIZE", "WATERPROOF", "MUNDANE", "STURDY", "PADDED", "FIFTH_SUN_TECHNOLOGY" ]
271271
},
272272
{
273273
"id": "mom_fifth_sun_eagle_tac_helmet_on",
@@ -370,7 +370,7 @@
370370
]
371371
}
372372
],
373-
"flags": [ "VARSIZE", "STURDY", "MUNDANE", "OUTER", "NO_REPAIR" ]
373+
"flags": [ "VARSIZE", "STURDY", "MUNDANE", "OUTER", "NO_REPAIR", "FIFTH_SUN_TECHNOLOGY" ]
374374
},
375375
{
376376
"id": "mom_fifth_sun_standard_body_armor_on",
@@ -457,15 +457,17 @@
457457
"subtypes": [ "ARMOR" ],
458458
"name": { "str_sp": "Itzcuāuhtli Corps tilmàtli" },
459459
"description": "A formal dress cape for the Itzcuāuhtli Corps in crimson and gold, with the eagle's head over a field of stars insignia on the left shoulder, worn by generations of those who sought out new worlds in service to the Huey Tlatoani and the Ēxcān Tlahtōlōyān. You're pretty sure this is the furthest anyone wearing one has ever been from Anáhuac.",
460-
"delete": { "flags": [ "HOOD" ] }
460+
"delete": { "flags": [ "HOOD" ] },
461+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
461462
},
462463
{
463464
"id": "itzcuauhtli_hat",
464465
"copy-from": "beret",
465466
"type": "ITEM",
466467
"subtypes": [ "ARMOR" ],
467468
"name": { "str": "Imperial navy cap" },
468-
"description": "A flat crimson hat worn by members of the Imperial navy at formal events. This one has the black circle of the Yohualli Ehēcatl on it."
469+
"description": "A flat crimson hat worn by members of the Imperial navy at formal events. This one has the black circle of the Yohualli Ehēcatl on it.",
470+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
469471
},
470472
{
471473
"id": "itzcuauhtli_holster",
@@ -485,7 +487,8 @@
485487
"max_item_length": "30 cm",
486488
"moves": 50
487489
}
488-
]
490+
],
491+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
489492
},
490493
{
491494
"id": "itzcuauhtli_holster_m12",
@@ -505,15 +508,17 @@
505508
"max_item_length": "30 cm",
506509
"moves": 50
507510
}
508-
]
511+
],
512+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
509513
},
510514
{
511515
"id": "itzcuauhtli_tunic",
512516
"copy-from": "dress_shirt",
513517
"type": "ITEM",
514518
"subtypes": [ "ARMOR" ],
515519
"name": { "str": "Yohualli Ehēcatl division tunic" },
516-
"description": "A dress tunic, in gold and crimson, slashed with black bars. This would immediately mark your exact rank and position to anyone else in the Imperial Navy, if you ever see another one again."
520+
"description": "A dress tunic, in gold and crimson, slashed with black bars. This would immediately mark your exact rank and position to anyone else in the Imperial Navy, if you ever see another one again.",
521+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
517522
},
518523
{
519524
"id": "itzcuauhtli_tunic_jaguar",
@@ -536,7 +541,8 @@
536541
"description": "Some sort of uniform dress shirt in a blood-red crimson color with gold accents and a series of yellow bars on the left side. You can't recall any military that dresses quite like this.",
537542
"weight": 1
538543
}
539-
]
544+
],
545+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
540546
},
541547
{
542548
"id": "itzcuauhtli_pants",
@@ -559,7 +565,8 @@
559565
"description": "Some sort of uniform pants in a blood-red crimson color with gold accents. You can't recall any military that dresses quite like this.",
560566
"weight": 1
561567
}
562-
]
568+
],
569+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
563570
},
564571
{
565572
"id": "itzcuauhtli_boots",
@@ -582,7 +589,8 @@
582589
"description": "Simple black leather boots.",
583590
"weight": 1
584591
}
585-
]
592+
],
593+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
586594
},
587595
{
588596
"id": "itzcuauhtli_wrist_computer",
@@ -608,7 +616,8 @@
608616
"NO_RELOAD",
609617
"ALLOWS_NATURAL_ATTACKS",
610618
"OVERSIZE",
611-
"NO_REPAIR"
619+
"NO_REPAIR",
620+
"FIFTH_SUN_TECHNOLOGY"
612621
],
613622
"symbol": "[",
614623
"use_action": [ "E_FILE_DEVICE", "EBOOKSAVE", "MP3", "CAMERA", "CALORIES_INTAKE_TRACKER", "PORTABLE_GAME", "FITNESS_CHECK" ],
@@ -646,30 +655,34 @@
646655
"type": "ITEM",
647656
"subtypes": [ "ARMOR" ],
648657
"name": { "str_sp": "Itzcuāuhtli Corps combat uniform pants" },
649-
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. These are pants, with several pockets."
658+
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. These are pants, with several pockets.",
659+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
650660
},
651661
{
652662
"id": "itzcuauhtli_combat_shirt",
653663
"copy-from": "combat_shirt",
654664
"type": "ITEM",
655665
"subtypes": [ "ARMOR" ],
656666
"name": { "str_sp": "Itzcuāuhtli Corps combat uniform shirt" },
657-
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. This is a shirt."
667+
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. This is a shirt.",
668+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
658669
},
659670
{
660671
"id": "itzcuauhtli_jacket_army_modern",
661672
"copy-from": "jacket_army_modern",
662673
"type": "ITEM",
663674
"subtypes": [ "ARMOR" ],
664675
"name": { "str_sp": "Itzcuāuhtli Corps combat uniform jacket" },
665-
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. This is a jacket. It has the eagle over a field of stars symbol of the Itzcuāuhtli Corps on both shoulders."
676+
"description": "The standard combat uniform of the Itzcuāuhtli Corps, in shades of dark green and grey. This is a jacket. It has the eagle over a field of stars symbol of the Itzcuāuhtli Corps on both shoulders.",
677+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
666678
},
667679
{
668680
"id": "holy_symbol_fifth_sun",
669681
"copy-from": "holy_symbol",
670682
"type": "ITEM",
671683
"subtypes": [ "ARMOR" ],
672684
"name": { "str": "Imperial Church holy symbol" },
673-
"description": "A necklace made of fine gold chain, bearing an image of Jesucristo as the Ultimate Sacrifice as a pendant, his heart clearly visible through his chest. Under his left hand is a raindrop, representing the Aeon Tláloc, and under his right hand is a sun disc, representing the Aeon Huītzilōpōchtli."
685+
"description": "A necklace made of fine gold chain, bearing an image of Jesucristo as the Ultimate Sacrifice as a pendant, his heart clearly visible through his chest. Under his left hand is a raindrop, representing the Aeon Tláloc, and under his right hand is a sun disc, representing the Aeon Huītzilōpōchtli.",
686+
"extend": { "flags": [ "FIFTH_SUN_TECHNOLOGY" ] }
674687
}
675688
]

data/mods/MindOverMatter/json_flags.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,9 @@
112112
"id": "PHOTOKIN_IRRADIATION_READY",
113113
"type": "json_flag",
114114
"//": "Used to tag foods to be radiation sterilized"
115+
},
116+
{
117+
"id": "FIFTH_SUN_TECHNOLOGY",
118+
"type": "json_flag"
115119
}
116120
]

data/mods/MindOverMatter/powers/clairsentience.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,26 @@
338338
]
339339
}
340340
},
341+
{
342+
"id": "clair_examine_item",
343+
"type": "SPELL",
344+
"name": "[Ψ]Psychometry",
345+
"description": "You can examine an item and use your enhanced senses to determine its properties that may not be obvious to the eye.",
346+
"message": "",
347+
"teachable": false,
348+
"valid_targets": [ "self" ],
349+
"spell_class": "CLAIRSENTIENT",
350+
"magic_type": "mom_psionics",
351+
"skill": "metaphysics",
352+
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
353+
"difficulty": 4,
354+
"max_level": { "math": [ "int_to_level(1)" ] },
355+
"effect": "effect_on_condition",
356+
"effect_str": "EOC_CLAIR_EXAMINE_ITEM_INITIATE",
357+
"shape": "blast",
358+
"base_energy_cost": 5000,
359+
"base_casting_time": 30000
360+
},
341361
{
342362
"id": "clair_sense_hostile_creatures",
343363
"type": "SPELL",

data/mods/MindOverMatter/powers/clairsentience_eoc.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,42 @@
139139
]
140140
}
141141
},
142+
{
143+
"type": "effect_on_condition",
144+
"id": "EOC_CLAIR_EXAMINE_ITEM_INITIATE",
145+
"effect": [
146+
{
147+
"u_run_inv_eocs": "manual",
148+
"true_eocs": [
149+
{
150+
"id": "EOC_CLAIR_EXAMINE_ITEM_DETECTION",
151+
"effect": [
152+
{ "math": [ "_artifact_resonance = n_artifact_resonance()" ] },
153+
{
154+
"math": [ "_resonance_modifier = min( (u_spell_level('clair_examine_item') + u_spell_level('clair_examine_item_knack')),10)" ]
155+
},
156+
{ "math": [ "_resonance_modifier = (10 - _resonance_modifier) / 50" ] },
157+
{
158+
"math": [ "_artifact_resonance = _artifact_resonance * rng( ( 1 - _resonance_modifier), (1 + _resonance_modifier) )" ]
159+
},
160+
{
161+
"if": { "math": [ "_artifact_resonance > 0" ] },
162+
"then": {
163+
"u_message": "The strange object has an otherworldly resonance about it (about <color_light_cyan><context_val:artifact_resonance></color> resonance )."
164+
}
165+
},
166+
{
167+
"if": { "npc_has_flag": "FIFTH_SUN_TECHNOLOGY" },
168+
"then": {
169+
"u_message": "You have a sense of vast distances from this object, as though it came from a place you would never find on any map. For a moment, you see an eagle stooping over a snake, wings flashing in the sun, and a vast shape moving through the void between the stars."
170+
}
171+
}
172+
]
173+
}
174+
]
175+
}
176+
]
177+
},
142178
{
143179
"type": "effect_on_condition",
144180
"id": "EOC_CLAIR_CRAFTING_ADD_BLINDNESS_WHEN_CRAFTING",

data/mods/MindOverMatter/powers/learning_eocs/clairsentience.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,44 @@
171171
}
172172
]
173173
},
174+
{
175+
"type": "effect_on_condition",
176+
"id": "EOC_CLAIR_LEARNING_EXAMINE_ITEM",
177+
"recurrence": [
178+
{ "math": [ "jmath_clairsentience_learning_eocs_modifiers(global_tier_two_power_learning_time_low)" ] },
179+
{ "math": [ "jmath_clairsentience_learning_eocs_modifiers(global_tier_two_power_learning_time_high)" ] }
180+
],
181+
"condition": {
182+
"and": [
183+
{ "u_has_trait": "CLAIRSENTIENT" },
184+
{ "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
185+
{
186+
"or": [
187+
{ "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_TWO_POWER_INSIGHT" },
188+
{ "math": [ "u_spell_level('clair_see_auras') >= 6" ] },
189+
{
190+
"or": [
191+
{ "math": [ "u_spell_level('clair_speed_reading') >= 8" ] },
192+
{ "math": [ "u_spell_level('clair_danger_sense') >= 8" ] }
193+
]
194+
}
195+
]
196+
},
197+
{ "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
198+
{ "math": [ "u_spell_level('clair_examine_item') <= 0" ] },
199+
{ "not": { "u_know_recipe": "practice_clair_examine_item" } }
200+
]
201+
},
202+
"deactivate_condition": { "or": [ { "not": { "u_has_trait": "CLAIRSENTIENT" } }, { "math": [ "u_spell_level('clair_examine_item') >= 1" ] } ] },
203+
"effect": [
204+
{ "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
205+
{ "u_learn_recipe": "practice_clair_examine_item" },
206+
{
207+
"u_message": "Use of your powers has led to an insight. You could examine an item with preternatural senses, discovering information that would be impossible to figure out with any normal investigation, if you can figure out the technique.",
208+
"popup": true
209+
}
210+
]
211+
},
174212
{
175213
"type": "effect_on_condition",
176214
"id": "EOC_CLAIR_LEARNING_SENSE_HOSTILE_CREATURES",

data/mods/MindOverMatter/powers/psychic_knacks.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
"spell_class": "PSYCHIC_KNACK",
2828
"difficulty": { "math": [ "ceil(max( (u_spell_difficulty('clair_danger_sense') / 2), 1) )" ] }
2929
},
30+
{
31+
"id": "clair_examine_item_knack",
32+
"copy-from": "clair_examine_item",
33+
"type": "SPELL",
34+
"spell_class": "PSYCHIC_KNACK",
35+
"difficulty": { "math": [ "ceil(max( (u_spell_difficulty('clair_examine_item') / 2), 1) )" ] }
36+
},
3037
{
3138
"id": "clair_astral_projection_knack",
3239
"copy-from": "clair_astral_projection",

0 commit comments

Comments
 (0)