Skip to content

Commit

Permalink
Diagonal Bordered Windows (cosmatic-drift-14#203)
Browse files Browse the repository at this point in the history
* Bordered Diagonals

* Graph

* Hopefully fix the accidental window change
  • Loading branch information
Nairodian authored Mar 23, 2024
1 parent db3a71a commit 2aa8e87
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,48 @@
- type: Construction
graph: BorderedWindow
node: borderedWindow

- type: entity
parent: Window
id: BorderedWindowDiagonal
suffix: diagonal
placement:
mode: SnapgridCenter
snap:
- Window
components:
- type: Sprite
drawdepth: WallTops
sprite: _CD/Structures/Windows/window_bordered_diagonal.rsi
state: state0
- type: IconSmooth
mode: Diagonal
key: windows
base: state
- type: Icon
sprite: _CD/Structures/Windows/window_bordered_diagonal.rsi
state: state0
- type: Fixtures
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer
- type: Airtight
noAirWhenFullyAirBlocked: false
airBlockedDirection:
- South
- East
- type: DamageVisuals
damageOverlay:
sprite: Structures/Windows/cracks_diagonal.rsi
- type: Construction
graph: BorderedWindowDiagonal
node: borderedWindowDiagonal
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,33 @@
doAfter: 1
- tool: Anchoring
doAfter: 2

- type: constructionGraph
id: BorderedWindowDiagonal
start: start
graph:
- node: start
edges:
- to: borderedWindowDiagonal
steps:
- material: Glass
amount: 2
doAfter: 3
- material: Steel
amount: 1
doAfter: 2

- node: borderedWindowDiagonal
entity: BorderedWindowDiagonal
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: SheetGlass1
amount: 2
- !type:DeleteEntity {}
steps:
- tool: Screwing
doAfter: 1
- tool: Anchoring
doAfter: 2
18 changes: 18 additions & 0 deletions Resources/Prototypes/_CD/Recipes/Construction/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,21 @@
objectType: Structure
placementMode: SnapgridCenter
canRotate: false

- type: construction
name: diagonal bordered window
id: BorderedWindowDiagonal
graph: BorderedWindowDiagonal
startNode: start
targetNode: borderedWindowDiagonal
category: construction-category-structures
description: Clear, with a trim.
canBuildInImpassable: true
conditions:
- !type:EmptyOrWindowValidInTile
- !type:NoWindowsInTile
icon:
sprite: _CD/Structures/Windows/window_bordered_diagonal.rsi
state: state1
objectType: Structure
placementMode: SnapgridCenter
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from skyrat-tg at commit https://github.com/Skyrat-SS13/Skyrat-tg/commit/f9e3b58ecd64fa061f83420689bd90bfa3a4c185 and edited by Nairod(github)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "state0"
},
{
"name": "state1"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2aa8e87

Please sign in to comment.