Fixes stairs randomly faceplanting you + some initialize/qdel errors (#9341)

This commit is contained in:
Matt Atlas
2020-07-12 19:20:26 +02:00
committed by GitHub
parent 3afd1c3fb4
commit 46227542da
17 changed files with 67 additions and 23 deletions

View File

@@ -36,6 +36,7 @@
var/reaction_sound = 'sound/effects/bubbles.ogg'
var/log_is_important = 0 // If this reaction should be considered important for logging. Important recipes message admins when mixed, non-important ones just log to file.
/datum/chemical_reaction/proc/can_happen(var/datum/reagents/holder)
//check that all the required reagents are present
if(!holder.has_all_reagents(required_reagents))

View File

@@ -1353,7 +1353,7 @@
bitesize = 0.1 //this snack is supposed to be eating during looooong time. And this it not dinner food! --rastaf0
/obj/item/reagent_containers/food/snacks/popcorn/Initialize()
..()
. = ..()
unpopped = rand(1,10)
/obj/item/reagent_containers/food/snacks/popcorn/on_consume()