diff --git a/modular_ss220/aesthetics/_aesthetics.dme b/modular_ss220/aesthetics/_aesthetics.dme index 844ab6d26152..f1e86d635cc0 100644 --- a/modular_ss220/aesthetics/_aesthetics.dme +++ b/modular_ss220/aesthetics/_aesthetics.dme @@ -15,6 +15,7 @@ #include "extinguisher\code\extinguisher.dm" #include "firealarm\code\firealarm.dm" #include "floors\code\floors.dm" +#include "goonstation\code\items.dm" #include "hydroponics\code\hydroponics.dm" #include "keycard\code\keycard.dm" #include "labeler\code\labeler.dm" diff --git a/modular_ss220/aesthetics/goonstation/LICENSE.md b/modular_ss220/aesthetics/goonstation/LICENSE.md new file mode 100644 index 000000000000..bb6102702e6b --- /dev/null +++ b/modular_ss220/aesthetics/goonstation/LICENSE.md @@ -0,0 +1,2 @@ +All files located in this directory and any subdirectories are licensed under the +Creative Commons 3.0 BY-NC-SA license (https://creativecommons.org/licenses/by-nc-sa/3.0) \ No newline at end of file diff --git a/modular_ss220/aesthetics/goonstation/code/items.dm b/modular_ss220/aesthetics/goonstation/code/items.dm new file mode 100644 index 000000000000..ffdcb4b40d4c --- /dev/null +++ b/modular_ss220/aesthetics/goonstation/code/items.dm @@ -0,0 +1,66 @@ +/* Geiger */ +#define RAD_LEVEL_NORMAL 9 +#define RAD_LEVEL_MODERATE 100 +#define RAD_LEVEL_HIGH 400 +#define RAD_LEVEL_VERY_HIGH 800 +#define RAD_LEVEL_CRITICAL 1500 + +/obj/item/geiger_counter + icon = 'modular_ss220/aesthetics/goonstation/icons/geiger.dmi' + item_state = "geiger" + lefthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi' + righthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi' + +/obj/item/geiger_counter/update_icon_state() + if(!scanning) + icon_state = "geiger_off" + else if(emagged) + icon_state = "geiger_on_emag" + else + switch(radiation_count) + if(-INFINITY to RAD_LEVEL_NORMAL) + icon_state = "geiger_on_0" + if(RAD_LEVEL_NORMAL + 1 to RAD_LEVEL_MODERATE) + icon_state = "geiger_on_1" + if(RAD_LEVEL_MODERATE + 1 to RAD_LEVEL_HIGH) + icon_state = "geiger_on_2" + if(RAD_LEVEL_HIGH + 1 to RAD_LEVEL_VERY_HIGH) + icon_state = "geiger_on_3" + if(RAD_LEVEL_VERY_HIGH + 1 to RAD_LEVEL_CRITICAL) + icon_state = "geiger_on_4" + if(RAD_LEVEL_CRITICAL + 1 to INFINITY) + icon_state = "geiger_on_5" + +#undef RAD_LEVEL_NORMAL +#undef RAD_LEVEL_MODERATE +#undef RAD_LEVEL_HIGH +#undef RAD_LEVEL_VERY_HIGH +#undef RAD_LEVEL_CRITICAL + +/* Igniter */ +/obj/item/assembly/igniter + icon = 'modular_ss220/aesthetics/goonstation/icons/igniter.dmi' + item_state = "igniter" + lefthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi' + righthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi' + +/* Penlight */ +/obj/item/flashlight/pen + icon = 'modular_ss220/aesthetics/goonstation/icons/penlight.dmi' + item_state = "pen" + lefthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi' + righthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi' + +/obj/item/flashlight/pen/update_icon_state() + . = ..() + if(on) + item_state = "[initial(item_state)]-on" + else + item_state = "[initial(item_state)]" + +/* Hand teleporter */ +/obj/item/hand_tele + icon = 'modular_ss220/aesthetics/goonstation/icons/hand_tele.dmi' + item_state = "hand_tele" + lefthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi' + righthand_file = 'modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi' diff --git a/modular_ss220/aesthetics/goonstation/icons/geiger.dmi b/modular_ss220/aesthetics/goonstation/icons/geiger.dmi new file mode 100644 index 000000000000..20506c65f593 Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/geiger.dmi differ diff --git a/modular_ss220/aesthetics/goonstation/icons/hand_tele.dmi b/modular_ss220/aesthetics/goonstation/icons/hand_tele.dmi new file mode 100644 index 000000000000..ad7d416fcf1a Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/hand_tele.dmi differ diff --git a/modular_ss220/aesthetics/goonstation/icons/igniter.dmi b/modular_ss220/aesthetics/goonstation/icons/igniter.dmi new file mode 100644 index 000000000000..9b90afdfe591 Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/igniter.dmi differ diff --git a/modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi b/modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi new file mode 100644 index 000000000000..ed8476d9e910 Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/items_lefthand.dmi differ diff --git a/modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi b/modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi new file mode 100644 index 000000000000..ae3cac04f7d9 Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/items_righthand.dmi differ diff --git a/modular_ss220/aesthetics/goonstation/icons/penlight.dmi b/modular_ss220/aesthetics/goonstation/icons/penlight.dmi new file mode 100644 index 000000000000..63eee397d59f Binary files /dev/null and b/modular_ss220/aesthetics/goonstation/icons/penlight.dmi differ