From: SurrealShibe <77357653+SurrealShibe@users.noreply.github.com> Date: Fri, 12 Sep 2025 22:47:21 +0000 (-0700) Subject: Toilet fixes: Exception when constructing, proper seat layering (#40313) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=71bcda1feccc5cff360506441e9c7ff02aae7aa6;p=space-station-14.git Toilet fixes: Exception when constructing, proper seat layering (#40313) they call me a plumber the the way i fix da toiler --- diff --git a/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml b/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml index 6616983240..3af5a9d291 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/toilet.yml @@ -1,9 +1,9 @@ - type: entity - name: toilet - id: BaseToilet + abstract: true parent: [ DisposalUnitBase, SeatBase ] + id: BaseToilet + name: toilet description: The HT-451, a torque rotation-based, waste disposal unit for small matter. This one seems remarkably clean. - abstract: true components: - type: Sprite sprite: Structures/Furniture/toilet.rsi @@ -24,8 +24,6 @@ map: [ "enum.DisposalUnitVisualLayers.OverlayFull" ] - state: dispover-handle map: [ "enum.DisposalUnitVisualLayers.OverlayEngaged" ] - - map: [ "DoorVisualState.DoorOpen" ] - - map: [ "SeatVisualState.SeatUp" ] - type: Rotatable - type: Transform noRot: false @@ -107,32 +105,32 @@ utensil: Spoon - type: GenericVisualizer visuals: - enum.ToiletVisuals.SeatVisualState: - SeatVisualState.SeatUp: - SeatUp: { state: disposal-up } - SeatDown: { state: disposal-down } enum.ToolOpenableVisuals.ToolOpenableVisualState: ToolOpenableVisualState.StashOpen: Open: { state: disposal-open } Closed: { state: disposal-closed } + enum.ToiletVisuals.SeatVisualState: + SeatVisualState.SeatUp: + SeatUp: { state: disposal-up } + SeatDown: { state: disposal-down } - type: entity + parent: BaseToilet + id: ToiletEmpty name: toilet description: The HT-451, a torque rotation-based, waste disposal unit for small matter. This one seems remarkably clean. - id: ToiletEmpty - parent: BaseToilet suffix: Empty components: - type: Construction graph: Toilet node: toilet -# so theres not actually any way to replenish the gastrotoxin / gold in these. +# so theres not actually any way to replenish the gastrotoxin / gold in these. # I wouldn't add it to the solutionregeneration comp because that doesn't make a lot of sense imo. # I guess we just need to add shitting? - type: entity - id: ToiletDirtyWater parent: ToiletEmpty + id: ToiletDirtyWater suffix: Dirty Water components: - type: SolutionContainerManager @@ -148,8 +146,8 @@ Quantity: 20 - type: entity - id: ToiletGoldenEmpty parent: BaseToilet + id: ToiletGoldenEmpty name: golden toilet description: The HT-451G is the gold version of the device. It says on the side that it is made of the purest Mercurian gold and a real leather seat. suffix: Empty @@ -184,8 +182,8 @@ max: 5 - type: entity - id: ToiletGoldenDirtyWater parent: ToiletGoldenEmpty + id: ToiletGoldenDirtyWater suffix: Dirty Water, StealTarget components: - type: StealTarget