From b395a2e8e60cde46149ff00f50b48b0acb415999 Mon Sep 17 00:00:00 2001 From: Beck Date: Sun, 15 Sep 2024 21:57:57 -0700 Subject: [PATCH 1/4] First commit --- .../Spawners/Random/Salvage/tables_loot.yml | 18 +++ .../Entities/Objects/Materials/scrap.yml | 147 ++++++++++++++++++ .../Scrap/generator.rsi/generator_frame.png | Bin 0 -> 378 bytes .../Materials/Scrap/generator.rsi/meta.json | 57 +++++++ .../Materials/Scrap/generator.rsi/nothing.png | Bin 0 -> 102 bytes .../generator.rsi/old_generator_plasma.png | Bin 0 -> 876 bytes .../old_generator_plasma_fuel_leak.png | Bin 0 -> 471 bytes .../Scrap/generator.rsi/rad_dripping.png | Bin 0 -> 433 bytes .../Scrap/generator.rsi/rad_outline.png | Bin 0 -> 323 bytes .../Materials/Scrap/generator.rsi/red_x.png | Bin 0 -> 171 bytes .../Scrap/generator.rsi/uranium_generator.png | Bin 0 -> 729 bytes .../uranium_generator_fuel_tank.png | Bin 0 -> 318 bytes 12 files changed, 222 insertions(+) create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/generator_frame.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/meta.json create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/nothing.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/old_generator_plasma.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/old_generator_plasma_fuel_leak.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_dripping.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_outline.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/red_x.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/uranium_generator.png create mode 100644 Resources/Textures/Objects/Materials/Scrap/generator.rsi/uranium_generator_fuel_tank.png diff --git a/Resources/Prototypes/Entities/Markers/Spawners/Random/Salvage/tables_loot.yml b/Resources/Prototypes/Entities/Markers/Spawners/Random/Salvage/tables_loot.yml index 552b8aae0da321..4f1aa4a4b58057 100644 --- a/Resources/Prototypes/Entities/Markers/Spawners/Random/Salvage/tables_loot.yml +++ b/Resources/Prototypes/Entities/Markers/Spawners/Random/Salvage/tables_loot.yml @@ -49,6 +49,8 @@ - id: SheetSteel10 - id: SheetGlass10 - id: SheetPlastic10 + - id: ScrapGeneratorFuelTank + weight: 0.5 - id: PartRodMetal10 weight: 0.33 - id: MaterialWoodPlank10 @@ -64,6 +66,9 @@ id: SalvageScrapLarge table: !type:GroupSelector children: + - !type:NestedSelector + tableId: RandomGeneratorTable + weight: 2 - id: ScrapAirlock1 - id: ScrapCloset - id: ScrapFirelock1 @@ -251,3 +256,16 @@ children: - id: JetpackBlueFilled - id: JetpackBlackFilled + +- type: entityTable + id: RandomGeneratorTable + table: !type:GroupSelector + children: + - id: ScrapGeneratorPlasmaLeaking + - id: ScrapGeneratorUraniumLeaking + - id: ScrapGeneratorPlasma + weight: 0.5 + - id: ScrapGeneratorUranium + weight: 0.5 + - id: ScrapGeneratorFrame + weight: 0.25 diff --git a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml index 6530e3b17013d7..65c88e6b2ecfd2 100644 --- a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml +++ b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml @@ -26,6 +26,46 @@ tags: - Recyclable +- type: entity + parent: BaseStructure + id: BaseScrapLarge + abstract: true + name: scrap + description: Worthless junk. You could probably get some materials out of it though. + suffix: Scrap + components: + - type: InteractionOutline + - type: Damageable + damageContainer: Inorganic + damageModifierSet: FlimsyMetallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: Tag + tags: + - Recyclable + - type: Transform + anchored: False + noRot: true + - type: Physics + bodyType: Dynamic + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.40,-0.40,0.40,0.40" + density: 200 + mask: + - MachineMask + layer: + - MachineLayer + - type: entity parent: BaseScrap id: ScrapSteel @@ -404,5 +444,112 @@ Glass: 500 # 5 sheets Plastic: 100 # 1 sheet +- type: entity + parent: BaseScrapLarge + id: ScrapGeneratorPlasmaLeaking + name: leaking P.A.C.M.A.N. generator + description: An old looking P.A.C.M.A.N. generator whos plasma tanks started leaking. + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + snapCardinals: true + layers: + - state: old_generator_plasma + - state: old_generator_plasma_fuel_leak + - type: PhysicalComposition + materialComposition: + Steel: 4500 # 45 sheets + Plasma: 3000 # 30 sheets + Plastic: 500 # 5 sheets +- type: entity + parent: BaseScrapLarge + id: ScrapGeneratorPlasma + name: old P.A.C.M.A.N. generator + description: An old looking P.A.C.M.A.N. generator. It's in very poor condition and non functional. + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + layers: + - state: old_generator_plasma + - type: PhysicalComposition + materialComposition: + Steel: 4500 # 45 sheets + Plasma: 500 # 5 sheets + Plastic: 500 # 5 sheets +- type: entity + parent: BaseScrapLarge + id: ScrapGeneratorUraniumLeaking + name: leaking S.U.P.E.R.P.A.C.M.A.N. generator + description: A S.U.P.E.R.P.A.C.M.A.N. generator that appears to have had some kind of catastrophic failure. Its leaking uranium. + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + layers: + - state: uranium_generator + - map: [ "extra" ] + - state: rad_dripping + - state: rad_outline + - type: RandomSprite + available: + - extra: + red_x: "" + nothing: "" + - type: MultiHandedItem + - type: PhysicalComposition + materialComposition: + Steel: 4500 # 45 sheets + Uranium: 3000 # 30 sheets + Plastic: 500 # 5 sheets + +- type: entity + parent: BaseScrapLarge + id: ScrapGeneratorUranium + name: destroyed S.U.P.E.R.P.A.C.M.A.N. generator + description: A S.U.P.E.R.P.A.C.M.A.N. generator that appears to have had some kind of catastrophic failure. + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + layers: + - state: uranium_generator + - map: [ "extra" ] + - type: RandomSprite + available: + - extra: + red_x: "" + nothing: "" + - type: PhysicalComposition + materialComposition: + Steel: 4500 # 45 sheets + Uranium: 500 # 5 sheets + Plastic: 500 # 5 sheets + +- type: entity + parent: BaseScrapLarge + id: ScrapGeneratorFrame + name: generator frame + description: A frame of a P.A.C.M.A.N. or S.U.P.E.R.P.A.C.M.A.N. type generator. Where is the rest of it? + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + layers: + - state: generator_frame + - type: PhysicalComposition + materialComposition: + Steel: 1500 # 15 sheetss + +- type: entity + parent: BaseScrap + id: ScrapGeneratorFuelTank + name: fuel tank + description: A fuel tank from a S.U.P.E.R.P.A.C.M.A.N. type generator. The gauge indicates its got a little fuel left. + components: + - type: Sprite + sprite: Objects/Materials/Scrap/generator.rsi + layers: + - state: uranium_generator_fuel_tank + - type: PhysicalComposition + materialComposition: + Steel: 200 # 2 sheets + Uranium: 300 # 3 sheets diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/generator_frame.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/generator_frame.png new file mode 100644 index 0000000000000000000000000000000000000000..c846c78fb507946c8c50c6806f2c9049253b299f GIT binary patch literal 378 zcmV-=0fqjFP)aHFq)YuHv?hSbfpIy& z)vxUW{GreuwpT9zHZdZ30ft8=U+)1!U|I+GU<`}$oYQRfAhnw2mpp&dt9`A%pk;f0{8>} Ykcu$xCM75U0000>_~KpQU!YP3Pgg&ebxsLQ0CQUy@&Et; literal 0 HcmV?d00001 diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/old_generator_plasma.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/old_generator_plasma.png new file mode 100644 index 0000000000000000000000000000000000000000..0a40e6d2c0480017beb8543e99feba2d3aff3754 GIT binary patch literal 876 zcmV-y1C#uTP)GqG*$=+64wd;KF4@1#Kb*q&B*Z z)TE7BR2b=K+B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Z#eCfe&UDtu>%)=w=H~DDc`)|VCse+|EB9p z>a5jSAAzopr0EObu-~a#s literal 0 HcmV?d00001 diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_dripping.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_dripping.png new file mode 100644 index 0000000000000000000000000000000000000000..3b8f9eb2cd30557d371021ed14f0a070f063a22f GIT binary patch literal 433 zcmeAS@N?(olHy`uVBq!ia0vp^4}e&KgAGV>A1w)GU|_89ba4!+hJ zPpr6v;mU5`jgPL(ep~bI9%F&s{-cKFNe#zW?0gn|fUzJ-lIMeoeRwZE59Qo!L**zT54Po$~SZ zj-14*@V!R6BxV2n{mmEh^N;?@`g*$wwalL^8JX;XuIGih{sFheyxWQf&gYH;qk_TH L)z4*}Q$iB}^3SiU literal 0 HcmV?d00001 diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_outline.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/rad_outline.png new file mode 100644 index 0000000000000000000000000000000000000000..09a4c0826ac078b4e2167d80aa3125ce2d2c2193 GIT binary patch literal 323 zcmeAS@N?(olHy`uVBq!ia0vp^4M42G!3HF6DHW(PFfej?x;TbZ#J!#B&2`9tfmM3X z1U=gh@xr(4_SyQ69AjR!E}7)IfJHMmQ}bod>mwHLdCv#@bW|6(@a0fA7sGT1MiGX2 z3^Mmw0~jip3Tnh17$0yR_!!H;+Mv#GyqpZlhDN44_m{_hewA2U%lBthi z%3p7|Wj34p>-VYVmPh6Fr7bqmbo*vC)S}xS+qW8{`a$o^5>sc7FX~xJevRG zxY?Bb8jMOQ^BsQA%fJ07q%N-J_FRplGlaf8eOa_mgE8&z=9m|cxi(x#+MT57aD9nb b)jRh4GCqp6iKm|d1Bb!W)z4*}Q$iB}kz0I& literal 0 HcmV?d00001 diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/red_x.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/red_x.png new file mode 100644 index 0000000000000000000000000000000000000000..3ec4fd6268312a59c469a49a6116a06c555d3cc1 GIT binary patch literal 171 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJ0#6smkO=p;lN`Ai6nU86mjC%5 z{in~H)p6S0ApV8ZKR!`Zc`1;6^nBN6X;y^^N(R;Q&D^}ItzY>E^Oq>|+y3AFOtQ9O zs#T4w5P)Nkl0-c1WQ;@n-*+PV_AKsdDmq>fGvx?bS}fr%=Y8K9rs$B{)FJEB5rA+YnM|r2 zibA0<5m)RqG=NkpMfrT5YRYzBTKs6YXtVL9Z)|6)H579GjHE^uLbUVqxOn$sR3_HI zGjG%qAhCQ+yi|PkmfGLDG<)hdRjQk`^;H=vjQ3{e{ld}nkuc2!qV%~|?E{F%<5Vh@ z1jI-HCwrZdTwq~{hvc*L%j2VS;f3)5@R4?Nox0twaHi4xHqZ^&k97!vD-Q537zE)! zvkM6TgEd&7I#yN4!<1rnid%d1WKFQhk# z*KaJFgxTPKScBpI9R-&585oXlD4J^kqnh(s<}YPXdAO9{;{g|y#x-B~P5Dd!Va8a6#$vdD2Kq#>DNdOFV z0HXRl;AgiTK>T5|W-E4&0euB<92m$g2z{cu64zmwKWP34;1541bU%Q;(HsB(002ov LPDHLkV1fVuU+q(& literal 0 HcmV?d00001 diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/uranium_generator_fuel_tank.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/uranium_generator_fuel_tank.png new file mode 100644 index 0000000000000000000000000000000000000000..59cf3663bf307063f8486dd99b60f9c320ec2eb9 GIT binary patch literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=hEVFfx0(IEF;HC#Ogx9I!a>&A7)Z z!Gy)l8A4>VHWb%Au8+98u{_E4&c_``I#;H5@HPIs8vWn?_Li9kmngPA^f@fUrfDC) z<7a-{{-g`V*IT>A+p2_f^)7O~zrX)~eN?P^^W7yCZO)b4lAC6oddN3p^IwK$*ClK* zF@b>-Gm1OIENXv!`TzUd{Im~QClYU5GiY@@dvKa#+eh{rg6Z)!NgMdeS-Z Date: Sun, 15 Sep 2024 22:20:42 -0700 Subject: [PATCH 2/4] Forgot the shading! --- Resources/Prototypes/Entities/Objects/Materials/scrap.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml index 65c88e6b2ecfd2..755aeaf4eacbb5 100644 --- a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml +++ b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml @@ -490,7 +490,9 @@ - state: uranium_generator - map: [ "extra" ] - state: rad_dripping + shader: unshaded - state: rad_outline + shader: unshaded - type: RandomSprite available: - extra: From c95dea483359e42122dce23f08dd61c2acd5d103 Mon Sep 17 00:00:00 2001 From: Beck Date: Fri, 20 Sep 2024 23:02:45 -0700 Subject: [PATCH 3/4] tweaked values --- .../Entities/Objects/Materials/scrap.yml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml index 755aeaf4eacbb5..c63f0bdd37d157 100644 --- a/Resources/Prototypes/Entities/Objects/Materials/scrap.yml +++ b/Resources/Prototypes/Entities/Objects/Materials/scrap.yml @@ -458,8 +458,8 @@ - state: old_generator_plasma_fuel_leak - type: PhysicalComposition materialComposition: - Steel: 4500 # 45 sheets - Plasma: 3000 # 30 sheets + Steel: 4000 # 40 sheets + Plasma: 2500 # 25 sheets Plastic: 500 # 5 sheets - type: entity @@ -474,8 +474,8 @@ - state: old_generator_plasma - type: PhysicalComposition materialComposition: - Steel: 4500 # 45 sheets - Plasma: 500 # 5 sheets + Steel: 4000 # 40 sheets + Plasma: 1000 # 10 sheets Plastic: 500 # 5 sheets - type: entity @@ -501,8 +501,8 @@ - type: MultiHandedItem - type: PhysicalComposition materialComposition: - Steel: 4500 # 45 sheets - Uranium: 3000 # 30 sheets + Steel: 4000 # 40 sheets + Uranium: 2500 # 25 sheets Plastic: 500 # 5 sheets - type: entity @@ -523,8 +523,8 @@ nothing: "" - type: PhysicalComposition materialComposition: - Steel: 4500 # 45 sheets - Uranium: 500 # 5 sheets + Steel: 4000 # 40 sheets + Uranium: 1000 # 10 sheets Plastic: 500 # 5 sheets - type: entity @@ -539,7 +539,7 @@ - state: generator_frame - type: PhysicalComposition materialComposition: - Steel: 1500 # 15 sheetss + Steel: 1500 # 15 sheets - type: entity parent: BaseScrap @@ -554,4 +554,4 @@ - type: PhysicalComposition materialComposition: Steel: 200 # 2 sheets - Uranium: 300 # 3 sheets + Uranium: 500 # 5 sheets From 9cc28612eb2796adaec109ceba20fabbb8b9f71d Mon Sep 17 00:00:00 2001 From: Beck Date: Mon, 23 Sep 2024 22:50:37 -0700 Subject: [PATCH 4/4] sprite update --- .../Scrap/generator.rsi/generator_frame.png | Bin 378 -> 393 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Resources/Textures/Objects/Materials/Scrap/generator.rsi/generator_frame.png b/Resources/Textures/Objects/Materials/Scrap/generator.rsi/generator_frame.png index c846c78fb507946c8c50c6806f2c9049253b299f..0914769086d51f18b04057d4c1c9a2cd80cd58f6 100644 GIT binary patch delta 366 zcmV-!0g?Xt0*M2VB!5szL_t(oN9~rsOT$1E$6x0nIB816p+b}8l9s8+^ISz0 zmk$Gwrm19ECYk{Bfne#U7l1g9r6`IH;`jg{e_57CtN;pq*nc&kIhyS@WGi-EaI?5; zAMS7E@##gdY8cPPdKsL`y7`jV<@0YF4hjHt8it6e@~FVD70~PgM($JqUnmrdw(SML zCPpL;FdUg&4*^49P6c={=0UwGWjZ}EzP8(M3Fp^)eSbFZX8$a>FxReqzVJr@KDe4k zEgbF|fZkS>muFu!1j+NwB-{mvqR22*Rn;lt6TqoJa6W6{yskF}APi>$h~{IXuYe7J zR3LHaHFq)YuHv?hSbfpIy&)vxUW{GreuwpT9zHZdZ30ft8=U+)1!U|I+G zU<`}$oYQRfAhnw2mpp&dt9`A%?