Skip to content

Commit

Permalink
Unhardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Venera3 committed May 1, 2024
1 parent 72ca385 commit 153bf5f
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 58 deletions.
30 changes: 30 additions & 0 deletions data/mods/MMA/enchantments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"type": "enchantment",
"id": "DRUNKEN_UNARMED",
"condition": { "not": "u_has_weapon" },
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.8, u_effect_intensity('drunk') * 4 )" ] }
}
]
},
{
"type": "enchantment",
"id": "DRUNKEN_ARMED",
"condition": "u_has_weapon",
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.2, u_effect_intensity('drunk') * 2.6 )" ] }
}
]
},
{
"type": "enchantment",
"id": "KI_STRIKE",
"condition": { "not": "u_has_weapon" },
"values": [ { "value": "ITEM_DAMAGE_BASH", "add": { "math": [ "u_skill('unarmed') * 2" ] } } ]
}
]
28 changes: 2 additions & 26 deletions data/mods/MMA/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,7 @@
"starting_trait": true,
"valid": false,
"cancels": [ "LIGHTWEIGHT" ],
"enchantments": [
{
"condition": { "not": "u_has_weapon" },
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.8, u_effect_intensity('drunk') * 4 )" ] }
}
]
},
{
"condition": "u_has_weapon",
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.2, u_effect_intensity('drunk') * 2.6 )" ] }
}
]
}
]
"enchantments": [ "DRUNKEN_ARMED", "DRUNKEN_UNARMED" ]
},
{
"type": "mutation",
Expand All @@ -67,12 +48,7 @@
"description": "Who needs weapons? You deal more melee damage while your hands are empty. This damage improves as your unarmed skill increases.",
"starting_trait": true,
"valid": false,
"enchantments": [
{
"condition": { "not": "u_has_weapon" },
"values": [ { "value": "ITEM_DAMAGE_BASH", "add": { "math": [ "u_skill('unarmed') * 2" ] } } ]
}
]
"enchantments": [ "KI_STRIKE" ]
},
{
"type": "mutation",
Expand Down
7 changes: 1 addition & 6 deletions data/mods/MindOverMatter/mutations/traits.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@
"description": "Who needs weapons? Thanks to your biokinesis, you deal more melee damage while fighting with your bare hands. This damage improves as your unarmed skill increases.",
"starting_trait": false,
"valid": false,
"enchantments": [
{
"condition": { "not": "u_has_weapon" },
"values": [ { "value": "ITEM_DAMAGE_BASH", "add": { "math": [ "u_skill('unarmed') * 2" ] } } ]
}
]
"enchantments": [ "KI_STRIKE" ]
},
{
"type": "mutation",
Expand Down
28 changes: 28 additions & 0 deletions data/mods/Xedra_Evolved/enchantments/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,33 @@
"id": "EATER_SIXTH_SENSE",
"condition": "ALWAYS",
"values": [ { "value": "MAX_MANA", "add": { "math": [ "u_skill('deduction')*50" ] } } ]
},
{
"type": "enchantment",
"id": "DRUNKEN_UNARMED",
"condition": { "not": "u_has_weapon" },
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.8, u_effect_intensity('drunk') * 4 )" ] }
}
]
},
{
"type": "enchantment",
"id": "DRUNKEN_ARMED",
"condition": "u_has_weapon",
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.2, u_effect_intensity('drunk') * 2.6 )" ] }
}
]
},
{
"type": "enchantment",
"id": "KI_STRIKE",
"condition": { "not": "u_has_weapon" },
"values": [ { "value": "ITEM_DAMAGE_BASH", "add": { "math": [ "u_skill('unarmed') * 2" ] } } ]
}
]
28 changes: 2 additions & 26 deletions data/mods/Xedra_Evolved/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,7 @@
"starting_trait": true,
"valid": false,
"cancels": [ "LIGHTWEIGHT" ],
"enchantments": [
{
"condition": { "not": "u_has_weapon" },
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.8, u_effect_intensity('drunk') * 4 )" ] }
}
]
},
{
"condition": "u_has_weapon",
"values": [
{
"value": "ITEM_DAMAGE_BASH",
"add": { "math": [ "rng(u_effect_intensity('drunk') * 1.2, u_effect_intensity('drunk') * 2.6 )" ] }
}
]
}
]
"enchantments": [ "DRUNKEN_ARMED", "DRUNKEN_UNARMED" ]
},
{
"type": "mutation",
Expand All @@ -109,12 +90,7 @@
"description": "Who needs weapons? You deal more melee damage while fighting barehanded and without gloves. This damage improves as your unarmed skill increases.",
"starting_trait": true,
"valid": false,
"enchantments": [
{
"condition": { "not": "u_has_weapon" },
"values": [ { "value": "ITEM_DAMAGE_BASH", "add": { "math": [ "u_skill('unarmed') * 2" ] } } ]
}
]
"enchantments": [ "KI_STRIKE" ]
},
{
"type": "mutation",
Expand Down

0 comments on commit 153bf5f

Please sign in to comment.