mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Augments and Robot Modules Cannot be dropped, moved, embedded (#14266)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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]!"))
|
||||
|
||||
|
||||
@@ -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>")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user