Aut'akh unathi fixes: limbs and loadout (#6091)

This commit is contained in:
Alberyk
2019-02-24 12:17:19 +01:00
committed by Werner
parent fe391bc153
commit edd11d37c3
5 changed files with 38 additions and 27 deletions
@@ -961,24 +961,25 @@
to_chat(src,"<span class='warning'>Your body fails to interface with this alien technology.</span>")
return
if(organs_by_name[O.limb_name])
to_chat(src,"<span class='warning'>You already have a limb of this type.</span>")
return
var/obj/item/organ/external/E = get_organ(zone_sel.selecting)
if(!organs_by_name[O.parent_organ])
to_chat(src,"<span class='warning'>You are unable to find a place to attach \the [O] to your body.</span>")
return
if(E)
to_chat(src,"<span class='warning'>You are not missing that limb.</span>")
return
last_special = world.time + 20
last_special = world.time + 20
src.drop_from_inventory(O)
O.replaced(src)
src.update_body()
src.updatehealth()
src.UpdateDamageIcon()
src.drop_from_inventory(O)
O.replaced(src)
src.update_body()
src.updatehealth()
src.UpdateDamageIcon()
update_body()
updatehealth()
UpdateDamageIcon()
update_body()
updatehealth()
UpdateDamageIcon()
visible_message("<span class='notice'>\The [src] attaches \the [O] to \his body!</span>",
"<span class='notice'>You attach \the [O] to your body!</span>")
visible_message("<span class='notice'>\The [src] attaches \the [O] to \his body!</span>",
"<span class='notice'>You attach \the [O] to your body!</span>")