mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes robot limbs not spawning subparts.
This commit is contained in:
@@ -37,11 +37,11 @@
|
|||||||
user.visible_message("\blue [user] has attached \the [tool] to [target].", \
|
user.visible_message("\blue [user] has attached \the [tool] to [target].", \
|
||||||
"\blue You have attached \the [tool] to [target].")
|
"\blue You have attached \the [tool] to [target].")
|
||||||
|
|
||||||
if(L.part)
|
if(L.part)http://i.imgur.com/g19Dq0G.png
|
||||||
for(var/part_name in L.part)
|
for(var/part_name in L.part)
|
||||||
if(!isnull(target.get_organ(part_name)))
|
if(!isnull(target.get_organ(part_name)))
|
||||||
continue
|
continue
|
||||||
var/list/organ_data = target.species.has_limbs["[target_zone]"]
|
var/list/organ_data = target.species.has_limbs["[part_name]"]
|
||||||
if(!organ_data)
|
if(!organ_data)
|
||||||
continue
|
continue
|
||||||
var/new_limb_type = organ_data["path"]
|
var/new_limb_type = organ_data["path"]
|
||||||
|
|||||||
Reference in New Issue
Block a user