Skip to content

Commit

Permalink
Colorable cap (#3004)
Browse files Browse the repository at this point in the history
  • Loading branch information
DieSiege authored Dec 19, 2024
1 parent 826d447 commit 3680c93
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions mods/loadout_items/_loadout_items.dme
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "code/lists/uniforms.dm"
#include "code/lists/suits.dm"
#include "code/lists/xenowear.dm"
#include "code/lists/headwear.dm"
#include "code/loadout/loadout.dm"
#include "code/loadout/donations.dm"
#include "code/loadout/donator.dm"
Expand Down
16 changes: 16 additions & 0 deletions mods/loadout_items/code/head.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,19 @@
icon_state = initial(icon_state)
item_state = initial(icon_state)
to_chat(user, "You lower the ear flaps on the Suncap.")

// Human headgarments

/obj/item/clothing/head/soft/colorable
name = "Soft cap"
desc = "A simple baseball soft cap without any special qualities"
icon = 'mods/loadout_items/icons/obj_head.dmi'
item_icons = list(
slot_head_str = 'mods/loadout_items/icons/onmob_head.dmi'
)
icon_state = "cprescap"
item_state = "cprescap"

/obj/item/clothing/head/soft/on_update_icon()
. = ..()
item_state = initial(item_state) + (flipped ? "_flipped" : "")
6 changes: 6 additions & 0 deletions mods/loadout_items/code/lists/headwear.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/datum/gear/head/ballcap
display_name = "ballcap, colour select"
path = /obj/item/clothing/head/soft/colorable
flags = GEAR_HAS_COLOR_SELECTION
slot = slot_head
cost = 1
Binary file modified mods/loadout_items/icons/obj_head.dmi
Binary file not shown.
Binary file modified mods/loadout_items/icons/onmob_head.dmi
Binary file not shown.

0 comments on commit 3680c93

Please sign in to comment.