Augments and Robot Modules Cannot be dropped, moved, embedded (#14266)

This commit is contained in:
Doxxmedearly
2022-06-09 20:55:16 +02:00
committed by GitHub
parent 6a27e1cd45
commit 58dd1b1696
10 changed files with 41 additions and 17 deletions
+2
View File
@@ -1208,6 +1208,8 @@ Note that amputating the affected organ does in fact remove the infection from t
/obj/item/organ/external/proc/embed(var/obj/item/W, var/silent = 0, var/supplied_message)
if(!owner || loc != owner)
return
if(!W.canremove || is_robot_module(W)) //Modules and augments cannot embed
return
if(species.flags & NO_EMBED)
return
if(!silent)
+2
View File
@@ -116,6 +116,8 @@
return
var/obj/item/M = new augment_type(owner)
M.canremove = FALSE
M.item_flags |= NOMOVE
owner.equip_to_slot(M, aug_slot)
owner.visible_message(SPAN_NOTICE("\The [M] slides out of \the [owner]'s [owner.organs_by_name[parent_organ]]."), SPAN_NOTICE("You deploy \the [M]!"))
+2
View File
@@ -283,6 +283,8 @@
owner.last_special = world.time + 100
var/obj/item/M = new augment_type(owner)
M.canremove = FALSE
M.item_flags |= NOMOVE
owner.put_in_active_hand(M)
owner.visible_message("<span class='notice'>\The [M] slides out of \the [owner]'s [src].</span>","<span class='notice'>You deploy \the [M]!</span>")