Skip to content

Commit

Permalink
Isolation Protocol Player Buffs (CleverRaven#75860)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Candlebury authored and Knut-Aage-Hofseth committed Aug 29, 2024
1 parent 098a774 commit 587ae3a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
26 changes: 26 additions & 0 deletions data/mods/Isolation-Protocol/EOC/balance_eoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"type": "effect_on_condition",
"id": "ISO_REGEN_CLOCK",
"recurrence": "15 seconds",
"global": true,
"condition": { "math": [ "u_monsters_nearby('radius': 10, 'attitude': 'hostile')", "==", "0" ] },
"effect": [
{ "math": [ "u_hp('torso')", "+=", "2" ] },
{ "math": [ "u_hp('head')", "+=", "2" ] },
{ "math": [ "u_hp('arm_l')", "+=", "2" ] },
{ "math": [ "u_hp('arm_r')", "+=", "2" ] },
{ "math": [ "u_hp('leg_l')", "+=", "2" ] },
{ "math": [ "u_hp('leg_r')", "+=", "2" ] },
{ "math": [ "u_pain()", "-=", "4" ] }
]
},
{
"type": "effect_on_condition",
"id": "ISO_PAIN_CEILING",
"eoc_type": "EVENT",
"required_event": "character_takes_damage",
"condition": { "math": [ "u_pain()", ">", "40" ] },
"effect": [ { "math": [ "u_pain()", "=", "40" ] } ]
}
]
6 changes: 6 additions & 0 deletions data/mods/Isolation-Protocol/Player/Perks/enchantments.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"condition": "ALWAYS",
"values": [ { "value": "RANGED_DAMAGE", "multiply": -0.25 } ]
},
{
"type": "enchantment",
"id": "iso_pain_adjust",
"condition": "ALWAYS",
"values": [ { "value": "PAIN", "multiply": { "math": [ "u_pain() > 40 ? -1 : -0.4" ] } } ]
},
{
"type": "enchantment",
"id": "iso_ench_deliverator",
Expand Down
2 changes: 1 addition & 1 deletion data/mods/Isolation-Protocol/Player/traits.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Lab Diver",
"points": 0,
"description": "Secret anchor point trait for gameplay enchantments. Mod will break if you purify this trait.",
"enchantments": [ "iso_ranged_adjust" ],
"enchantments": [ "iso_ranged_adjust", "iso_pain_adjust" ],
"starting_trait": false,
"player_display": false,
"purifiable": false,
Expand Down
6 changes: 3 additions & 3 deletions data/mods/Isolation-Protocol/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{
"id": "iso_danger",
"type": "widget",
"label": "Ambient normality:",
"label": "Ambient normality",
"style": "text",
"clauses": [
{
Expand Down Expand Up @@ -65,15 +65,15 @@
"text": "Distorted",
"color": "dark_gray",
"condition": {
"and": [ { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", ">=", "15" ] }, { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", "<", "15" ] } ]
"and": [ { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", ">=", "15" ] }, { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", "<", "20" ] } ]
}
},
{
"id": "bad",
"text": "Unstable",
"color": "magenta",
"condition": {
"and": [ { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", ">=", "20" ] }, { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", "<", "20" ] } ]
"and": [ { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", ">=", "20" ] }, { "math": [ "u_ISO_CURRENT_LEVEL_DANGER", "<", "25" ] } ]
}
},
{
Expand Down

0 comments on commit 587ae3a

Please sign in to comment.