mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Makes food/drink code easier to read (#11913)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: NickBelmont <89628295+NickBelmont@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: chompstation-ci[bot] <199999496+chompstation-ci[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Guti
NickBelmont
Cameron Lennox
chompstation-ci[bot] <199999496+chompstation-ci[bot]@users.noreply.github.com>
parent
6fd2c47fc8
commit
deffae313a
@@ -118,6 +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)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user