mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Changes how Topic() calls apply fingerprints.
Now applies fingerprints if the user is adjacent to a physical object, otherwise applies a hidden fingerprint. CouldUseTopic() is only called when a user has successfully interacted with an object interface/UI.
This commit is contained in:
@@ -46,6 +46,10 @@
|
|||||||
|
|
||||||
/obj/proc/CouldUseTopic(var/mob/user)
|
/obj/proc/CouldUseTopic(var/mob/user)
|
||||||
var/atom/host = nano_host()
|
var/atom/host = nano_host()
|
||||||
|
if(!isAI(user) && host.Adjacent(user))
|
||||||
|
// We are -probably- in physical contact with the object, better than how Topics() previously did it and always applied fingerprints.
|
||||||
|
host.add_fingerprint(user)
|
||||||
|
else
|
||||||
host.add_hiddenprint(user)
|
host.add_hiddenprint(user)
|
||||||
|
|
||||||
/obj/proc/CouldNotUseTopic(var/mob/user)
|
/obj/proc/CouldNotUseTopic(var/mob/user)
|
||||||
|
|||||||
Reference in New Issue
Block a user