mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-13 08:04:22 +01:00
TG Signal Port (#18741)
* click code start * snake_span * Update click.dm * Update click.dm * Update click.dm * WIP signal organization * Moooore signals * cuffs * decon * whoops * revert this * Proper name * movable moved * These * Theeese * Sort these * Update cyborg.dm
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
return FALSE
|
||||
|
||||
user.setClickCooldown(user.get_attack_speed(src)) //puts a limit on how fast people can eat/drink things
|
||||
SEND_SIGNAL(src, COMSIG_CONTAINER_DRANK, target, user)
|
||||
SEND_SIGNAL(src, COMSIG_GLASS_DRANK, target, user)
|
||||
if(user == target)
|
||||
self_feed_message(user)
|
||||
reagents.trans_to_mob(user, issmall(user) ? CEILING(amount_per_transfer_from_this/2, 1) : amount_per_transfer_from_this, CHEM_INGEST)
|
||||
|
||||
@@ -231,10 +231,10 @@
|
||||
. = ..()
|
||||
AddComponent(/datum/component/recursive_move)
|
||||
AddComponent(/datum/component/hose_connector/input)
|
||||
RegisterSignal(src, COMSIG_OBSERVER_MOVED, /obj/item/reagent_containers/spray/chemsprayer/hosed/proc/update_hose)
|
||||
RegisterSignal(src, COMSIG_MOVABLE_MOVED, /obj/item/reagent_containers/spray/chemsprayer/hosed/proc/update_hose)
|
||||
|
||||
/obj/item/reagent_containers/spray/chemsprayer/hosed/Destroy()
|
||||
UnregisterSignal(src, COMSIG_OBSERVER_MOVED)
|
||||
UnregisterSignal(src, COMSIG_MOVABLE_MOVED)
|
||||
. = ..()
|
||||
|
||||
/obj/item/reagent_containers/spray/chemsprayer/hosed/proc/update_hose(atom/source, atom/oldloc, direction, forced, list/old_locs, momentum_change)
|
||||
|
||||
@@ -55,15 +55,15 @@
|
||||
|
||||
// This doesn't apply to skin contact - this is for, e.g. extinguishers and sprays. The difference is that reagent is not directly on the mob's skin - it might just be on their clothing.
|
||||
/datum/reagent/proc/touch_mob(var/mob/M, var/amount)
|
||||
SEND_SIGNAL(M, COMSIG_REAGENTS_TOUCH, src, amount)
|
||||
SEND_SIGNAL(M, COMSIG_REAGENT_EXPOSE_MOB, src, amount)
|
||||
return
|
||||
|
||||
/datum/reagent/proc/touch_obj(var/obj/O, var/amount) // Acid melting, cleaner cleaning, etc
|
||||
SEND_SIGNAL(O, COMSIG_REAGENTS_TOUCH, src, amount)
|
||||
SEND_SIGNAL(O, COMSIG_REAGENT_EXPOSE_OBJ, src, amount)
|
||||
return
|
||||
|
||||
/datum/reagent/proc/touch_turf(var/turf/T, var/amount) // Cleaner cleaning, lube lubbing, etc, all go here
|
||||
SEND_SIGNAL(T, COMSIG_REAGENTS_TOUCH, src, amount)
|
||||
SEND_SIGNAL(T, COMSIG_REAGENT_EXPOSE_TURF, src, amount)
|
||||
return
|
||||
|
||||
/datum/reagent/proc/on_mob_life(var/mob/living/carbon/M, var/alien, var/datum/reagents/metabolism/location) // Currently, on_mob_life is called on carbons. Any interaction with non-carbon mobs (lube) will need to be done in touch_mob.
|
||||
|
||||
Reference in New Issue
Block a user