mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 20:16:19 +01:00
Update implant.dm
This commit is contained in:
@@ -93,7 +93,10 @@
|
||||
user << "<span class='warning'>\The [src] is already full!</span>"
|
||||
|
||||
/obj/item/weapon/backup_implanter/attack(mob/M as mob, mob/user as mob)
|
||||
if (!istype(M, /mob/living/carbon) || hasImplant) //CHOMPEDIT: Checking if we already have an implant
|
||||
if (!istype(M, /mob/living/carbon))
|
||||
return
|
||||
var//mob/living/carbon/implantee = M//CHOMPEDIT implant check
|
||||
if (implantee.hasImplant)
|
||||
return
|
||||
if (user && imps.len)
|
||||
M.visible_message("<span class='notice'>[user] is injecting a backup implant into [M].</span>")
|
||||
@@ -108,7 +111,7 @@
|
||||
|
||||
var/obj/item/weapon/implant/backup/imp = imps[imps.len]
|
||||
if(imp.implanted(M))
|
||||
M.hasImplant = 1 //CHOMPEDIT Chanigng our hasimplant var to 1 to symbolize we were backed up
|
||||
implantee.hasImplant = 1 //CHOMPEDIT Chanigng our hasimplant var to 1 to symbolize we were backed up
|
||||
imp.forceMove(M)
|
||||
imps -= imp
|
||||
imp.imp_in = M
|
||||
|
||||
Reference in New Issue
Block a user