From 80d4f3d8f821a0c1fc20b2ad83a74015892ff10e Mon Sep 17 00:00:00 2001 From: TheSecondLord <88201625+TheSecondLord@users.noreply.github.com> Date: Thu, 23 Oct 2025 05:49:18 +0100 Subject: [PATCH] Toilet cistern stashes spawn containing basic loot (#41013) * toilets can have maints loot as a treat * reviews addressed * nobody told me oasis maps a diamond ring in the toilet --- .../Prototypes/Catalog/Fills/Lockers/misc.yml | 80 +++++++++++++++++++ .../Entities/Structures/Furniture/toilet.yml | 24 ++++++ 2 files changed, 104 insertions(+) diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/misc.yml b/Resources/Prototypes/Catalog/Fills/Lockers/misc.yml index d79808f6cd..18c0d00712 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/misc.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/misc.yml @@ -203,3 +203,83 @@ containers: entity_storage: !type:NestedSelector tableId: MaintenanceLockerLoot + +# Intended to very occasionally be useful for prisoners, so mostly functional items instead of fluff + +- type: entityTable + id: ToiletCisternCommonToolsTable + table: !type:GroupSelector + children: + - id: Screwdriver + - id: Wrench + - id: Wirecutter + - id: Welder + - id: ClothingMaskGas + - id: PowerCellSmall + - id: RadioHandheld + - id: Syringe + - id: CableApcStack + - id: Lighter + +- type: entityTable + id: ToiletCisternRareToolsTable + table: !type:GroupSelector + children: + - id: ClothingHandsGlovesColorYellow + - id: DrinkSpaceLube + - id: WelderIndustrial + - id: ClothingHeadHatWeldingMaskFlame + - id: PowerCellMedium + - id: DoubleEmergencyOxygenTankFilled + - id: DoubleEmergencyNitrogenTankFilled + +- type: entityTable + id: ToiletCisternUtilityTable + table: !type:GroupSelector + children: + - id: Brutepack + - id: Ointment + - id: Gauze + - id: ChemistryBottleUnstableMutagen + +- type: entityTable + id: ToiletCisternWeaponsTable + table: !type:GroupSelector + children: + - id: SurvivalKnife + - id: ScalpelShiv + - id: Shiv + - id: SawImprov + - id: HydroponicsToolHatchet + - id: ClothingHandsKnuckleDusters + - id: WeaponFlareGun + +- type: entityTable + id: ToiletCisternSyndicateTable + table: !type:GroupSelector + children: + - id: CyberPen + - id: CigPackSyndicate + - id: SoapSyndie + - id: SyndicatePersonalAI + - id: UplinkLighterBox + +- type: entityTable + id: ToiletCisternLoot + table: !type:GroupSelector + children: + - !type:NestedSelector + weight: 25 + tableId: ToiletCisternCommonToolsTable + - !type:NestedSelector + weight: 8 + tableId: ToiletCisternRareToolsTable + - !type:NestedSelector + weight: 5 + tableId: ToiletCisternUtilityTable + - !type:NestedSelector + weight: 3 + tableId: ToiletCisternWeaponsTable + - !type:NestedSelector + weight: 1 + tableId: ToiletCisternSyndicateTable diff --git a/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml b/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml index 90c450e1c7..ec8fc10fd7 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml @@ -147,6 +147,30 @@ - ReagentId: GastroToxin Quantity: 20 +- type: entity + parent: ToiletEmpty + id: ToiletFilled + suffix: Empty, Random Cistern Loot + components: + - type: EntityTableContainerFill + containers: + stash: !type:NestedSelector + tableId: ToiletCisternLoot + rolls: !type:RangeNumberSelector + range: 0, 1 + +- type: entity + parent: ToiletDirtyWater + id: ToiletDirtyWaterFilled + suffix: Dirty Water, Random Cistern Loot + components: + - type: EntityTableContainerFill + containers: + stash: !type:NestedSelector + tableId: ToiletCisternLoot + rolls: !type:RangeNumberSelector + range: 0, 1 + - type: entity parent: BaseToilet id: ToiletGoldenEmpty -- 2.51.2