mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 18:12:40 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user