mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
TEACH ME YOUR WAYS MAINTAINERS
This commit is contained in:
committed by
GitHub
parent
7889593e80
commit
494bf90f90
@@ -380,8 +380,7 @@
|
||||
if(edible && (M == user))
|
||||
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(user)
|
||||
if(check_empty(user)) //Prevents divsion by zero
|
||||
return
|
||||
var/fraction = min(eaten / reagents.total_volume, 1)
|
||||
reagents.reaction(M, INGEST, fraction * volume_multiplier)
|
||||
|
||||
Reference in New Issue
Block a user