From 7989b8f77fc9dd5cb8b6f45105109e587a033e8a Mon Sep 17 00:00:00 2001 From: Whatstone <166147148+whatston3@users.noreply.github.com> Date: Sun, 11 Aug 2024 15:53:26 -0400 Subject: [PATCH 01/15] Intercom: disable tool use, make sensitive versions indestructible. (#1848) * Intercom: disassemble/indestructable parents * Intercom: fix Indestructible tags, parent order --- .../Entities/Structures/Wallmounts/intercom.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/intercom.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/intercom.yml index 532af3258be..9489ad6c333 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/intercom.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/intercom.yml @@ -182,7 +182,7 @@ - type: entity id: Intercom - parent: IntercomConstructed + parent: [BaseStructureDisableToolUse, IntercomConstructed] # Frontier: add BaseStructureDisableToolUse suffix: "" components: - type: Sprite @@ -219,7 +219,7 @@ - type: entity id: IntercomCommand - parent: Intercom + parent: [BaseStructureIndestructible, Intercom] # Frontier - added BaseStructureIndestructible suffix: Command, DO NOT MAP # Frontier - Added DO NOT MAP components: - type: ContainerFill @@ -275,7 +275,7 @@ - type: entity id: IntercomSecurity - parent: Intercom + parent: [BaseStructureIndestructible, Intercom] # Frontier - added BaseStructureIndestructible suffix: Security # Frontier - Not adding DO NOT MAP. (Prototype is already matched by "Security" for sec shipyard.) description: An intercom. It's been reinforced with metal from security helmets, making it a bitch-and-a-half to open. components: @@ -325,7 +325,7 @@ - type: entity id: IntercomAll - parent: Intercom + parent: [BaseStructureIndestructible, Intercom] # Frontier - added BaseStructureIndestructible suffix: All, DO NOT MAP # Frontier - Added DO NOT MAP components: - type: ContainerFill From 4aa707ba6eb9f042defdcc9c0c31d76a78743f25 Mon Sep 17 00:00:00 2001 From: FrontierATC Date: Sun, 11 Aug 2024 19:53:51 +0000 Subject: [PATCH 02/15] Automatic Changelog (#1848) --- Resources/Changelog/Changelog.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index c35fc91ee45..eed385fd271 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -6193,3 +6193,9 @@ Entries: message: Observer ghost can now use their own mass scanner to watch ships around. id: 5187 time: '2024-08-11T15:56:44.0000000+00:00' +- author: whatston3 + changes: + - type: Tweak + message: NFSD and Security intercoms can no longer be disassembled. + id: 5188 + time: '2024-08-11T19:53:26.0000000+00:00' From ac6d73c0f366691cb8884b86aade9efc9f7e0d07 Mon Sep 17 00:00:00 2001 From: "Alice \"Arimah\" Heurlin" <30327355+arimah@users.noreply.github.com> Date: Sun, 11 Aug 2024 21:54:33 +0200 Subject: [PATCH 03/15] Add poultry cube boxes! (#1847) Also slightly rebalance the vend price of monkey and variant cube boxes. --- .../Catalog/Cargo/cargo_livestock.yml | 38 ++++++------- .../Entities/Objects/Misc/monkeycube.yml | 5 +- .../_NF/Catalog/Cargo/cargo_livestock.yml | 10 ++++ .../_NF/Catalog/Fills/Crates/npc.yml | 10 ++++ .../_NF/Entities/Objects/Misc/monkeycube.yml | 50 ++++++++++++++++++ .../Objects/Specific/rehydrateable.yml | 21 ++++++++ .../Misc/monkeycube.rsi/box_poultry.png | Bin 0 -> 1271 bytes .../_NF/Objects/Misc/monkeycube.rsi/meta.json | 20 +++++++ .../Misc/monkeycube.rsi/wrapper_chicken.png | Bin 0 -> 324 bytes .../Misc/monkeycube.rsi/wrapper_duck.png | Bin 0 -> 314 bytes 10 files changed, 134 insertions(+), 20 deletions(-) create mode 100644 Resources/Prototypes/_NF/Entities/Objects/Misc/monkeycube.yml create mode 100644 Resources/Prototypes/_NF/Entities/Objects/Specific/rehydrateable.yml create mode 100644 Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/box_poultry.png create mode 100644 Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/meta.json create mode 100644 Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_chicken.png create mode 100644 Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_duck.png diff --git a/Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml b/Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml index cb864d8cd0c..2479d48878d 100644 --- a/Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml +++ b/Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml @@ -31,15 +31,15 @@ category: cargoproduct-category-name-livestock group: market -- type: cargoProduct - id: LivestockChicken - icon: - sprite: Mobs/Animals/chicken.rsi - state: icon-1 - product: CrateNPCChicken - cost: 4000 - category: cargoproduct-category-name-livestock - group: market +# - type: cargoProduct # Frontier - replaced by poultry cube crate +# id: LivestockChicken +# icon: +# sprite: Mobs/Animals/chicken.rsi +# state: icon-1 +# product: CrateNPCChicken +# cost: 4000 +# category: cargoproduct-category-name-livestock +# group: market - type: cargoProduct id: LivestockCrab @@ -52,16 +52,16 @@ category: cargoproduct-category-name-livestock group: market -- type: cargoProduct - id: LivestockDuck - abstract: true # Frontier - icon: - sprite: Mobs/Animals/duck.rsi - state: icon-0 - product: CrateNPCDuck - cost: 4000 - category: cargoproduct-category-name-livestock - group: market +# - type: cargoProduct # Frontier - replaced by poultry cube crate +# id: LivestockDuck +# abstract: true # Frontier +# icon: +# sprite: Mobs/Animals/duck.rsi +# state: icon-0 +# product: CrateNPCDuck +# cost: 4000 +# category: cargoproduct-category-name-livestock +# group: market - type: cargoProduct id: LivestockCorgi diff --git a/Resources/Prototypes/Entities/Objects/Misc/monkeycube.yml b/Resources/Prototypes/Entities/Objects/Misc/monkeycube.yml index ab05db0521c..1f1973fd33f 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/monkeycube.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/monkeycube.yml @@ -13,7 +13,7 @@ state: box - type: StaticPrice price: 20 - vendPrice: 900 # Frontier - 150 per monkey (Meat worth 200) + vendPrice: 960 # Frontier - 120 per monkey (meat worth 540 at a depot) - type: entity parent: BaseItem @@ -67,6 +67,9 @@ - type: Sprite sprite: Objects/Misc/monkeycube.rsi state: box_variant + - type: StaticPrice + price: 20 + vendPrice: 800 # Frontier - 120 per monkey, 80 per kobold (meat worth 450 at a depot) - type: entity parent: MonkeyCubeWrapped diff --git a/Resources/Prototypes/_NF/Catalog/Cargo/cargo_livestock.yml b/Resources/Prototypes/_NF/Catalog/Cargo/cargo_livestock.yml index c9dde6c4d9e..192242e6ac8 100644 --- a/Resources/Prototypes/_NF/Catalog/Cargo/cargo_livestock.yml +++ b/Resources/Prototypes/_NF/Catalog/Cargo/cargo_livestock.yml @@ -8,3 +8,13 @@ cost: 10000 category: cargoproduct-category-name-livestock group: market + +- type: cargoProduct + id: LivestockPoultryCube + icon: + sprite: _NF/Objects/Misc/monkeycube.rsi + state: box_poultry + product: CrateNPCPoultryCube + cost: 2000 + category: cargoproduct-category-name-livestock + group: market diff --git a/Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml b/Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml index 5bc092f289b..93bb8c09471 100644 --- a/Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml +++ b/Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml @@ -73,3 +73,13 @@ - type: entity id: PetCarrierNPCEmotionalSupportSafe parent: [PetCarrier, FillNPCEmotionalSupportSafe] + +- type: entity + id: CrateNPCPoultryCube + parent: CrateGenericSteel + name: poultry cube crate + description: A crate containing single box of poultry cubes. + components: + - type: StorageFill + contents: + - id: PoultryCubeBox diff --git a/Resources/Prototypes/_NF/Entities/Objects/Misc/monkeycube.yml b/Resources/Prototypes/_NF/Entities/Objects/Misc/monkeycube.yml new file mode 100644 index 00000000000..2c2e82ba147 --- /dev/null +++ b/Resources/Prototypes/_NF/Entities/Objects/Misc/monkeycube.yml @@ -0,0 +1,50 @@ +- type: entity + parent: BoxCardboard + name: poultry cube box + id: PoultryCubeBox + description: Drymate brand poultry cubes, chicken and duck. Just add water! + components: + - type: StorageFill + contents: + - id: ChickenCubeWrapped + amount: 6 + - id: DuckCubeWrapped + amount: 2 + - type: Sprite + sprite: _NF/Objects/Misc/monkeycube.rsi + state: box_poultry + - type: StaticPrice + price: 20 + vendPrice: 800 # Meat only worth 180 at a depot, but can produce eggs and more poultry for free + +- type: entity + parent: MonkeyCubeWrapped + name: chicken cube + suffix: Wrapped + id: ChickenCubeWrapped + description: Unwrap this to get a chicken cube. + components: + - type: SpawnItemsOnUse + items: + - id: ChickenCube + sound: + path: /Audio/Effects/unwrap.ogg + - type: Sprite + sprite: _NF/Objects/Misc/monkeycube.rsi + state: wrapper_chicken + +- type: entity + parent: MonkeyCubeWrapped + name: duck cube + suffix: Wrapped + id: DuckCubeWrapped + description: Unwrap this to get a duck cube. + components: + - type: SpawnItemsOnUse + items: + - id: DuckCube + sound: + path: /Audio/Effects/unwrap.ogg + - type: Sprite + sprite: _NF/Objects/Misc/monkeycube.rsi + state: wrapper_duck diff --git a/Resources/Prototypes/_NF/Entities/Objects/Specific/rehydrateable.yml b/Resources/Prototypes/_NF/Entities/Objects/Specific/rehydrateable.yml new file mode 100644 index 00000000000..7619a0c71f7 --- /dev/null +++ b/Resources/Prototypes/_NF/Entities/Objects/Specific/rehydrateable.yml @@ -0,0 +1,21 @@ +- type: entity + parent: MonkeyCube + id: ChickenCube + name: chicken cube + components: + - type: Rehydratable + possibleSpawns: + - MobChicken + - MobChicken1 + - MobChicken2 + +- type: entity + parent: MonkeyCube + id: DuckCube + name: duck cube + components: + - type: Rehydratable + possibleSpawns: + - MobDuckMallard + - MobDuckWhite + - MobDuckBrown diff --git a/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/box_poultry.png b/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/box_poultry.png new file mode 100644 index 0000000000000000000000000000000000000000..db43b5812c536c15d3ac027cb8d72f113dcd002a GIT binary patch literal 1271 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz$r9IylHmNblJdl&R0hYC{G?O` z&)mfH)S%SFl*+=BsWuD@%u1Od5hW46K32*3xq68pHF_1f1wh>l3^w)^1&PVosU-?Y zsp*+{wo31J?^jaDOtDo8H}y5}EpSfF$n>ZxN)4{^3rViZPPR-@vbR&PsjvbXkegbP zs8ErclUHn2VXFi-*9yo63F|81#=KlDb#X~hD#E>34K5C;EJ)Q4 zN-fSWElLJPT$(b-ssbzLqSVBa{GyQj{2W*)24v)y2=9ZF3nBND}m`vf$KFkz^NCM6mkoIHoK%2WtOF;xE1B+DuBIgm5JLeE;!AD z>P^Av79&@jdi8;h(Fa8=QbfaqfT;(>geO}d2cGa#^MI+n2$-z*=xq~YU|`Jlba4!+ zxRvzh|9|_#4oqrojBJbfBuWo7SU0pzXkwn*U3kiNXBhXn!$whOdv;v0m~uSm8ADE+ zZf7_{w2sn=vkJ@J9w>OraYWIOTi)PNvB6P3hwV2sO0^H02rU zvm0LwbOgTe~DWM4f?a;aA literal 0 HcmV?d00001 diff --git a/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/meta.json b/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/meta.json new file mode 100644 index 00000000000..3f145068680 --- /dev/null +++ b/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/meta.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "box_poultry edited by Arimah from monkeycubebox from cev-eris at https://github.com/discordia-space/CEV-Eris/raw/9c980cb9bc84d07b1c210c5447798af525185f80/icons/obj/food.dmi. wrapper_chicken and wrapper_duck made by Stagnation for Frontier Station 14.", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "box_poultry" + }, + { + "name": "wrapper_chicken" + }, + { + "name": "wrapper_duck" + } + ] +} diff --git a/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_chicken.png b/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_chicken.png new file mode 100644 index 0000000000000000000000000000000000000000..a320eac82580c7ef59a333a034db8c2d88640268 GIT binary patch literal 324 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;6JY5_^BHWWDSQjUV^fUz;EIDYyd-=Zt&(le)5(`Z{6OuO@-?+5h+rIIq zf`ZK1;}7C@Pfz(gV}Z#wi93Fo#!m&qsRa1pS(VV~RP0i`=nr`}E zS6dXplN5g5+I`YY73+k|R$YsEl{;=8s0r|B&}m}~l65E&aVeK!i)QfVKG6_zT9a+T zg$!S#MJr_B&cDRS%*+s7A2M??mlrqCe|)JCo@u_m3|c@o2M~k6rQpdR%G1@)Wt~$( F69D`fb0h!& literal 0 HcmV?d00001 diff --git a/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_duck.png b/Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/wrapper_duck.png new file mode 100644 index 0000000000000000000000000000000000000000..a8909a6433ecbbb254c17a10f572ddf3590eb143 GIT binary patch literal 314 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6<1JY5_^BHWWDSQjUV^fUz;EIIh|^Yj1B22;Gn5?U^)FwR)IXV0F5f6vd) zKe%P#LdBEMCaz&jvD|g^L`{(FL6)VRZ1?xoGDm;;^wfL9QH7ev$9N6?zr4IWAoK|H zBv}TgUqX`)n4D3Z!Z1lTVWmlX Date: Sun, 11 Aug 2024 19:54:58 +0000 Subject: [PATCH 04/15] Automatic Changelog (#1847) --- Resources/Changelog/Changelog.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Resources/Changelog/Changelog.yml b/Resources/Changelog/Changelog.yml index eed385fd271..4ad3bb7b975 100644 --- a/Resources/Changelog/Changelog.yml +++ b/Resources/Changelog/Changelog.yml @@ -6199,3 +6199,13 @@ Entries: message: NFSD and Security intercoms can no longer be disassembled. id: 5188 time: '2024-08-11T19:53:26.0000000+00:00' +- author: arimah + changes: + - type: Add + message: >- + You can now find poultry cube crates in cargo, with six chicken cubes + and two duck cubes. Just unwrap and add water! + - type: Remove + message: Chicken and duck crates are no longer available for purchase. + id: 5189 + time: '2024-08-11T19:54:33.0000000+00:00' From 42916744eec2879af8a923a6cfd697f0a1557b55 Mon Sep 17 00:00:00 2001 From: Whatstone <166147148+whatston3@users.noreply.github.com> Date: Sun, 11 Aug 2024 22:53:56 -0400 Subject: [PATCH 05/15] Add Paradise fire extinguisher with attribution (#1851) --- .../Catalog/Cargo/cargo_emergency.yml | 2 +- .../Objects/Misc/fire_extinguisher.yml | 4 +-- .../Construction/Graphs/furniture/altars.yml | 2 +- .../fire_extinguisher_closed.png | Bin 0 -> 303 bytes .../fire_extinguisher_open.png | Bin 0 -> 315 bytes .../fire_extinguisher.rsi/inhand-left.png | Bin 0 -> 284 bytes .../fire_extinguisher.rsi/inhand-right.png | Bin 0 -> 326 bytes .../Misc/fire_extinguisher.rsi/meta.json | 26 ++++++++++++++++++ 8 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/fire_extinguisher_closed.png create mode 100644 Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/fire_extinguisher_open.png create mode 100644 Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-left.png create mode 100644 Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-right.png create mode 100644 Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/meta.json diff --git a/Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml b/Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml index d5ecc285ceb..66db9df98f6 100644 --- a/Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml +++ b/Resources/Prototypes/Catalog/Cargo/cargo_emergency.yml @@ -13,7 +13,7 @@ id: EmergencyFire abstract: true # Frontier icon: - sprite: Objects/Misc/fire_extinguisher.rsi + sprite: _NF/Objects/Misc/fire_extinguisher.rsi # Frontier state: fire_extinguisher_closed product: CrateEmergencyFire cost: 1500 diff --git a/Resources/Prototypes/Entities/Objects/Misc/fire_extinguisher.yml b/Resources/Prototypes/Entities/Objects/Misc/fire_extinguisher.yml index 89b421c97d4..0e1bf5d43e9 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/fire_extinguisher.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/fire_extinguisher.yml @@ -5,12 +5,12 @@ description: It extinguishes fires. components: - type: Sprite - sprite: Objects/Misc/fire_extinguisher.rsi + sprite: _NF/Objects/Misc/fire_extinguisher.rsi # Frontier layers: - state: fire_extinguisher_closed map: [ "enum.ToggleVisuals.Layer" ] - type: Item - sprite: Objects/Misc/fire_extinguisher.rsi + sprite: _NF/Objects/Misc/fire_extinguisher.rsi # Frontier size: Normal - type: SolutionContainerManager solutions: diff --git a/Resources/Prototypes/_NF/Recipes/Construction/Graphs/furniture/altars.yml b/Resources/Prototypes/_NF/Recipes/Construction/Graphs/furniture/altars.yml index 7f99133ca5c..0fe0c34b382 100644 --- a/Resources/Prototypes/_NF/Recipes/Construction/Graphs/furniture/altars.yml +++ b/Resources/Prototypes/_NF/Recipes/Construction/Graphs/furniture/altars.yml @@ -66,7 +66,7 @@ name: fire extinguisher store: altar_component icon: - sprite: Objects/Misc/fire_extinguisher.rsi + sprite: _NF/Objects/Misc/fire_extinguisher.rsi # Frontier state: fire_extinguisher_closed - component: ExtinguishOnInteract # Not exclusive to candles I believe, but it's something that narrows down the list name: candle (any) diff --git a/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/fire_extinguisher_closed.png b/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/fire_extinguisher_closed.png new file mode 100644 index 0000000000000000000000000000000000000000..b84389a06bd18e2ef60cf5e4bc94fde649b421bf GIT binary patch literal 303 zcmV+~0nq-5P)h%44 zdwb>O<+irASy@>&H#$*NRW~;`At5GD0UV44BI$H=x&;NL007xIIOa`FiHC=UiIls+ z$>iti!sI6h00001bW%=J06^y0W&i*Hp-DtRR5*>b($NmXAP5Ces3Kz3t@{7}I@;}R zVv{!I^`2Zv6yTvjJc*YX(0FnFB%b7xn25kTyPZM^j1CdUf&#_J=>6h&xPw9jU}o=7 zdj{kHB1w&?_`hTavgTY$siKNUH%MOBT5A#GN(C=%$kzeIDcCD+19}>S_Xz;leqb{} zJ3upmwAOoX&0Hb*0QL>@xA=h%44 zdwb>O<+irASy@>&H##>rH&IkoAt5GD0UV44BI$H=x&;NL007xIIOa`FiHC=UiIls+ z$>itiGCWwu00001bW%=J06^y0W&i*Htw}^dR5*>b(%lZjAP5Cuse;A7t@i!jb!d07 zWTMHMaeKbt3DKB84ZtGaWv^8FPC9gOqoj!TAM{*A2w|50GA|%_3Obz{x$^)3 N002ovPDHLkV1iTDfUN)k literal 0 HcmV?d00001 diff --git a/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-left.png b/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-left.png new file mode 100644 index 0000000000000000000000000000000000000000..fb697da3566cbff8c83c5fb85a8fd37c93211b3c GIT binary patch literal 284 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=k3C%+Ln`LHy|t0|kbyw!L-uLa z-x4&-JUqQm3-vtoosf~a>BvO^LB$C&H85P8wNd%I@-DKEoY=CdBuG2M&M++VT# ze!S~iHjkhBp>Llq-NpMth&LnFA^Y9^+kgCPOHO=0#|$x_fnopJl==guMqBRZo=MbK z2(SOm%va60^UgQ+JAMvbAFm#s{)Y8Q(Ovl!hB9C0J>U84@86OcY+Ljem~MZ+@~X`I czl;k`@Y-kuSKmF&c@AWxr>mdKI;Vst0LVXiZvX%Q literal 0 HcmV?d00001 diff --git a/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-right.png b/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/inhand-right.png new file mode 100644 index 0000000000000000000000000000000000000000..e06a534c249a612e6885170923ec12052bd1726d GIT binary patch literal 326 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D%z89ZGaLn`LH zy=BPPI%*G4w>1fRrj>sIdbIMF>QfQIvi~p31Z=4PyP#WJ2gCH-9B?F z&>#?aaPs4Ztv4iVemsfgon!1d&9iJ@%+#yL?cZzWfBu|y_H15e)^?Mvhb(`8RZN*A zdd}8p`=@Wu-u+_o3Hmg(<)g|gNvG=!|K2{8p8MW(3!4rTbBC*k*d_wJv z=s1Wi3=Gc_@~YW>^<=d Q`XGxuUHx3vIVCg!0Jvd|4*&oF literal 0 HcmV?d00001 diff --git a/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/meta.json b/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/meta.json new file mode 100644 index 00000000000..6f4150e8f7c --- /dev/null +++ b/Resources/Textures/_NF/Objects/Misc/fire_extinguisher.rsi/meta.json @@ -0,0 +1,26 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from https://github.com/tgstation/tgstation at commit 9bebd81ae0b0a7f952b59886a765c681205de31f", + "copyright": "fire_extinguisher_open, fire_extinguisher_open taken from Paradise at commit https://github.com/ParadiseSS13/Paradise/commit/fd1e9ec033f1af410bb31e883ce0b19902d305c3", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "fire_extinguisher_open" + }, + { + "name": "fire_extinguisher_closed" + }, + { + "name": "inhand-right", + "directions": 4 + }, + { + "name": "inhand-left", + "directions": 4 + } + ] +} From 5afd8c53c0a886b95c2f593a3879fc07ba53fc10 Mon Sep 17 00:00:00 2001 From: GreaseMonk <1354802+GreaseMonk@users.noreply.github.com> Date: Mon, 12 Aug 2024 21:11:25 +0200 Subject: [PATCH 06/15] Add currency notation (#1768) * Implement currency string notation * Darin fix * Update Resources/Locale/en-US/_NF/store/uplink-catalog.ftl Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Prototypes/_NF/Catalog/Fills/Items/briefcases.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Content.Client/Cargo/UI/CargoConsoleMenu.xaml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Changelog/Changelog.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Prototypes/_NF/Catalog/Fills/Items/briefcases.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Prototypes/_NF/Catalog/Fills/Items/briefcases.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Prototypes/_NF/Catalog/Fills/Items/briefcases.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Update Resources/Prototypes/_NF/Catalog/Fills/Items/briefcases.yml Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> * Currency-specific conversion functions --------- Co-authored-by: Whatstone <166147148+whatston3@users.noreply.github.com> Co-authored-by: Whatstone Co-authored-by: Dvir <39403717+dvir001@users.noreply.github.com> Co-authored-by: Checkraze <71046427+Cheackraze@users.noreply.github.com> --- Content.Client/Bank/UI/BankATMMenu.xaml.cs | 7 +- .../Bank/UI/StationBankATMMenu.xaml.cs | 7 +- Content.Client/Bank/UI/WithdrawBankATMMenu.cs | 5 +- Content.Client/Cargo/UI/BountyEntry.xaml.cs | 3 +- Content.Client/Cargo/UI/CargoConsoleMenu.xaml | 2 +- .../Cargo/UI/CargoConsoleMenu.xaml.cs | 7 +- .../Cargo/UI/CargoPalletMenu.xaml.cs | 3 +- .../Lobby/UI/Loadouts/LoadoutWindow.xaml.cs | 6 +- Content.Client/PDA/PdaMenu.xaml.cs | 5 +- .../Shipyard/UI/ShipyardConsoleMenu.xaml.cs | 9 ++- Content.Client/Store/Ui/StoreMenu.xaml.cs | 3 +- .../Store/Ui/StoreWithdrawWindow.xaml.cs | 3 +- .../UI/VendingMachineMenu.xaml.cs | 9 ++- .../BountyContractUiFragmentListEntry.xaml.cs | 4 +- .../UI/ContrabandPalletMenu.xaml.cs | 4 +- .../_NF/Pirate/UI/PirateBountyEntry.xaml.cs | 3 +- .../Cargo/Systems/CargoSystem.Bounty.cs | 3 +- .../_NF/Cargo/CargoSystem.PirateBounty.cs | 5 +- .../Preferences/HumanoidCharacterProfile.cs | 12 +-- .../_NF/Bank/BankSystemExtensions.cs | 80 +++++++++++++++++++ Resources/Changelog/Changelog.yml | 12 +-- .../en-US/_NF/bank/bank-ATM-component.ftl | 2 - .../Locale/en-US/_NF/loadouts/loadouts.ftl | 4 +- .../humanoid-character-profile.ftl | 2 - .../shipyard/shipyard-console-component.ftl | 1 - .../Locale/en-US/_NF/store/uplink-catalog.ftl | 2 +- .../en-US/cargo/cargo-bounty-console.ftl | 4 +- .../en-US/cargo/cargo-console-component.ftl | 1 - .../_NF/Catalog/Fills/Items/briefcases.yml | 10 +-- 29 files changed, 154 insertions(+), 64 deletions(-) create mode 100644 Content.Shared/_NF/Bank/BankSystemExtensions.cs delete mode 100644 Resources/Locale/en-US/_NF/preferences/humanoid-character-profile.ftl diff --git a/Content.Client/Bank/UI/BankATMMenu.xaml.cs b/Content.Client/Bank/UI/BankATMMenu.xaml.cs index e60d878fa85..d72ab5315d9 100644 --- a/Content.Client/Bank/UI/BankATMMenu.xaml.cs +++ b/Content.Client/Bank/UI/BankATMMenu.xaml.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -27,14 +28,14 @@ public BankATMMenu() public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetDeposit(int amount) { DepositButton.Disabled = amount <= 0; if (amount >= 0) // Valid - DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + DepositLabel.Text = BankSystemExtensions.ToSpesoString(amount); else DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-error"); } @@ -59,6 +60,6 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } } diff --git a/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs b/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs index bbc0e9a55d2..bee11b750fb 100644 --- a/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs +++ b/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -41,14 +42,14 @@ private void OnReasonSelected(OptionButton.ItemSelectedEventArgs args) } public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetDeposit(int amount) { DepositButton.Disabled = amount <= 0; if (amount >= 0) // Valid - DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + DepositLabel.Text = BankSystemExtensions.ToSpesoString(amount); else DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-error"); } @@ -74,7 +75,7 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } private void OnDescChanged(LineEdit.LineEditEventArgs args) diff --git a/Content.Client/Bank/UI/WithdrawBankATMMenu.cs b/Content.Client/Bank/UI/WithdrawBankATMMenu.cs index 4a5cbd41a55..78f61ec94e5 100644 --- a/Content.Client/Bank/UI/WithdrawBankATMMenu.cs +++ b/Content.Client/Bank/UI/WithdrawBankATMMenu.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -26,7 +27,7 @@ public WithdrawBankATMMenu() public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetEnabled(bool enabled) @@ -44,6 +45,6 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } } diff --git a/Content.Client/Cargo/UI/BountyEntry.xaml.cs b/Content.Client/Cargo/UI/BountyEntry.xaml.cs index 027d7b3e801..acc6aa36548 100644 --- a/Content.Client/Cargo/UI/BountyEntry.xaml.cs +++ b/Content.Client/Cargo/UI/BountyEntry.xaml.cs @@ -1,4 +1,5 @@ using Content.Client.Message; +using Content.Shared._NF.Bank; using Content.Shared.Cargo; using Content.Shared.Cargo.Prototypes; using Content.Shared.Random; @@ -40,7 +41,7 @@ public BountyEntry(CargoBountyData bounty, TimeSpan untilNextSkip) ("item", Loc.GetString(entry.Name)))); } ManifestLabel.SetMarkup(Loc.GetString("bounty-console-manifest-label", ("item", string.Join(", ", items)))); - RewardLabel.SetMarkup(Loc.GetString("bounty-console-reward-label", ("reward", bountyPrototype.Reward))); + RewardLabel.SetMarkup(Loc.GetString("bounty-console-reward-label", ("reward", BankSystemExtensions.ToSpesoString(bountyPrototype.Reward)))); // Frontier: bountyPrototype.Reward