Adds running over people with mechs (#7791)

Walking over someone lying on the floor with mechs will now hurt them. Damage is based on the legs.
Also, removed some baylore references to the mech parts, and made so that mechs can push mobs around.
This commit is contained in:
Alberyk
2019-12-29 18:02:06 -03:00
committed by Matt Atlas
parent 408dc1861a
commit 04aeeab4fc
10 changed files with 53 additions and 7 deletions

View File

@@ -864,12 +864,17 @@ default behaviour is:
/mob/living/proc/get_digestion_product()
return null
/proc/is_valid_for_devour(var/mob/living/test, var/eat_types)
//eat_types must contain all types that the mob has. For example we need both humanoid and synthetic to eat an IPC.
var/test_types = test.find_type()
. = (eat_types & test_types) == test_types
/mob/living/Crossed(var/atom/movable/AM)
if(istype(AM, /mob/living/heavy_vehicle))
var/mob/living/heavy_vehicle/MB = AM
MB.trample(src)
..()
#define PPM 9 //Protein per meat, used for calculating the quantity of protein in an animal
/mob/living/proc/calculate_composition()
if (!composition_reagent)//if no reagent has been set, then we'll set one