Merge pull request #14379 from necromanceranne/too_many_limbs
Fixes being able to go over the defined limit of roundstart prosthetics
This commit is contained in:
@@ -1626,7 +1626,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
|||||||
for(var/modified_limb in modified_limbs)
|
for(var/modified_limb in modified_limbs)
|
||||||
if(modified_limbs[modified_limb][1] == LOADOUT_LIMB_PROSTHETIC && modified_limb != limb_type)
|
if(modified_limbs[modified_limb][1] == LOADOUT_LIMB_PROSTHETIC && modified_limb != limb_type)
|
||||||
number_of_prosthetics += 1
|
number_of_prosthetics += 1
|
||||||
if(number_of_prosthetics > MAXIMUM_LOADOUT_PROSTHETICS)
|
if(number_of_prosthetics == MAXIMUM_LOADOUT_PROSTHETICS)
|
||||||
to_chat(user, "<span class='danger'>You can only have up to two prosthetic limbs!</span>")
|
to_chat(user, "<span class='danger'>You can only have up to two prosthetic limbs!</span>")
|
||||||
else
|
else
|
||||||
//save the actual prosthetic data
|
//save the actual prosthetic data
|
||||||
|
|||||||
Reference in New Issue
Block a user