From 0171fa3faada1dcfc6b54c18f53afeb0e180514b Mon Sep 17 00:00:00 2001 From: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Date: Sat, 23 Feb 2019 06:37:57 +1000 Subject: [PATCH] Cleanup of Tempest saddlebag code --- .../vore/fluffstuff/custom_items_vr.dm | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/code/modules/vore/fluffstuff/custom_items_vr.dm b/code/modules/vore/fluffstuff/custom_items_vr.dm index e299eb8e0b4..182571c66e8 100644 --- a/code/modules/vore/fluffstuff/custom_items_vr.dm +++ b/code/modules/vore/fluffstuff/custom_items_vr.dm @@ -615,10 +615,10 @@ taurtype = /datum/sprite_accessory/tail/taur/feline/tempest no_message = "These saddlebags seem to be fitted for someone else, and keep slipping off!" action_button_name = "Toggle Mlembulance Mode" - var/ambulance = 0 - var/ambulance_state = 0 + var/ambulance = FALSE + var/ambulance_state = FALSE var/ambulance_last_switch = 0 - var/ambulance_volume = 25 + var/ambulance_volume = 25 //Allows for varediting, just in case /obj/item/weapon/storage/backpack/saddlebag/tempest/ui_action_click() ambulance = !(ambulance) @@ -626,10 +626,10 @@ processing_objects.Add(src) item_state = "tempestsaddlebag-amb" icon_state = "tempestbag-amb" - if (ismob(src.loc)) - var/mob/M = src.loc + if (ismob(loc)) + var/mob/M = loc M.update_inv_back() - ambulance_state = 0 + ambulance_state = FALSE set_light(2, 1, "#FF0000") while(ambulance) playsound(src.loc, 'sound/items/amulanceweeoo.ogg', ambulance_volume, 0) @@ -637,8 +637,8 @@ else item_state = "tempestsaddlebag" icon_state = "tempestbag" - if (ismob(src.loc)) - var/mob/M = src.loc + if (ismob(loc)) + var/mob/M = loc M.update_inv_back() set_light(0) @@ -651,8 +651,8 @@ var/newlight = "#FF0000" if(ambulance_state) newlight = "#0000FF" - if (ismob(src.loc)) - var/mob/M = src.loc + if (ismob(loc)) + var/mob/M = loc M.update_inv_back() set_light(2, 1, newlight) ambulance_last_switch = world.time