Merge pull request #599 from Sharkmare/patch-69

Adding sizecheck to edible code
This commit is contained in:
Vollybally
2019-04-07 22:34:22 -04:00
committed by GitHub
+2 -1
View File
@@ -261,7 +261,8 @@
if(!prey.isEdible) //CHOMPEDIT: Trying to make pred mobs prey? N O U
var/mob/living/simple_animal/preydator = prey
if(preydator.icon_state == preydator.icon_living)
if(preydator.icon_state == preydator.icon_living && preydator.size_multiplier >= 1)
user.visible_message("<span class='danger'>\the [user] promptly gets tackled by \the [prey] for trying to break their prefs! !</span>!")
user.Weaken(5)
if (preydator.will_eat(user))