Fixes division by zero (#26181)

This commit is contained in:
adrian
2020-04-13 16:31:18 -03:00
committed by GitHub
parent 4a11790d40
commit 170c4839ed

View File

@@ -248,6 +248,8 @@
if(chefcount > 2) if(chefcount > 2)
episode_names += new /datum/episode_name/rare("Too Many Cooks", "There were [chefcount] chefs on the shuttle.", min(1500, chefcount*450)) //intentionally not capitalized, as the theme will customize it episode_names += new /datum/episode_name/rare("Too Many Cooks", "There were [chefcount] chefs on the shuttle.", min(1500, chefcount*450)) //intentionally not capitalized, as the theme will customize it
theme = "cooks" theme = "cooks"
if(human_escapees.len)
if(assistantcount / human_escapees.len > 0.6 && human_escapees.len > 3) if(assistantcount / human_escapees.len > 0.6 && human_escapees.len > 3)
episode_names += new /datum/episode_name/rare("[pick("GREY GOO", "RISE OF THE GREYTIDE")]", "Most of the survivors were Assistants, or at least dressed like one.", min(1500, assistantcount*200)) episode_names += new /datum/episode_name/rare("[pick("GREY GOO", "RISE OF THE GREYTIDE")]", "Most of the survivors were Assistants, or at least dressed like one.", min(1500, assistantcount*200))
if(skeletoncount / human_escapees.len > 0.6 && human_escapees.len > 3) if(skeletoncount / human_escapees.len > 0.6 && human_escapees.len > 3)