Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new sprites, fixed some code for shelters #666

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
- type: Sprite
state: bed_bunk
snapCardinals: true

- type: Strap
position: Down
rotation: -270
buckleOffset: 0,0.3
maxBuckleDistance: 0.3

- type: entity
parent: N14Bed
id: N14BedDirty
Expand All @@ -30,7 +35,7 @@
- type: Sprite
state: bed_dirty
snapCardinals: true

- type: entity
parent: N14Bed
id: N14BedWood
Expand All @@ -51,8 +56,13 @@
components:
- type: Sprite
state: bed_wood_bunk

# TODO: Reduce the healing rate of all these at some point compared to a proper bed.
- type: Strap
position: Down
rotation: -270
buckleOffset: 0,0.3
maxBuckleDistance: 0.3

# TODO: Reduce the healing rate of all these at some point compared to a proper bed.
- type: entity
id: N14Bedroll
parent: RollerBed
Expand Down Expand Up @@ -113,7 +123,7 @@
components:
- type: Foldable
folded: true

- type: entity
parent: N14Bed
id: N14BedMattress0
Expand All @@ -125,7 +135,7 @@
- type: Construction
graph: N14Bed
node: mattress

- type: entity
parent: N14Bed
id: N14BedMattressDirty1
Expand All @@ -135,7 +145,7 @@
- type: Sprite
state: mattress1
snapCardinals: true

- type: entity
parent: N14BedMattressDirty1
id: N14BedMattressDirty2
Expand All @@ -144,7 +154,7 @@
components:
- type: Sprite
state: mattress2

- type: entity
parent: N14BedMattressDirty1
id: N14BedMattressDirty3
Expand All @@ -153,7 +163,7 @@
components:
- type: Sprite
state: mattress3

- type: entity
parent: N14BedMattressDirty1
id: N14BedMattressDirty4
Expand All @@ -162,7 +172,7 @@
components:
- type: Sprite
state: mattress4

- type: entity
parent: N14BedMattressDirty1
id: N14BedMattressDirty5
Expand Down
21 changes: 21 additions & 0 deletions Resources/Prototypes/_Nuclear14/Entities/Structures/Misc/radio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- type: entity
parent: BaseStructure
id: N14RadioTower
name: radio tower
description: An old prewar radio tower, due to its simple design, it still works..
components:
- type: Sprite
sprite: _Nuclear14/Structures/Misc/radio.rsi
state: radiotower
drawdepth: Walls
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-1.0,-2.0,1.0,-1.0"
density: 60
mask:
- MachineMask
layer:
- LowImpassable
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- type: entity
parent: CryogenicSleepUnit
parent: BaseStructure
id: N14PulowskiShelterNew
name: Pulowski Preservation Shelter
description: "Pulowski: Nuclear protection on a budget!"
Expand All @@ -21,11 +21,11 @@
containerId: storage
- type: ExitContainerOnMove
containerId: storage
- type: PointLight
color: Lime
radius: 1.5
energy: 0.5
castShadows: false
# - type: PointLight
# color: blue
# radius: 1.5
# energy: 0.5
# castShadows: false
- type: ContainerContainer
containers:
storage: !type:ContainerSlot
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
- type: entity
parent: BaseStructure
id: N14WreckTractor
name: wrecked tractor
description: an old fusion tractor
components:
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-1.2,-0.3,1.1,0.4"
density: 60
mask:
- MachineMask
layer:
- MidImpassable
- LowImpassable
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 5
N14ScrapSteel1:
min: 3
max: 10
N14ScrapLead1:
min: 1
max: 4
- !type:EmptyAllContainersBehaviour
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- type: Sprite
sprite: _Nuclear14/Structures/Misc/tractors.rsi
layers:
- state: redtractor


Loading
Loading