Skip to content

Commit

Permalink
sprites update
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-34 committed Sep 30, 2023
1 parent 1654cb5 commit 754661b
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions modular_ss220/aesthetics/_aesthetics.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
66 changes: 66 additions & 0 deletions modular_ss220/aesthetics/goonstation/code/items.dm
Original file line number Diff line number Diff line change
@@ -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'
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 754661b

Please sign in to comment.