[MoM] Staunch Wound and Immunostimulus interact with wounds (#89370)
* Initial commit * Updates
This commit is contained in:
@@ -236,6 +236,20 @@
|
||||
{
|
||||
"if": { "u_has_body_part": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "scratch_small" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "scratch_small" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "clean_scratch_small" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "scratch_medium" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "scratch_medium" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "clean_scratch_medium" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "scratch_bad" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
|
||||
@@ -1666,8 +1666,8 @@ Powers causing telepathic damage have a 5% chance to down the target, a 33% chan
|
||||
*Target*: Self<br />
|
||||
*Duration*: Instant<br />
|
||||
*Stamina Cost*: 3000, minus 125 per level to a minimum of 750<br />
|
||||
*Channeling Time*: 50 moves, minus 3 moves per level to a minimum of 20<br />
|
||||
*Effects*: With an act of will, the psion closes their wounds. From level 1 to 5, the power has "bandages_power": 1 and "bleed": 7. From level 6 to 11, the power has "bandages_power": 2 and "bleed": 14. At level 12 or above, the power has "bandages_power": 3 and "bleed": 20.<br />
|
||||
*Channeling Time*: 3000 moves, minus 50 moves per level to a minimum of 500<br />
|
||||
*Effects*: With an act of will, the psion closes their wounds. From level 1 to 6, the power closes medium bleeding wounds, from 8 to 15, the power also closes bad bleeding wounds, and level 16 or above, the power closes terrible bleeding wounds. Power level is modified by Nether Attunement and intelligence for these calculations<br />
|
||||
*Prerequisites*: Coagulation 5<br />
|
||||
</details>
|
||||
<details>
|
||||
@@ -1711,7 +1711,7 @@ Powers causing telepathic damage have a 5% chance to down the target, a 33% chan
|
||||
*Duration*: 19 minutes and 8 seconds to 47 minutes and 14 seconds, plus 48 seconds to 5 minutes and 11 seconds per power level<br />
|
||||
*Stamina Cost*: 5500, minus 125 per level to a minimum of 2500<br />
|
||||
*Channeling Time*: 500 moves, minus 18 moves per level to a minimum of 50<br />
|
||||
*Effects*: Kick the psion's immune system into overdrive, helping overcome any diseases they are suffering from. Every 10 minutes (minus 5 seconds per power level) to 60 minutes (minus 30 seconds per power level) while the power is active, the psion has a chance equal to 10% plus the power level to cure one disease they're suffering from. It may take some time before the psion's immune system manages to overcome the disease. In addition, if the psion is suffering from hay fever, the power will make it much worse.<br />
|
||||
*Effects*: Kick the psion's immune system into overdrive, helping overcome any diseases they are suffering from. Every 10 minutes (minus 5 seconds per power level) to 60 minutes (minus 30 seconds per power level) while the power is active, the psion has a chance equal to 10% plus the power level to cure one disease they're suffering from. It may take some time before the psion's immune system manages to overcome the disease. In addition, if the psion is suffering from hay fever, the power will make it much worse. Finally, if they have any wounds that haven't been cleaned, there's a chance their wounds will clean themselves (or rather, that the infectious potential of contaminents is neutralized).<br />
|
||||
*Prerequisites*: Detoxification 5<br />
|
||||
</details>
|
||||
<details>
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
[
|
||||
{
|
||||
"id": "vita_stop_bleeding_01",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #1", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a low-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandage_01",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
},
|
||||
{
|
||||
"id": "vita_stop_bleeding_02",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #2", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a medium-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandages_02",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
},
|
||||
{
|
||||
"id": "vita_stop_bleeding_03",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #3", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a high-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandages_03",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
}
|
||||
]
|
||||
@@ -72,7 +72,7 @@
|
||||
"type": "SPELL",
|
||||
"name": "[Ψ]Staunch Wound",
|
||||
"description": "You concentrate on your injuries, and they close and the blood flow stops.",
|
||||
"message": "You summon up the energy to close your wounds!",
|
||||
"message": "",
|
||||
"teachable": false,
|
||||
"valid_targets": [ "self" ],
|
||||
"spell_class": "VITAKINETIC",
|
||||
@@ -91,69 +91,9 @@
|
||||
"base_energy_cost": 3000,
|
||||
"final_energy_cost": 750,
|
||||
"energy_increment": -125,
|
||||
"base_casting_time": 50,
|
||||
"final_casting_time": 20,
|
||||
"casting_time_increment": -3
|
||||
},
|
||||
{
|
||||
"id": "vita_stop_bleeding_01",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #1", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a low-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandage_01",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
},
|
||||
{
|
||||
"id": "vita_stop_bleeding_02",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #2", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a medium-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandages_02",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
},
|
||||
{
|
||||
"id": "vita_stop_bleeding_03",
|
||||
"type": "SPELL",
|
||||
"name": { "str": "[Ψ]Staunch Wound #3", "//~": "NO_I18N" },
|
||||
"description": {
|
||||
"str": "The first of the Staunch Wound spells. This summons a high-power bandage--it's a bug if you have it.",
|
||||
"//~": "NO_I18N"
|
||||
},
|
||||
"valid_targets": [ "self" ],
|
||||
"skill": "metaphysics",
|
||||
"teachable": false,
|
||||
"flags": [ "PSIONIC", "SILENT", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
|
||||
"effect": "spawn_item",
|
||||
"effect_str": "vita_bandages_03",
|
||||
"shape": "blast",
|
||||
"min_damage": 1,
|
||||
"max_damage": 1,
|
||||
"min_duration": 200,
|
||||
"max_duration": 200
|
||||
"base_casting_time": 3000,
|
||||
"final_casting_time": 500,
|
||||
"casting_time_increment": -50
|
||||
},
|
||||
{
|
||||
"id": "vita_concentrated_healing",
|
||||
@@ -310,7 +250,7 @@
|
||||
"id": "vita_cure_disease",
|
||||
"type": "SPELL",
|
||||
"name": "[Ψ]Immunostimulus (C)",
|
||||
"description": "Kick your immune system into overdrive in order to overcome any illnesses you may be suffering from.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.",
|
||||
"description": "Kick your immune system into overdrive in order to overcome any illnesses you may be suffering from. It can also clean your wounds.\n\nThis power <color_yellow>is maintained by concentration</color> and <color_red>may fail</color> if <color_yellow>concentration is interrupted</color>.",
|
||||
"message": "",
|
||||
"teachable": false,
|
||||
"valid_targets": [ "self" ],
|
||||
|
||||
@@ -154,23 +154,72 @@
|
||||
{
|
||||
"type": "effect_on_condition",
|
||||
"id": "EOC_VITAKIN_STOP_BLEEDING_EOC",
|
||||
"effect": {
|
||||
"switch": { "math": [ "u_spell_level('vita_stop_bleeding')" ] },
|
||||
"cases": [
|
||||
{
|
||||
"case": 0,
|
||||
"effect": [ { "u_cast_spell": { "id": "vita_stop_bleeding_01" } }, { "run_eocs": "EOC_VITAKIN_STOP_BLEEDING_ITEM_01" } ]
|
||||
},
|
||||
{
|
||||
"case": 6,
|
||||
"effect": [ { "u_cast_spell": { "id": "vita_stop_bleeding_02" } }, { "run_eocs": "EOC_VITAKIN_STOP_BLEEDING_ITEM_02" } ]
|
||||
},
|
||||
{
|
||||
"case": 12,
|
||||
"effect": [ { "u_cast_spell": { "id": "vita_stop_bleeding_03" } }, { "run_eocs": "EOC_VITAKIN_STOP_BLEEDING_ITEM_03" } ]
|
||||
}
|
||||
]
|
||||
}
|
||||
"effect": [
|
||||
{ "u_pick_bodypart": { "context_val": "bodypart" }, "wounded": true },
|
||||
{
|
||||
"if": { "math": [ "(u_spell_level('vita_stop_bleeding') * psionic_power_modifiers() >= 1)" ] },
|
||||
"then": [
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_laceration_medium" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bp" }, "wound_id": [ "bleeding_laceration_medium" ] },
|
||||
{ "u_add_wound": { "context_val": "bp" }, "wound_id": "laceration_medium" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_cut_medium" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "bleeding_cut_medium" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "cut_medium" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "math": [ "(u_spell_level('vita_stop_bleeding') * psionic_power_modifiers() >= 8)" ] },
|
||||
"then": [
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_scratch_bad" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "bleeding_scratch_bad" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "scratch_bad" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_cut_bad" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "bleeding_cut_bad" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "cut_bad" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_laceration_bad" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "bleeding_laceration_bad" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "laceration_bad" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"if": { "math": [ "(u_spell_level('vita_stop_bleeding') * psionic_power_modifiers() >= 16)" ] },
|
||||
"then": [
|
||||
{
|
||||
"if": { "u_has_any_wound": [ "bleeding_cut_terrible" ], "bodypart": { "context_val": "bodypart" } },
|
||||
"then": [
|
||||
{ "u_remove_wound": { "context_val": "bodypart" }, "wound_id": [ "bleeding_cut_terrible" ] },
|
||||
{ "u_add_wound": { "context_val": "bodypart" }, "wound_id": "cut_terrible" },
|
||||
{ "u_message": "The bleeding slows to a stop.", "type": "good" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "effect_on_condition",
|
||||
@@ -397,7 +446,8 @@
|
||||
"run_eocs": [
|
||||
"EOC_VITAKIN_CURE_DISEASE_VS_COMMON_COLD",
|
||||
"EOC_VITAKIN_CURE_DISEASE_VS_FLU",
|
||||
"EOC_VITAKIN_CURE_DISEASE_VS_HAY_FEVER"
|
||||
"EOC_VITAKIN_CURE_DISEASE_VS_HAY_FEVER",
|
||||
"EOC_VITAKIN_CURE_DISEASE_VS_UNCLEAN_WOUNDS"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -455,6 +505,29 @@
|
||||
{ "u_add_effect": "severe_hay_fever", "duration": { "math": [ "rand(28800) + 600" ] } }
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "effect_on_condition",
|
||||
"id": "EOC_VITAKIN_CURE_DISEASE_VS_UNCLEAN_WOUNDS",
|
||||
"condition": {
|
||||
"x_in_y_chance": {
|
||||
"x": { "math": [ "15 + (u_spell_level('vita_cure_disease') + u_spell_level('vita_cure_disease_knack') )" ] },
|
||||
"y": 100
|
||||
}
|
||||
},
|
||||
"effect": [
|
||||
{
|
||||
"foreach": "ids",
|
||||
"target": "bodypart",
|
||||
"var": { "context_val": "bodypart" },
|
||||
"effect": [
|
||||
{
|
||||
"run_eocs": "EOC_REGEN_MUTATIONS_CLEANING_WOUNDS_EFFECTS",
|
||||
"variables": { "bodypart": { "context_val": "bodypart" } }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "effect_on_condition",
|
||||
"id": "EOC_VITAKIN_STOP_INFECTION_SWITCH",
|
||||
|
||||
Reference in New Issue
Block a user