From 3f92513ecc16a90719042815032d3e1ea8d2af4d Mon Sep 17 00:00:00 2001 From: skull132 Date: Tue, 18 Mar 2014 17:42:03 +0200 Subject: [PATCH] Roll down jumpsuit Engineering and atmospherics jumpsuits can now be rolled down. --- .../clothing/under/jobs/engineering.dm | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/code/modules/clothing/under/jobs/engineering.dm b/code/modules/clothing/under/jobs/engineering.dm index 8f279b7c..e458475a 100644 --- a/code/modules/clothing/under/jobs/engineering.dm +++ b/code/modules/clothing/under/jobs/engineering.dm @@ -35,32 +35,36 @@ //Down below follows a partial attempt at getting the rolldown verb for jumpsuits. //Issue: Sprites vanishing again... Hueh - Skull132 -///obj/item/clothing/under/rank/verb/rolldown() -// set name = "Roll Down Jumpsuit" -// set category = "Object" -// set src in usr -// -// if(!usr.canmove || usr.stat || usr.restrained()) -// return 0 -// -// switch(icon_state) -// if("atmos") -// src.icon_state = "atmos_rd" -// src.item_state = "atmos_rd" -// usr << "You roll down the jumpsuit." -// if("atmos_rd") -// src.icon_state = "atmos" -// src.item_state = "atmos" -// usr << "You roll the jumpsuit back up." -// if("engine") -// src.icon_state = "engine_rd" -// src.item_state = "engine_rd" -// usr << "You roll down the jumpsuit." -// if("engine_rd") -// src.icon_state = "engine" -// src.item_state = "engine" -// usr << "You roll the jumpsuit back up." -// else -// usr << "You attempt to roll down your [src], before promptly realising how retarded you are." -// return -// usr.update_inv_w_uniform() \ No newline at end of file +/obj/item/clothing/under/rank/verb/rolldown() + set name = "Roll Down Jumpsuit" + set category = "Object" + set src in usr + + if(!usr.canmove || usr.stat || usr.restrained()) + return 0 + + switch(icon_state) + if("atmos") + src.icon_state = "atmos_rd" + src.item_color = "atmos_rd" + src.item_state = "atmos_rd" + usr << "You roll down the jumpsuit." + if("atmos_rd") + src.icon_state = "atmos" + src.item_color = "atmos" + src.item_state = "atmos" + usr << "You roll the jumpsuit back up." + if("engine") + src.icon_state = "engine_rd" + src.item_color = "engine_rd" + src.item_state = "engine_rd" + usr << "You roll down the jumpsuit." + if("engine_rd") + src.icon_state = "engine" + src.item_color = "engine" + src.item_state = "engine" + usr << "You roll the jumpsuit back up." + else + usr << "You attempt to roll down your [src], before promptly realising how stupid it would be for you to expose your chest." + return + usr.update_inv_w_uniform() \ No newline at end of file