removes setup for ventcrawl implant in case of redundancy

This commit is contained in:
raspy-on-osu
2020-12-27 02:20:19 -05:00
parent c8831b622e
commit 3738f09ca0
2 changed files with 5 additions and 11 deletions

View File

@@ -31,8 +31,7 @@
// Ventcrawling defines
#define VENTCRAWLER_NONE 0
#define VENTCRAWLER_NUDE 1
#define VENTCRAWLER_IMPLANT 2
#define VENTCRAWLER_ALWAYS 3
#define VENTCRAWLER_ALWAYS 2
// Bloodcrawling defines
#define BLOODCRAWL 1

View File

@@ -59,15 +59,10 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, typecacheof(list(
if(!client)
return
if(iscarbon(src))
switch(ventcrawler)
if(VENTCRAWLER_NUDE)
if(length(get_equipped_items(include_pockets = TRUE)) || get_num_held_items())
to_chat(src, "<span class='warning'>You can't crawl around in the ventilation ducts with items!</span>")
return
if(VENTCRAWLER_IMPLANT)
if(getBackSlot() || getBeltSlot() || get_num_held_items())
to_chat(src, "<span class='warning'>You can't crawl around in the ventilation ducts with what you have equipped!")
if(iscarbon(src) && ventcrawler==VENTCRAWLER_NUDE)
if(length(get_equipped_items(include_pockets = TRUE)) || get_num_held_items())
to_chat(src, "<span class='warning'>You can't crawl around in the ventilation ducts with items!</span>")
return
visible_message("<span class='notice'>[src] scrambles into the ventilation ducts!</span>","<span class='notice'>You climb into the ventilation ducts.</span>")
forceMove(vent_found)