Skip to content
Open
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
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
- ServiceStatic
- PowerCellsStatic
- ElectronicsStatic
- TentsStatic #DEN
- type: EmagLatheRecipes
emagStaticPacks:
- SecurityAmmoStatic
Expand Down Expand Up @@ -523,6 +524,7 @@
- Scarves
- Carpets
- Bedsheets
- TentsStatic #DEN
- type: EmagLatheRecipes
emagStaticPacks:
- ClothingCentComm
Expand Down
147 changes: 147 additions & 0 deletions Resources/Prototypes/_DEN/Entities/Objects/Tools/tent_packs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
- type: entity
id: LeatherTentWallStack
parent: BaseItem
name: leather tent package
description: A folded wall of leather which can be quickly constructed.
suffix: Full
components:
- type: Stack
stackType: LeatherTentWall
count: 10
- type: Sprite
sprite: _DEN/Objects/Tools/tent_package.rsi
state: leather_tent_package
- type: Item
size: Small
- type: SpawnAfterInteract
prototype: TentWallLeather
doAfter: 1
removeOnInteract: true
- type: Clickable

- type: entity
parent: LeatherTentWallStack
id: LeatherTentWallStack1
suffix: 1
components:
- type: Stack
count: 1

- type: stack
id: LeatherTentWall
name: leather tent wall
icon: { sprite: _DEN/Objects/Tools/tent_package.rsi, state: leather_tent_package }
spawn: LeatherTentWallStack1
maxCount: 10
itemSize: 1

- type: entity
id: ClothTentWallStack
parent: BaseItem
name: cloth tent package
description: A folded wall of thick cloth which can be quickly constructed.
suffix: Full
components:
- type: Stack
stackType: ClothTentWall
count: 10
- type: Sprite
sprite: _DEN/Objects/Tools/tent_package.rsi
state: cloth_tent_package
- type: Item
size: Small
- type: SpawnAfterInteract
prototype: TentWallCloth
doAfter: 1
removeOnInteract: true
- type: Clickable

- type: entity
parent: ClothTentWallStack
id: ClothTentWallStack1
suffix: 1
components:
- type: Stack
count: 1

- type: stack
id: ClothTentWall
name: cloth tent wall
icon: { sprite: _DEN/Objects/Tools/tent_package.rsi, state: cloth_tent_package }
spawn: ClothTentWallStack1
maxCount: 10
itemSize: 1

- type: entity
id: LeatherTentFlapStack
parent: BaseItem
name: leather tent flap package
description: A folded wall of leather which can be quickly constructed. This one can be lashed open and closed.
suffix: Full
components:
- type: Stack
stackType: LeatherTentFlap
count: 4
- type: Sprite
sprite: _DEN/Objects/Tools/tent_package.rsi
state: leather_tent_package
- type: Item
size: Small
- type: SpawnAfterInteract
prototype: TentFlapLeather
doAfter: 1
removeOnInteract: true
- type: Clickable

- type: entity
parent: LeatherTentFlapStack
id: LeatherTentFlapStack1
suffix: 1
components:
- type: Stack
count: 1

- type: stack
id: LeatherTentFlap
name: leather tent flap
icon: { sprite: _DEN/Objects/Tools/tent_package.rsi, state: leather_tent_package }
spawn: LeatherTentFlapStack1
maxCount: 4
itemSize: 1

- type: entity
id: ClothTentFlapStack
parent: BaseItem
name: cloth tent flap package
description: A folded wall of thick cloth which can be quickly constructed. This one can be lashed open and closed.
suffix: Full
components:
- type: Stack
stackType: ClothTentFlap
count: 4
- type: Sprite
sprite: _DEN/Objects/Tools/tent_package.rsi
state: cloth_tent_package
- type: Item
size: Small
- type: SpawnAfterInteract
prototype: TentFlapCloth
doAfter: 1
removeOnInteract: true
- type: Clickable

- type: entity
parent: ClothTentFlapStack
id: ClothTentFlapStack1
suffix: 1
components:
- type: Stack
count: 1

- type: stack
id: ClothTentFlap
name: cloth tent flap
icon: { sprite: _DEN/Objects/Tools/tent_package.rsi, state: cloth_tent_package }
spawn: ClothTentFlapStack1
maxCount: 4
itemSize: 1
165 changes: 165 additions & 0 deletions Resources/Prototypes/_DEN/Entities/Structures/tents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
- type: entity
parent: BaseWall
id: BaseTentWall
abstract: true
description: Keeps the light out, but lets the air in.
components:
- type: Airtight
airBlocked: false
- type: BlockWeather
- type: Clickable
- type: InteractionOutline
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Web
- type: RangedDamageSound
soundGroups:
Brute:
collection:
GenericHit

- type: entity
parent: BaseTentWall
id: TentWallCloth
name: cloth tent
components:
- type: Sprite
sprite: _DEN/Structures/Walls/tent.rsi
state: cloth_tent
- type: Icon
sprite: _DEN/Structures/Walls/tent.rsi
state: cloth_tent
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 35
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
MaterialCloth1:
min: 2
max: 2
- type: DisassembleOnAltVerb
prototypeToSpawn: ClothTentWallStack1
disassembleTime: 3
- type: IconSmooth
key: cloth_tents
base: cloth_tent

- type: entity
parent: BaseTentWall
id: TentWallLeather
name: leather tent
components:
- type: Sprite
sprite: _DEN/Structures/Walls/tent.rsi
state: leather_tent
- type: Icon
sprite: _DEN/Structures/Walls/tent.rsi
state: leather_tent
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 35
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
MaterialCloth1:
min: 2
max: 2
- type: DisassembleOnAltVerb
prototypeToSpawn: LeatherTentWallStack1
disassembleTime: 3
- type: IconSmooth
key: leather_tents
base: leather_tent

- type: entity
id: TentFlapCloth
parent: BaseMaterialDoor
name: cloth tent flap
description: Takes a while to zip and unzip.
components:
- type: Airtight
airBlocked: false
- type: Clickable
- type: InteractionOutline
- type: Sprite
netsync: false
sprite: _DEN/Structures/Doors/cloth_tent_flaps.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
noRot: true
- type: Door
bumpOpen: false
clickOpen: true
canCrush: false
closeTimeOne: 0.6
closeTimeTwo: 0.6
openTimeOne: 0.6
openTimeTwo: 0.6
openingAnimationTime: 1.2
closingAnimationTime: 1.2
openSound:
path: /Audio/Effects/rustle5.ogg
closeSound:
path: /Audio/Items/zip.ogg
changeAirtight: false
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: Web
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 35
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MaterialCloth1:
min: 2
max: 2
- type: DisassembleOnAltVerb
prototypeToSpawn: ClothTentFlapStack1
disassembleTime: 3
- type: IconSmooth
key: cloth_tents
#base: cloth_tent
mode: NoSprite

- type: entity
id: TentFlapLeather
parent: TentFlapCloth
name: leather tent flap
components:
- type: Sprite
sprite: _DEN/Structures/Doors/leather_tent_flaps.rsi
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 35
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
MaterialCloth1:
min: 2
max: 2
- type: DisassembleOnAltVerb
prototypeToSpawn: LeatherTentFlapStack1
disassembleTime: 3
- type: IconSmooth
key: leather_tents
#base: leather_tent
mode: NoSprite
7 changes: 7 additions & 0 deletions Resources/Prototypes/_DEN/Recipes/Lathes/Packs/packs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- type: latheRecipePack
id: TentsStatic
recipes:
- LeatherTentWall
- ClothTentWall
- LeatherTentFlap
- ClothTentFlap
27 changes: 27 additions & 0 deletions Resources/Prototypes/_DEN/Recipes/Lathes/tents.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- type: latheRecipe
id: LeatherTentWall
result: LeatherTentWallStack1
completetime: 2
materials:
Cloth: 200

- type: latheRecipe
id: ClothTentWall
result: ClothTentWallStack1
completetime: 2
materials:
Cloth: 200

- type: latheRecipe
id: LeatherTentFlap
result: LeatherTentFlapStack1
completetime: 2
materials:
Cloth: 200

- type: latheRecipe
id: ClothTentFlap
result: ClothTentFlapStack1
completetime: 2
materials:
Cloth: 200
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.
17 changes: 17 additions & 0 deletions Resources/Textures/_DEN/Objects/Tools/tent_package.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": 1,
"license": "CC-BY-4.0",
"copyright": "By Gawdayumeet",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "cloth_tent_package"
},
{
"name": "leather_tent_package"
}
]
}
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.
Loading
Loading