TEACH ME YOUR WAYS MAINTAINERS

This commit is contained in:
TheCarlSaganExpress
2016-10-02 23:35:35 -04:00
committed by GitHub
parent 7889593e80
commit 494bf90f90
+1 -2
View File
@@ -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)