Merge pull request #191 from sheepishgoat/enhanced-fatness

More options to interface with fatness
This commit is contained in:
evilew
2024-05-27 22:36:46 +02:00
committed by GitHub
9 changed files with 195 additions and 1 deletions
+2
View File
@@ -528,3 +528,5 @@ GLOBAL_LIST_INIT(lighter_reskins, list(ZIPPO_SKIN_PLAIN = "plain", ZIPPO_SKIN_DA
#define FATTENING_TYPE_MAGIC "magic"
#define FATTENING_TYPE_VIRUS "virus"
#define FATTENING_TYPE_WEIGHT_LOSS "weight_loss"
#define FATNESS_TO_WEIGHT_RATIO 0.25
+8
View File
@@ -175,6 +175,14 @@
return TRUE
if(unrestricted_side(M))
return TRUE
//GS13 EDIT
var/mob/living/carbon/human/bump_mob = M
if(check_fatness && istype(bump_mob))
if(check_fatness_below && (bump_mob.fatness >= fatness_to_check))
return FALSE
if(!check_fatness_below && (bump_mob.fatness < fatness_to_check))
return FALSE
return ..()
/obj/machinery/door/proc/unrestricted_side(mob/M) //Allows for specific side of airlocks to be unrestrected (IE, can exit maint freely, but need access to enter)