Skip to content

Commit

Permalink
Plastitanium Windows (#839)
Browse files Browse the repository at this point in the history
* Update plastitanium.yml

* Harder walls

* Plastwalls but stronger

* Update plastitanium.yml
dvir001 authored Jan 7, 2024
1 parent eb63afa commit 913ef14
Showing 3 changed files with 120 additions and 11 deletions.
34 changes: 23 additions & 11 deletions Resources/Prototypes/Entities/Structures/Windows/plastitanium.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
- type: entity
id: PlastitaniumWindow
name: plastitanium window
parent: Window
parent: PlastitaniumWindowIndestructible # Frontier - Change to ReinforcedWindow
suffix: "" # Frontier
components:
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/plastitanium_window.rsi
- type: Icon
sprite: Structures/Windows/plastitanium_window.rsi
# - type: Sprite
# drawdepth: WallTops
# sprite: Structures/Windows/plastitanium_window.rsi
# - type: Icon
# sprite: Structures/Windows/plastitanium_window.rsi
- type: Damageable
damageContainer: Inorganic
damageModifierSet: RGlass
@@ -33,14 +34,25 @@
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: IconSmooth
base: plwindow
- type: Appearance
# - type: IconSmooth
# base: plwindow
# - type: Appearance
- type: DamageVisuals
thresholds: [4, 8, 12]
damageDivisor: 36
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
- type: StaticPrice
price: 65
# - type: StaticPrice
# price: 65
- type: Construction # Frontier
graph: Plastitanium
node: plastitaniumWindow
- type: Repairable
- type: ExaminableDamage
messages: WindowMessages
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Effects/glass_hit.ogg"
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
- type: entity
id: PlastitaniumWindowIndestructible
name: plastitanium window
parent: BaseStructure
suffix: Indestructible
placement:
mode: SnapgridCenter
snap:
- Window
components:
- type: WallMount
arc: 360 # interact despite grilles
- type: Tag
tags:
- ForceFixRotations
- Window
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/plastitanium_window.rsi
- type: Icon
sprite: Structures/Windows/plastitanium_window.rsi
state: full
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb {}
mask:
- FullTileMask
layer:
- GlassLayer
- type: Airtight
- type: IconSmooth
key: walls
base: plwindow
- type: InteractionPopup
interactSuccessString: comp-window-knock
messagePerceivedByOthers: comp-window-knock
interactSuccessSound:
path: /Audio/Effects/glass_knock.ogg
- type: Appearance
- type: StaticPrice
price: 65
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
- type: constructionGraph
id: Plastitanium
start: start
graph:
- node: start
edges:
- to: plastitaniumWindow
steps:
- material: UraniumGlass
amount: 2
doAfter: 2

- node: plastitaniumWindow
entity: PlastitaniumWindow
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetRGlass1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Welding
doAfter: 5
- tool: Screwing
doAfter: 2
- tool: Prying
doAfter: 3
- tool: Welding
doAfter: 5
- tool: Screwing
doAfter: 2
- tool: Anchoring
doAfter: 3
- tool: Cutting
doAfter: 1
- tool: Screwing
doAfter: 1
- tool: Welding
doAfter: 5
- tool: Prying
doAfter: 1
- tool: Anchoring
doAfter: 1
- tool: Welding
doAfter: 10
- tool: Prying
doAfter: 1
- tool: Screwing
doAfter: 1
- tool: Cutting
doAfter: 1

0 comments on commit 913ef14

Please sign in to comment.