mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #6500 from KasparoVy/you_tracking_implanted_the_floor
Loadout Implants Properly go in Mob, not on Floor
This commit is contained in:
@@ -389,9 +389,6 @@ var/global/datum/controller/occupations/job_master
|
|||||||
H << "<span class='warning'>Your current species, job or whitelist status does not permit you to spawn with [thing]!</span>"
|
H << "<span class='warning'>Your current species, job or whitelist status does not permit you to spawn with [thing]!</span>"
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if(G.exploitable)
|
|
||||||
H.amend_exploitable(G.path)
|
|
||||||
|
|
||||||
if(G.slot == "implant")
|
if(G.slot == "implant")
|
||||||
var/obj/item/weapon/implant/I = G.spawn_item(H)
|
var/obj/item/weapon/implant/I = G.spawn_item(H)
|
||||||
I.invisibility = 100
|
I.invisibility = 100
|
||||||
|
|||||||
@@ -66,8 +66,7 @@
|
|||||||
|
|
||||||
/obj/item/weapon/implant/proc/implant_loadout(var/mob/living/carbon/human/H)
|
/obj/item/weapon/implant/proc/implant_loadout(var/mob/living/carbon/human/H)
|
||||||
if(H)
|
if(H)
|
||||||
var/obj/item/organ/external/affected = H.organs_by_name[initialize_loc]
|
if(handle_implant(H, initialize_loc))
|
||||||
if(handle_implant(H, affected))
|
|
||||||
invisibility = initial(invisibility)
|
invisibility = initial(invisibility)
|
||||||
post_implant(H)
|
post_implant(H)
|
||||||
|
|
||||||
|
|||||||
@@ -19,12 +19,3 @@
|
|||||||
icon = 'icons/obj/device.dmi'
|
icon = 'icons/obj/device.dmi'
|
||||||
icon_state = "implant"
|
icon_state = "implant"
|
||||||
roundstart = FALSE
|
roundstart = FALSE
|
||||||
|
|
||||||
/obj/item/weapon/implant/dud/Initialize()
|
|
||||||
..()
|
|
||||||
if(roundstart)
|
|
||||||
invisibility = 100
|
|
||||||
..()
|
|
||||||
spawn(3)
|
|
||||||
if(!ishuman(loc) && !QDELETED(src))
|
|
||||||
qdel(src)
|
|
||||||
|
|||||||
@@ -105,10 +105,3 @@ Implant Specifics:<BR>"}
|
|||||||
my_brain.take_damage(15)
|
my_brain.take_damage(15)
|
||||||
my_brain = null
|
my_brain = null
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/item/weapon/implant/neural/roundstart/Initialize()
|
|
||||||
invisibility = 100
|
|
||||||
..()
|
|
||||||
spawn(3)
|
|
||||||
if(!ishuman(loc) && !QDELETED(src))
|
|
||||||
qdel(src)
|
|
||||||
|
|||||||
@@ -271,4 +271,7 @@ var/list/gear_datums = list()
|
|||||||
var/item = new gd.path(gd.location)
|
var/item = new gd.path(gd.location)
|
||||||
for(var/datum/gear_tweak/gt in gear_tweaks)
|
for(var/datum/gear_tweak/gt in gear_tweaks)
|
||||||
gt.tweak_item(item, metadata["[gt]"])
|
gt.tweak_item(item, metadata["[gt]"])
|
||||||
|
var/mob/M = location
|
||||||
|
if(istype(M) && exploitable) //Update exploitable info records for the mob without creating a duplicate object at their feet.
|
||||||
|
M.amend_exploitable(item)
|
||||||
return item
|
return item
|
||||||
|
|||||||
@@ -127,7 +127,7 @@
|
|||||||
/datum/gear/utility/implant/neural
|
/datum/gear/utility/implant/neural
|
||||||
display_name = "implant, neural assistance web"
|
display_name = "implant, neural assistance web"
|
||||||
description = "A complex web implanted into the subject, medically in order to compensate for neurological disease."
|
description = "A complex web implanted into the subject, medically in order to compensate for neurological disease."
|
||||||
path = /obj/item/weapon/implant/neural/roundstart
|
path = /obj/item/weapon/implant/neural
|
||||||
cost = 6
|
cost = 6
|
||||||
|
|
||||||
/datum/gear/utility/implant/dud1
|
/datum/gear/utility/implant/dud1
|
||||||
|
|||||||
@@ -1110,10 +1110,10 @@ mob/proc/yank_out_object()
|
|||||||
//Exploitable Info Update
|
//Exploitable Info Update
|
||||||
|
|
||||||
/mob/proc/amend_exploitable(var/obj/item/I)
|
/mob/proc/amend_exploitable(var/obj/item/I)
|
||||||
var/obj/item/exploit_item = new I(src.loc)
|
if(istype(I))
|
||||||
exploit_addons |= exploit_item
|
exploit_addons |= I
|
||||||
var/exploitmsg = html_decode("\n" + "Has " + exploit_item.name + ".")
|
var/exploitmsg = html_decode("\n" + "Has " + I.name + ".")
|
||||||
exploit_record += exploitmsg
|
exploit_record += exploitmsg
|
||||||
|
|
||||||
/client/proc/check_has_body_select()
|
/client/proc/check_has_body_select()
|
||||||
return mob && mob.hud_used && istype(mob.zone_sel, /obj/screen/zone_sel)
|
return mob && mob.hud_used && istype(mob.zone_sel, /obj/screen/zone_sel)
|
||||||
|
|||||||
Reference in New Issue
Block a user