mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
fixes chameleon IDs not actually making you untrackable by the AI (#89786)
## About The Pull Request No idea how long this has been broken for. ## Why It's Good For The Game its supposed to do this and it doesnt which is called a bug ## Changelog 🆑 fix: chameleon IDs actually prevent AI tracking now /🆑 --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
committed by
Roxy
parent
c6a722ee86
commit
7d3888b0a5
@@ -1640,6 +1640,20 @@
|
||||
theft_target = null
|
||||
return ..()
|
||||
|
||||
/obj/item/card/id/advanced/chameleon/equipped(mob/user, slot)
|
||||
. = ..()
|
||||
if (slot & ITEM_SLOT_ID)
|
||||
RegisterSignal(user, COMSIG_LIVING_CAN_TRACK, PROC_REF(can_track))
|
||||
|
||||
/obj/item/card/id/advanced/chameleon/dropped(mob/user)
|
||||
UnregisterSignal(user, COMSIG_LIVING_CAN_TRACK)
|
||||
return ..()
|
||||
|
||||
/obj/item/card/id/advanced/chameleon/proc/can_track(datum/source, mob/user)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
return COMPONENT_CANT_TRACK
|
||||
|
||||
/obj/item/card/id/advanced/chameleon/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers)
|
||||
if(isidcard(interacting_with))
|
||||
theft_target = WEAKREF(interacting_with)
|
||||
|
||||
Reference in New Issue
Block a user