mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
Merge pull request #3979 from Anewbe/tracking_implant
Improves tracking implant code, adds a tracking implant variant to the loadout
This commit is contained in:
@@ -1657,12 +1657,13 @@
|
||||
|
||||
for(var/obj/item/weapon/implant/I in src)
|
||||
if(I.implanted)
|
||||
if(istype(I,/obj/item/weapon/implant/tracking))
|
||||
holder1.icon_state = "hud_imp_tracking"
|
||||
if(istype(I,/obj/item/weapon/implant/loyalty))
|
||||
holder2.icon_state = "hud_imp_loyal"
|
||||
if(istype(I,/obj/item/weapon/implant/chem))
|
||||
holder3.icon_state = "hud_imp_chem"
|
||||
if(!I.malfunction)
|
||||
if(istype(I,/obj/item/weapon/implant/tracking))
|
||||
holder1.icon_state = "hud_imp_tracking"
|
||||
if(istype(I,/obj/item/weapon/implant/loyalty))
|
||||
holder2.icon_state = "hud_imp_loyal"
|
||||
if(istype(I,/obj/item/weapon/implant/chem))
|
||||
holder3.icon_state = "hud_imp_chem"
|
||||
|
||||
hud_list[IMPTRACK_HUD] = holder1
|
||||
hud_list[IMPLOYAL_HUD] = holder2
|
||||
|
||||
@@ -1059,6 +1059,13 @@ mob/proc/yank_out_object()
|
||||
/mob/proc/is_muzzled()
|
||||
return 0
|
||||
|
||||
//Exploitable Info Update
|
||||
|
||||
/mob/proc/amend_exploitable(var/obj/item/I)
|
||||
var/obj/item/exploit_item = new I(src.loc)
|
||||
exploit_addons |= exploit_item
|
||||
var/exploitmsg = html_decode("\n" + "Has " + exploit_item.name + ".")
|
||||
exploit_record += exploitmsg
|
||||
|
||||
/client/proc/check_has_body_select()
|
||||
return mob && mob.hud_used && istype(mob.zone_sel, /obj/screen/zone_sel)
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
var/sec_record = ""
|
||||
var/gen_record = ""
|
||||
var/exploit_record = ""
|
||||
var/exploit_addons = list() //Assorted things that show up at the end of the exploit_record list
|
||||
var/blinded = null
|
||||
var/bhunger = 0 //Carbon
|
||||
var/ajourn = 0
|
||||
|
||||
Reference in New Issue
Block a user