From bccabe6d4f87949e0e5f986c8b0a0554a32ffea1 Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Sat, 9 May 2015 18:55:37 -0700 Subject: [PATCH] Add magboots stopping airflow push to LINDA This commit adds an airflow push override to humans, which triggers when the shoes they are wearing are a subtype of magboots and magpulse is active. Therefore, magboots will prevent people from being pushed around by "spacewind" or also known as airflow. --- code/modules/mob/living/carbon/human/human_defense.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/mob/living/carbon/human/human_defense.dm b/code/modules/mob/living/carbon/human/human_defense.dm index 3ff64431933..9d58b19f77f 100644 --- a/code/modules/mob/living/carbon/human/human_defense.dm +++ b/code/modules/mob/living/carbon/human/human_defense.dm @@ -488,3 +488,11 @@ emp_act ..() return + +/mob/living/carbon/human/experience_pressure_difference(pressure_difference, direction) + if(shoes) + if(istype(shoes,/obj/item/clothing/shoes/magboots)) //TODO: Make a not-shit shoe var system to negate airflow. + var/obj/item/clothing/shoes/magboots/MB = shoes + if(MB.magpulse) + return 0 + ..() \ No newline at end of file