Skip to content

Commit 7b8566b

Browse files
[Mods] If you have a broken limb and are in a shapeshifted form, you can't fly (#82238)
* Initial commit * Kick tests * Kick tests * Bile test failed AGAIN
1 parent f3ba4d6 commit 7b8566b

File tree

3 files changed

+36
-4
lines changed

3 files changed

+36
-4
lines changed

data/mods/Magiclysm/mutations/shapeshifter_mutations.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,18 @@
286286
{ "value": "NIGHT_VIS", "add": 4 },
287287
{ "value": "CRAFTING_SPEED_MULTIPLIER", "multiply": -1000 }
288288
],
289-
"ench_effects": [ { "effect": "effect_druid_shifter_raven_form_levitation", "intensity": 1 } ],
290289
"skills": [ { "value": "dodge", "add": 6 } ],
291290
"mutations": [ "BIRD_EYE", "DOWN", "EAGLEEYED", "LIGHTEATER" ]
292291
},
292+
{
293+
"condition": {
294+
"and": [
295+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_l" } },
296+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_r" } }
297+
]
298+
},
299+
"ench_effects": [ { "effect": "effect_druid_shifter_raven_form_levitation", "intensity": 1 } ]
300+
},
293301
{
294302
"condition": "u_has_weapon",
295303
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]

data/mods/Xedra_Evolved/mutations/mutations.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,9 +1314,17 @@
13141314
{ "value": "CRAFTING_SPEED_MULTIPLIER", "multiply": -1000 }
13151315
],
13161316
"mutations": [ "ECHOLOCATION" ],
1317-
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ],
13181317
"skills": [ { "value": "dodge", "add": 8 } ]
13191318
},
1319+
{
1320+
"condition": {
1321+
"and": [
1322+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_l" } },
1323+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_r" } }
1324+
]
1325+
},
1326+
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ]
1327+
},
13201328
{
13211329
"condition": "u_has_weapon",
13221330
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]

data/mods/Xedra_Evolved/mutations/temporary.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,18 @@
313313
{ "value": "NIGHT_VIS", "add": 8 },
314314
{ "value": "CRAFTING_SPEED_MULTIPLIER", "multiply": -1000 }
315315
],
316-
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ],
317316
"skills": [ { "value": "dodge", "add": 4 } ],
318317
"mutations": [ "BIRD_EYE", "DOWN", "EAGLEEYED", "LIGHTEATER" ]
319318
},
319+
{
320+
"condition": {
321+
"and": [
322+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_l" } },
323+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_r" } }
324+
]
325+
},
326+
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ]
327+
},
320328
{
321329
"condition": "u_has_weapon",
322330
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]
@@ -397,10 +405,18 @@
397405
{ "value": "NIGHT_VIS", "add": 4 },
398406
{ "value": "CRAFTING_SPEED_MULTIPLIER", "multiply": -1000 }
399407
],
400-
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ],
401408
"skills": [ { "value": "dodge", "add": 6 } ],
402409
"mutations": [ "BIRD_EYE", "DOWN", "EAGLEEYED", "LIGHTEATER" ]
403410
},
411+
{
412+
"condition": {
413+
"and": [
414+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_l" } },
415+
{ "not": { "u_has_effect": "disabled", "bodypart": "arm_r" } }
416+
]
417+
},
418+
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ]
419+
},
404420
{
405421
"condition": "u_has_weapon",
406422
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]

0 commit comments

Comments
 (0)