Makes living/verb/resist more object oriented.

Adds a fourth mob size "MOB_SIZE_TINY" to differentiate corgi size and mouse size. (used in bear trap code)
Rewrites beartrap/Crossed() to have less istype checks.
Adds a flying var to simple animals (used in bear trap code)
Makes pulling update in living/life.dm() to fix pulling not stopping when you're incapacitated.
This commit is contained in:
phil235
2015-04-06 18:45:37 +02:00
parent 1da595b535
commit 8499413649
24 changed files with 207 additions and 183 deletions
@@ -86,7 +86,7 @@
var/mob/living/L = AM
if(L.buckled || L.mob_size > max_mob_size) //buckled mobs and mobs too big for the container don't get inside closets.
return 0
if(L.mob_size > 0)
if(L.mob_size > MOB_SIZE_TINY) //decently sized mobs take more space than objects.
var/mobs_stored = 0
for(var/mob/living/M in contents)
mobs_stored++