From 3680c93004985aa8a40bcdfa27f1a0b710091094 Mon Sep 17 00:00:00 2001 From: DieSiege Date: Thu, 19 Dec 2024 20:21:48 +0300 Subject: [PATCH] Colorable cap (#3004) --- mods/loadout_items/_loadout_items.dme | 1 + mods/loadout_items/code/head.dm | 16 ++++++++++++++++ mods/loadout_items/code/lists/headwear.dm | 6 ++++++ mods/loadout_items/icons/obj_head.dmi | Bin 664 -> 827 bytes mods/loadout_items/icons/onmob_head.dmi | Bin 932 -> 1116 bytes 5 files changed, 23 insertions(+) create mode 100644 mods/loadout_items/code/lists/headwear.dm diff --git a/mods/loadout_items/_loadout_items.dme b/mods/loadout_items/_loadout_items.dme index b93bb82ae70cf..c0716ccb09387 100644 --- a/mods/loadout_items/_loadout_items.dme +++ b/mods/loadout_items/_loadout_items.dme @@ -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" diff --git a/mods/loadout_items/code/head.dm b/mods/loadout_items/code/head.dm index fdad5c3540768..289555f60fff3 100644 --- a/mods/loadout_items/code/head.dm +++ b/mods/loadout_items/code/head.dm @@ -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" : "") \ No newline at end of file diff --git a/mods/loadout_items/code/lists/headwear.dm b/mods/loadout_items/code/lists/headwear.dm new file mode 100644 index 0000000000000..2389436ad5e95 --- /dev/null +++ b/mods/loadout_items/code/lists/headwear.dm @@ -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 \ No newline at end of file diff --git a/mods/loadout_items/icons/obj_head.dmi b/mods/loadout_items/icons/obj_head.dmi index 59a4a3383563238366e48b451fc2d9d7df571812..224ac27344244c459aa12d63c5163018d3e10a57 100644 GIT binary patch delta 801 zcmV++1K#|Y1-k|%iBL{Q4GJ0x0000DNk~Le0001B0000$2m=5B0MhD$JOBUyY>_1> ze>*QIvzc%g7Z=jf(!jvLLOC>APDG`pr93=5IXOAe(a|g{EG8x<=&g|4W|(j0 zFs-=uw_z0Bec&%hgmVxVao+7Yd!xy&n$wXp2l#Y(F_cw?Dw~HdKn`t|4*b+`W-w6= z4xHJfCRp?jFF|F8l1k7jZlh&c&4XUEu44k)0!r&KMlk;ht?0+@`{D;s?PK5$fALVz z0005iNklSA%v%t`k;l9{{KIAlK?Wh5sk&^OmjPJow?zhY&3e_ zOXF{XjlV8GSk(}Qp%1_7@wYxq;BQwm1akW@M6i~?*IN%)dlR-7|6TrP2&EB=Ilb9O z)YvbCQWi7LIWrh2O$hKwlGqsle;@OdF~%7RpvlO$698Z0Q}}~UKod%17Q+~}f|RA; zhtzVP z?|UL-2r=-_!T3u{#0gGb1;gu0uy|L81?W`}LY|G0?+urD;k%%kmR)xTbv_2Xch^_V f1It`o{!)GbqMAAgK4N;W00000NkvXXu0mjf09I%j delta 637 zcmV-@0)qX!2ABmUiBL{Q4GJ0x0000DNk~Le0000$0000$2m=5B0G+pi>;M1&T9G9v zf3ulz7Z(@O($c`dz&kG}LOC>APDDIBJUKZzEG#T0CMGmAG$SJ;DJdx{3JN47Bpn?c zL<$N-?&WC!0004WQchCV=-0C=2JR&a84_w-Y6 z@%7{?OD!tS%+FJ>RWQ*r;NmRLOex6#e{zhCxHvOXGt)ClAe`co#FA7XQzDm0CiMIzbhFs(*OVgR7pfZR9J=WmD_HEFbqIRftXw*e>;>i zDx*nedzi$j+9Flw#Lx$4*{`B5`9&S`^FxKAC=|ZseyMN*Rf-Ea9gjog(tw(eF2oO^ zeEB~48#F*=tOKDAV61V@8DRl+>%1|>8BqXz(mj62CID|dHms|>bOJ2k>G<-ZK<%n) z(@?<#EekZw^-2XFC4o9r4Hg=_e~}mkBh+CbqAv-=#lK~ADG0>J@mUH8Mz|&DQg#pD z5k1A1LOd2YIXOA`k+lCS*xy`wX6ILcpwZVM@C7vA5-neVu=sr7VWZ!6ch(26#^M-! zK({TqM9&A7{SSQLy-zOD@qy?52R_ivE-`R{b^q@KK8V>L`M|ROf&Cw+Pfr93!!V2! z=db&p_a~hK`~JHBYtA3XQBQ={oWI%s98-^Xo?!Lu{$~Rd&A#t%_CL!#&A+Rk{A<1d XBf1@0(-pM~00000NkvXXu0mjfFvbq( diff --git a/mods/loadout_items/icons/onmob_head.dmi b/mods/loadout_items/icons/onmob_head.dmi index 2c649ac83722ea3de58bd5eb4184bc238900f468..8a13047241bfce5e7fdb274c2d37da9f8a9694fa 100644 GIT binary patch literal 1116 zcmV-i1f%005u}0{{R3yb+fl0001EP)t-s@sH?v zXH}1OQ?r?HBO)d*E-^wuL{?T-7#J9!hGPH!{}>k;5D*YrPDDaEG%YPHI42w@Cnv|S zi#snUBqSs#C@3>CGdnvwWEU47A0HJJ6&xHKk&%(7r>DESyNip9@sH>vf<>YL0004W zQchCV=-0C=30kUI{-Fc3s*`xI8vBYrInN`z97 zD_F)})c8Bt$#A6>tPPny-Xh%w~782^WmoG`|VwTko`jaM#@hP48BnruU)iLjP&qyP+MN zSN(OGL-DuL9G3a36?V`Exg0wj#NWL*9N>WUdL87z2D$>?z!>U=MyS^f2Bb%y3LY9< zk8*t%M&vN`RqxRX$FVO+(RICCTNr`El-{4NH7M(oC4&Aw z5`dmRoG%Ekt6QTDh1UfHtcMOhzcb=5pa$u~`SRjTJ#Em8@%)IP9`O5hOVPuJ^Cg>i zzk$P`{0+!UIO2=nW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