mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-18 19:39:53 +01:00
Merge pull request #191 from sheepishgoat/enhanced-fatness
More options to interface with fatness
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user