From 261441dd67b2678bf550773134522adaf3861ab5 Mon Sep 17 00:00:00 2001 From: DeLTaAlarm0 Date: Tue, 3 Jun 2025 17:22:24 +0600 Subject: [PATCH] Open/closed table sign (#1275) * Added open/closed sign * Added open/closed sign * Update openclosed_sign.yml * Update openclosed_sign.yml * Update workbench recipes * Update openclosed_sign.yml * Update openclosed_sign.yml * Update misc.yml --- .../Entities/Objects/Misc/openclosed_sign.yml | 84 ++++++++++++++++++ .../Recipes/Workbench/Workbench/misc.yml | 11 +++ .../openclosed_sign.rsi/en_close_sign.png | Bin 0 -> 238 bytes .../Misc/openclosed_sign.rsi/en_open_sign.png | Bin 0 -> 239 bytes .../Misc/openclosed_sign.rsi/meta.json | 26 ++++++ .../openclosed_sign.rsi/ru_close_sign.png | Bin 0 -> 236 bytes .../Misc/openclosed_sign.rsi/ru_open_sign.png | Bin 0 -> 228 bytes .../Misc/openclosed_sign.rsi/table_sign.png | Bin 0 -> 331 bytes 8 files changed, 121 insertions(+) create mode 100644 Resources/Prototypes/_CP14/Entities/Objects/Misc/openclosed_sign.yml create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_close_sign.png create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_open_sign.png create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/meta.json create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_close_sign.png create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_open_sign.png create mode 100644 Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/table_sign.png diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Misc/openclosed_sign.yml b/Resources/Prototypes/_CP14/Entities/Objects/Misc/openclosed_sign.yml new file mode 100644 index 0000000000..76a447a5d7 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Objects/Misc/openclosed_sign.yml @@ -0,0 +1,84 @@ +- type: entity + id: CP14OpenSign + name: flip sign "Open" + description: A small double-sided sign that can be turned over + parent: + - BaseItem + - CP14BaseFlammable + categories: [ ForkFiltered ] + components: + - type: Sprite + noRot: true + sprite: _CP14/Objects/Misc/openclosed_sign.rsi + layers: + - state: table_sign + - state: en_open_sign + map: [signState] + - type: Item + size: Small + - type: Flippable + mirrorEntity: CP14ClosedSign + - type: Appearance + - type: InteractionOutline + - type: CP14LocalizationVisuals + mapStates: + signState: + ru-RU: ru_open_sign + en-US: en_open_sign + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Wood + - type: Destructible + thresholds: + - trigger: + !type:DamageTypeTrigger + damageType: Heat + damage: 6 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - !type:SpawnEntitiesBehavior + spawn: + CP14Ash1: + min: 1 + max: 2 + - trigger: + !type:DamageTrigger + damage: 10 + behaviors: + - !type:DoActsBehavior + acts: ["Destruction"] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - !type:SpawnEntitiesBehavior + spawn: + CP14WoodenPlanks1: + min: 1 + max: 1 + +- type: entity + id: CP14ClosedSign + name: flip sign "Closed" + description: A small double-sided sign that can be turned over + parent: + - CP14OpenSign + categories: [ ForkFiltered ] + components: + - type: Sprite + noRot: true + sprite: _CP14/Objects/Misc/openclosed_sign.rsi + layers: + - state: table_sign + - state: en_close_sign + map: [signState] + - type: Flippable + mirrorEntity: CP14OpenSign + - type: CP14LocalizationVisuals + mapStates: + signState: + ru-RU: ru_close_sign + en-US: en_close_sign diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml index f660b6bb02..44e46aed1d 100644 --- a/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml @@ -264,3 +264,14 @@ protoId: CP14String count: 1 result: CP14LuteInstrument + +- type: CP14Recipe + id: CP14OpenSign + tag: CP14RecipeWorkbench + craftTime: 2 + requirements: + - !type:StackGroupResource + group: WoodenPlanks + count: 2 + result: CP14OpenSign + diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_close_sign.png b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_close_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..fcbbf7d1b2ae61237ab2e457468858a0450505a7 GIT binary patch literal 238 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}D?D8sLn2z= zUQ!flG2mgnaDVRHT~Z~Y;!WHkUs5>q0`yv(u3x!Y5}LN@jYDDfzu?RhCW;IKf`Wf% zz7$<^`38eR&hE(N8(VYDCzU(1GMqV`81#jg!D}1G?Yy8bzK?eQzQ338PJp3)`@|n} z?9Hb=_n*alV0C!G(v;tmy)T+ep5PS~y8klI!Ti$39Ot56mpyuO-kn>_`(pbg-Y@kN m7Ulnn+4Ogns*=(oZF%RAz>C{s1FeB>X7F_Nb6Mw<&;$UdmS5}u literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_open_sign.png b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/en_open_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..39616860c0dfe3a7f289fee5b5e965ea0089d150 GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}D?MEtLn2z= zPE-^+Y{0|fKi4n9qhNx4O1*-DzVQe4N&KvmvuCvKSn_JeT(#0b$NZT(C(9=>IB_UG zIeub!Q-bfyc3I2P8P|NLRq8OvZG6Uf;HSoE8?on$Gv05>TP`(SZ2CF(z=?BqE#Dzu zW+CtDTKp<%Uyk_#C(~W5qCD58{L+mG?yHL5xy|b8$&yF69_-#>R^oPBxtL@Q1M>BZ3`njxgN@xNAcNJY4 literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/meta.json b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/meta.json new file mode 100644 index 0000000000..085724b721 --- /dev/null +++ b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/meta.json @@ -0,0 +1,26 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "copyright": "Created by deenke", + "license": "CC-BY-SA-4.0", + "states": [ + { + "name": "table_sign" + }, + { + "name": "ru_open_sign" + }, + { + "name": "en_open_sign" + }, + { + "name": "ru_close_sign" + }, + { + "name": "en_close_sign" + } + ] +} diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_close_sign.png b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_close_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..758c40dfd45c80776a420bb922ca368b9beaa25f GIT binary patch literal 236 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}%RF5iLn2z= zUNq!8tiZ#1!9O(h^r16TxF>R_JV=q;!4RVn{7mO&#GQpjQE9;_qsI!ot4$+qOM>Ze4$IIqPFp?D5sJ;syRHXj)vfmpHck@(x|qS!)z4*}Q$iB}*EL{| literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_open_sign.png b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/ru_open_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..7889497b5a74a0208b70de63672fa1cd771b14a8 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}^E_P~Ln2z= zUQ!e~tRTR8!GF1MyJL8v;tmHF|F#EAXImFtFf5eNvbr6lCOKo)tp6grbv7_FxVX5~ zFRNnh|GoCjZ5D@BGf5%uvmM#% z7uYV4Wp*gp_Txk5r&8|wruOC+7W=mGzx*pA)W7b%U89-g#hXFTpM>=ly`A%iQ%On5 b>N5*}m0R8Pz{M#*moj*|`njxgN@xNAf7w>h literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/table_sign.png b/Resources/Textures/_CP14/Objects/Misc/openclosed_sign.rsi/table_sign.png new file mode 100644 index 0000000000000000000000000000000000000000..8f2be392c4948d280fe8a4ba4ba0038243ddb61b GIT binary patch literal 331 zcmV-R0kr;!P)Px$1xZ9fR9J=Wl(9<0KoEvMC1N}ih!C(@v^bkoHopH8*jrf$R|X8^?#OY0Sm=b^ zx!rJ$SU4X9vj2qnXJ&_hVHk$-$6PE08|S8%^&J4W*BJo2!#Kxdn&_gvzJKzz*(80E zfyTM1D)Mt1S)|(z$s(d+