Golden toilet (#31049)

* golden toilet

* Destructible

* sprite

* fix

* copyright
This commit is contained in:
Nim
2024-08-15 22:23:59 +03:00
committed by GitHub
parent 03f9dee244
commit 84af71eb7c
19 changed files with 332 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
- type: entity
name: toilet
id: ToiletEmpty
suffix: Empty
id: BaseToilet
parent: [ DisposalUnitBase, SeatBase ]
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
@@ -62,9 +62,6 @@
- MachineMask
layer:
- None
- type: Construction
graph: Toilet
node: toilet
- type: PlungerUse
- type: Appearance
- type: SecretStash
@@ -110,6 +107,17 @@
Open: { state: disposal-open }
Closed: { state: disposal-closed }
- type: entity
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
- type: entity
id: ToiletDirtyWater
parent: ToiletEmpty
@@ -126,3 +134,60 @@
Quantity: 180
- ReagentId: GastroToxin
Quantity: 20
- type: entity
id: ToiletGoldenEmpty
parent: BaseToilet
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
components:
- type: Sprite
sprite: Structures/Furniture/golden_toilet.rsi
- type: StaticPrice
price: 1500
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
params:
volume: -6
- !type:SpawnEntitiesBehavior
spawn:
IngotGold1:
min: 5
max: 5
- type: entity
id: ToiletGoldenDirtyWater
parent: ToiletGoldenEmpty
suffix: Dirty Water, StealTarget
components:
- type: StealTarget
stealGroup: ToiletGoldenDirtyWater
- type: SolutionContainerManager
solutions:
drainBuffer:
maxVol: 100
tank:
maxVol: 500
reagents:
- ReagentId: Water
Quantity: 160
- ReagentId: Gold
Quantity: 20
- ReagentId: GastroToxin
Quantity: 20

View File

@@ -99,6 +99,7 @@
BoozeDispenserStealObjective: 1
AltarNanotrasenStealObjective: 1
PlantRDStealObjective: 1
ToiletGoldenStealObjective: 1
- type: weightedRandom
id: ThiefObjectiveGroupAnimal

View File

@@ -142,8 +142,6 @@
sprite: Objects/Misc/id_cards.rsi
state: default
- type: stealTargetGroup
id: LAMP
name: LAMPS
@@ -344,6 +342,13 @@
sprite: Structures/Furniture/potted_plants.rsi
state: plant-25
- type: stealTargetGroup
id: ToiletGoldenDirtyWater
name: golden toilet
sprite:
sprite: Structures/Furniture/golden_toilet.rsi
state: condisposal
# Thief Animal
- type: stealTargetGroup

View File

@@ -428,6 +428,17 @@
- type: Objective
difficulty: 0.8
- type: entity
parent: BaseThiefStealStructureObjective
id: ToiletGoldenStealObjective
components:
- type: NotJobRequirement
job: Captain
- type: StealCondition
stealGroup: ToiletGoldenDirtyWater
- type: Objective
difficulty: 2
# Animal
- type: entity

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,243 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-NC-SA-3.0",
"copyright": "Made by brainfood1183 (github) for ss14, modified Nimfar11",
"states": [
{
"name": "condisposal",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-open",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-closed",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-up",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-down",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-charging",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "disposal-flush",
"directions": 4,
"delays": [
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
],
[
1.0,
1.0,
1.0,
1.0,
1.0
]
]
},
{
"name": "dispover-charge",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "dispover-full",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "dispover-handle",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
},
{
"name": "dispover-ready",
"directions": 4,
"delays": [
[
1.0
],
[
1.0
],
[
1.0
],
[
1.0
]
]
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 792 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 731 B