Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Standing-Storm committed Nov 18, 2024
1 parent e7d56df commit 89446cc
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/mods/MindOverMatter/activity_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
"rooted": true,
"based_on": "time"
},
{
"id": "ACT_PSI_PHOTOKIN_RADIATION_STERILIZATION",
"type": "activity_type",
"activity_level": "LIGHT_EXERCISE",
"verb": "sterilizing",
"based_on": "time",
"completion_eoc": "EOC_PHOTOKIN_RADIATION_STERILIZATION_FINALIZE"
},
{
"id": "ACT_PSI_STUDYING_POWER",
"type": "activity_type",
Expand Down
7 changes: 7 additions & 0 deletions data/mods/MindOverMatter/effects/effects_psionic.json
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,13 @@
"rating": "good",
"max_duration": "7 days"
},
{
"type": "effect_type",
"id": "effect_photokin_sterilization",
"//": "Hidden effect, used as a tracker",
"name": [ "" ],
"desc": [ "" ]
},
{
"type": "effect_type",
"id": "effect_photokin_invisibility",
Expand Down
5 changes: 5 additions & 0 deletions data/mods/MindOverMatter/json_flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,10 @@
"id": "TELEPORT_IMMUNE",
"type": "monster_flag",
"//": "Immune to forcible teleportation"
},
{
"id": "PHOTOKIN_IRRADIATION_READY",
"type": "json_flag",
"//": "Used to tag foods to be radiation sterilized"
}
]
22 changes: 22 additions & 0 deletions data/mods/MindOverMatter/powers/photokinesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,28 @@
]
}
},
{
"id": "photokinetic_sterilize_food",
"type": "SPELL",
"name": "[Ψ]Gamma Sterilization",
"description": "Use a focused emission of high-power radiation to eliminating microorganisms in food and allowing it to last much longer before rotting. This power is <color_red>extremely taxing</color>.",
"message": "",
"teachable": false,
"valid_targets": [ "self" ],
"spell_class": "PHOTOKINETIC",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "NO_HANDS", "NO_LEGS", "SILENT", "RANDOM_DAMAGE" ],
"difficulty": 5,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "effect_on_condition",
"effect_str": "EOC_PHOTOKINETIC_STERILIZE_FOODS",
"shape": "blast",
"energy_source": "STAMINA",
"base_energy_cost": 7500,
"final_energy_cost": 4000,
"energy_increment": -150,
"base_casting_time": 1500
},
{
"id": "photokinetic_stun_robots",
"type": "SPELL",
Expand Down
69 changes: 69 additions & 0 deletions data/mods/MindOverMatter/powers/photokinesis_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,75 @@
]
}
},
{
"type": "effect_on_condition",
"id": "EOC_PHOTOKINETIC_STERILIZE_FOODS",
"effect": [
{ "math": [ "u_photokinetic_sterilize_item_count", "=", "0" ] },
{
"u_run_inv_eocs": "manual_mult",
"title": "What food or drink do you want to sterilize?",
"search_data": [
{ "category": "food", "excluded_flags": [ "IRRADIATED" ] },
{ "category": "drink", "excluded_flags": [ "IRRADIATED" ] }
],
"true_eocs": [
{
"id": "EOC_PHOTOKINETIC_STERILIZE_FOODS_PREP",
"effect": [ { "math": [ "u_photokinetic_sterilize_item_count", "++" ] }, { "npc_set_flag": "PHOTOKIN_IRRADIATION_READY" } ]
}
]
},
{
"u_add_effect": "effect_photokin_sterilization",
"duration": { "math": [ "(u_photokinetic_sterilize_item_count * 10) + 1" ] }
},
{
"u_assign_activity": "ACT_PSI_PHOTOKIN_RADIATION_STERILIZATION",
"duration": { "math": [ "u_photokinetic_sterilize_item_count * 10" ] }
},
{ "run_eocs": "EOC_PHOTOKIN_RADIATION_STERILIZATION_COST", "time_in_future": [ 7, 9 ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PHOTOKIN_RADIATION_STERILIZATION_CANCELS_STERILIZING",
"eoc_type": "EVENT",
"required_event": "character_finished_activity",
"condition": {
"and": [
{ "compare_string": [ "ACT_PSI_PHOTOKIN_RADIATION_STERILIZATION", { "context_val": "activity" } ] },
{ "u_has_effect": "effect_photokin_sterilization" }
]
},
"effect": [ { "u_lose_effect": "effect_photokin_sterilization" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_PHOTOKIN_RADIATION_STERILIZATION_COST",
"condition": { "u_has_effect": "effect_photokin_sterilization" },
"effect": [
{ "math": [ "u_calories()", "-=", "rand(2) + 1" ] },
{ "run_eocs": "EOC_PHOTOKIN_RADIATION_STERILIZATION_COST", "time_in_future": [ 7, 9 ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PHOTOKIN_RADIATION_STERILIZATION_FINALIZE",
"condition": { "u_has_effect": "effect_photokin_sterilization" },
"effect": [
{
"u_run_inv_eocs": "all",
"search_data": [ { "flags": [ "PHOTOKIN_IRRADIATION_READY" ] } ],
"true_eocs": [
{
"id": "EOC_PHOTOKIN_RADIATION_STERILIZATION_FINALIZE_END",
"effect": [ { "npc_unset_flag": "PHOTOKIN_IRRADIATION_READY" }, { "npc_set_flag": "IRRADIATED" } ]
}
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_PHOTOKIN_REMOVE_INVISIBILITY_MELEE_CHARACTER",
Expand Down

0 comments on commit 89446cc

Please sign in to comment.