mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Added user as an argument
This commit is contained in:
committed by
GitHub
parent
3a8c7ecbd7
commit
36e52cf79b
@@ -381,7 +381,7 @@
|
||||
user << "You take a bite of the [src.name]. Delicious!"
|
||||
var/eaten = use_charges(5)
|
||||
if(!reagents.total_volume) //Prevents divsion by zero
|
||||
check_empty()
|
||||
check_empty(user)
|
||||
return
|
||||
var/fraction = min(eaten / reagents.total_volume, 1)
|
||||
reagents.reaction(M, INGEST, fraction * volume_multiplier)
|
||||
|
||||
Reference in New Issue
Block a user