[SEMI-MODULAR] slimes can now properly switch between digitigrade and normal legs (#5413)

* SLIIIIIME

* woops forgot to delete that
This commit is contained in:
Seris02
2021-05-02 23:08:34 +01:00
committed by GitHub
parent dcb517079e
commit 4d30961900
2 changed files with 12 additions and 0 deletions
@@ -251,5 +251,7 @@
else
U.adjusted = DIGITIGRADE_STYLE
H.update_inv_w_uniform()
/* SKYRAT EDIT REMOVAL
if(H.shoes && !swap_back)
H.dropItemToGround(H.shoes)
*/
@@ -146,6 +146,16 @@
new_acc_list[MUTANT_INDEX_COLOR_LIST] = SA.get_default_color(DNA.features, DNA.species)
DNA.species.mutant_bodyparts[chosen_key] = new_acc_list
DNA.mutant_bodyparts[chosen_key] = new_acc_list.Copy()
if (chosen_key == "legs" && chosen_name_key != "Cancel")
if (chosen_name_key == "Digitigrade Legs" && !(DIGITIGRADE in DNA.species.species_traits))
DNA.species.species_traits += DIGITIGRADE
if (chosen_name_key == "Normal Legs" && (DIGITIGRADE in DNA.species.species_traits))
DNA.species.species_traits -= DIGITIGRADE
H.Digitigrade_Leg_Swap(chosen_name_key == "Normal Legs")
H.update_body()
H.update_inv_w_uniform()
H.update_inv_wear_suit()
H.update_inv_shoes()
H.update_mutant_bodyparts()
if("Markings")
var/list/candidates = GLOB.body_marking_sets