From ec7c84cc9084e19274f7d8533a6ceaa81523b696 Mon Sep 17 00:00:00 2001 From: Nim <128169402+Nimfar11@users.noreply.github.com> Date: Fri, 8 Aug 2025 00:12:36 +0300 Subject: [PATCH] Lurker cape (#1455) * lurker cape * UseDelay * del useDelay * onUse * fix --- .../Entities/Clothing/Cloak/Roles/general.yml | 14 ++++++ .../Entities/Clothing/Cloak/magic_cloak.yml | 40 ++++++++++++++++++ .../Entities/Clothing/Cloak/sort_later.yml | 12 ------ .../_CP14/UniqueLoot/demiplane_loot.yml | 6 +++ .../Cloak/lurker_cape.rsi/equipped-CLOAK.png | Bin 0 -> 1183 bytes .../Clothing/Cloak/lurker_cape.rsi/icon.png | Bin 0 -> 566 bytes .../Clothing/Cloak/lurker_cape.rsi/meta.json | 18 ++++++++ 7 files changed, 78 insertions(+), 12 deletions(-) create mode 100644 Resources/Prototypes/_CP14/Entities/Clothing/Cloak/magic_cloak.yml delete mode 100644 Resources/Prototypes/_CP14/Entities/Clothing/Cloak/sort_later.yml create mode 100644 Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/equipped-CLOAK.png create mode 100644 Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/icon.png create mode 100644 Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/meta.json diff --git a/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/Roles/general.yml b/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/Roles/general.yml index a2fdcf5406..797b516336 100644 --- a/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/Roles/general.yml +++ b/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/Roles/general.yml @@ -174,6 +174,19 @@ - type: Clothing sprite: _CP14/Clothing/Cloak/Roles/General/aristocratic_cloak.rsi +- type: entity + parent: + - CP14ClothingCloakBase + - ClothingSlotBase + id: CP14ClothingCloakMaidArpon + name: maid's apron + description: Cleanliness, orderliness and obedience are the main traits of a good maid. + components: + - type: Sprite + sprite: _CP14/Clothing/Cloak/Roles/General/maid_apron.rsi + - type: Clothing + sprite: _CP14/Clothing/Cloak/Roles/General/maid_apron.rsi + - type: entity parent: CP14ClothingCloakBase id: CP14ClothingCloakHaori @@ -184,3 +197,4 @@ sprite: _CP14/Clothing/Cloak/Roles/General/haori.rsi - type: Clothing sprite: _CP14/Clothing/Cloak/Roles/General/haori.rsi + diff --git a/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/magic_cloak.yml b/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/magic_cloak.yml new file mode 100644 index 0000000000..0a68ef57fe --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/magic_cloak.yml @@ -0,0 +1,40 @@ +- type: entity + parent: CP14ClothingCloakBase + id: CP14ClothingCloakLurkerCape + name: lurker cape + description: A cloak of Lurker leather, made by an unknown craftsman, which equalled the mythical creature's invisibility abilities. + categories: [ DoNotMap ] + suffix: Artifact + components: + - type: Sprite + sprite: _CP14/Clothing/Cloak/lurker_cape.rsi + - type: Clothing + sprite: _CP14/Clothing/Cloak/lurker_cape.rsi + - type: ItemToggle + onActivate: false + onUse: false + - type: ToggleClothing + action: CP14ActionToggleLurkerCape + disableOnUnequip: true + - type: ComponentToggler + parent: true + components: + - type: Stealth + minVisibility: 0.5 + lastVisibility: 0.5 + - type: StealthOnMove + passiveVisibilityRate: -0.5 + movementVisibilityRate: 0.5 + - type: UseDelay + delay: 3 + - type: StaticPrice + price: 400 + +- type: entity + id: CP14ActionToggleLurkerCape + parent: BaseAction + name: Lurker cape + description: Gives the cape wearer the invisibility of the mythical Lurker, but only if standing still. + components: + - type: InstantAction + event: !type:ToggleActionEvent diff --git a/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/sort_later.yml b/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/sort_later.yml deleted file mode 100644 index 5b55f29c60..0000000000 --- a/Resources/Prototypes/_CP14/Entities/Clothing/Cloak/sort_later.yml +++ /dev/null @@ -1,12 +0,0 @@ -- type: entity - parent: - - CP14ClothingCloakBase - - ClothingSlotBase - id: CP14ClothingCloakMaidArpon - name: maid's apron - description: Cleanliness, orderliness and obedience are the main traits of a good maid. - components: - - type: Sprite - sprite: _CP14/Clothing/Cloak/Roles/General/maid_apron.rsi - - type: Clothing - sprite: _CP14/Clothing/Cloak/Roles/General/maid_apron.rsi diff --git a/Resources/Prototypes/_CP14/UniqueLoot/demiplane_loot.yml b/Resources/Prototypes/_CP14/UniqueLoot/demiplane_loot.yml index 6d3edafe51..49f49aa8b2 100644 --- a/Resources/Prototypes/_CP14/UniqueLoot/demiplane_loot.yml +++ b/Resources/Prototypes/_CP14/UniqueLoot/demiplane_loot.yml @@ -54,6 +54,12 @@ entity: CP14LockpickSkeletonArtifact tags: - CP14UniqueSpawnDemiplanetLoot + +- type: uniqueSpawn + id: CP14ClothingCloakLurkerCape + entity: CP14ClothingCloakLurkerCape + tags: + - CP14UniqueSpawnDemiplanetLoot - type: uniqueSpawn id: CP14SteelGobletBottomless diff --git a/Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/equipped-CLOAK.png b/Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/equipped-CLOAK.png new file mode 100644 index 0000000000000000000000000000000000000000..0571b5d90442da5b6aeed6027ea81f4abda00167 GIT binary patch literal 1183 zcmV;Q1YrA#P)Px(SxH1eRCt{2n$K(7NEFAvvlL8R$EwxX*d@7zvQ1qIO;4piF5UlnPs`H1BsrzM zY@jR&v1nZ>BdZP*2M?f9}W8NAUw;OX>561+e6 zgiarS?g4^aJPXcOpc6uVD42@TT z*33{zPR5V$@%X5)54EEiTV6)!ZuGFcjA~VZyETrfAGby1*>bnW@nrl6Gw-~xO&*nv z$S?p5To-}w13)Sf*}xsA4?g>=u)VVzlRY4vR3gv6nRl+0gwh5yI2q^AK;#%f?WGKH zaq$h&B50h1-sT{F@Ze#}W_Fw^->N3zo{l4YfWY@tj_@)ajfMaKr4&Y^Ax5Jijt>9P z86ua*kAF|>bvhl4Mnio0@)bZj8B&IDoPOdbuY@W}6R^CDQkl*M&)WgO;laNEfa$Y+ z93FfC00_~16_5>X@8NKg{GFc;?*03zaltM~-Hjfk3{$h;-RPmJ4l0kqycs74vYX7OPshp6 zN~yxWx=0zOlF02B`M~??pmh(RvT~e$?vdutJ#qEZQCg$aeie9svU{ae?)ZGUW;ew$ zDmOtgTD1N-6LF0hTOK-Vu#A~^p1KE2#5MjaY0vioesq>mS^;E)2VYcj(IOB_r7#iK zSYAf8FF$$E%u?`6r3#N#8jJg@Q-PIB;Ns#Nqzsdw%J>|HV({cSu9U*w-n4RX9rpI7 zxKav(C(rRY3`-MAKGGdThtdShymLg0KsZjn)@-hF`B~MTKlg;=^bsurLD%BO^fm{- ze3stUe@t+{$Y1imG4y5D+Z@C<@ej&2*xuQVDezW&rp(^fna^_9{Iyst7K_DVu~=G0 z_dB5Vr?K1e(WEQRXgvWt#RDO^IUD#`6*ggoMBWSu+Bv2 ziZfbIKoeC+o75F&7~2EZ5j;^xoKf3Jt_8?$FeGf?1K-3Z!S?Q*lP^dq9;~;->KDo;W)_5vz(bY9&BNEb;p7`?XwuNtYmH2q{D8 zz6@*c0bFrWB$inDHMSwqA`nZ_k0+f@qEOMT%vu#tC6;Jg7f^?$;tcHs=!zx&{_D@R xB>^xv33o{>VT8LVmS`O-KCoCU7K`P7#Se!63wVth2s!`&002ovPDHLkV1luyH2nYo literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/icon.png b/Resources/Textures/_CP14/Clothing/Cloak/lurker_cape.rsi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..0fe82184908534f62be954aa8bad02ffacbadfcb GIT binary patch literal 566 zcmV-60?GY}P)Px$@JU2LR9J=Wmd|V2U>wFj?-&#%8WLvEqBk$=9D{YI!Psg4`gW&DVT@i`g!=6#;$`ztRzXLNi0)D-igN&&XrGz$6e0^C<^qw7lX zP{5N2%9Bd^i-c6#18)ZJGxFfZSC1y3UbD8Ii^wYz0BiSA6mxZXp`dsY3YFy{_3N~c znfX&-w=0R03@ld(^_sjE(Ir*wP$^y>0LiBlni_54RsOmO3? zz;J$P2D-g|D$7L31!1s0I*Q`0|0O<(V&?N(l0{g`Va&io@-PUtNb}A;uLXeC8qaIt zc`Zi6Z>49K3Rtd^%+W6Ld>p{=>^lI1x2Fuxz5<|Bd7G6A5NBZ!;J9u^E`$;z&!0Yj zVR?54!0CsNXst`hVUID~