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

Cheese. #236

Merged
merged 6 commits into from
Feb 2, 2025
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
1 change: 1 addition & 0 deletions Resources/Locale/en-US/tiles/tiles.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,4 @@ tiles-jungle-astro-grass = jungle astro-grass
tiles-astro-ice = astro-ice
tiles-astro-snow = astro-snow
tiles-wood-large = large wood
tiles-cheese-floor = cheese floor
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
- type: entity
id: CheeseSecretDoor
parent: BaseStructure
name: cheese wall # No meta
suffix: secret cheese door
abstract: true
description: I bet a rat king would love this.
components:
- type: Sprite
sprite: Structures/Doors/secret_cheese_door.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: AnimationPlayer
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,0.49"
density: 100
mask:
- FullTileMask
layer:
- WallLayer
- type: Door
bumpOpen: false
clickOpen: true
canCrush: false
closeTimeOne: 0.2
closeTimeTwo: 0.6
openTimeOne: 0.6
openTimeTwo: 0.2
openingAnimationTime: 1.2
closingAnimationTime: 1.2
- type: Appearance
- type: Weldable
time: 2
weldedExamineMessage: null
- type: Airtight
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: RCDDeconstructable
cost: 6
delay: 8
fx: EffectRCDDeconstruct8
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: IconSmooth
key: walls
mode: NoSprite
- type: Occluder
- type: ContainerFill
containers:
battery-container: [ PowerCellMedium ]
- type: Tag
tags:
- Structure
- Wall
- type: ContainerContainer
containers:
battery-container: !type:Container
- type: BlockWeather

- type: entity
id: CheeseSecretDoorAssembly
name: secret cheese door assembly
description: Well this... How does this even work?
components:
- type: Clickable
- type: InteractionOutline
- type: Sprite
sprite: Structures/Doors/secret_cheese_door.rsi
state: assembly
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 110
mask:
- FullTileMask
layer:
- HumanoidBlockLayer
- type: Anchorable
delay: 2
- type: Pullable
- type: Transform
anchored: true
noRot: false
- type: Rotatable
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: RCDDeconstructable
cost: 6
delay: 8
fx: EffectRCDDeconstruct8
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
placement:
mode: SnapgridCenter

- type: entity
id: CheesySecretDoor
name: cheese wall
parent: CheeseSecretDoor
components:
- type: Construction
graph: SecretDoor
node: CheeseSecretDoor
containers:
- battery-container
32 changes: 32 additions & 0 deletions Resources/Prototypes/Entities/Structures/Furniture/chairs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,35 @@
max: 4
- type: StaticPrice
price: 50

- type: entity
name: cheese chair
id: ChairCheese
parent: UnanchoredChairBase
components:
- type: Sprite
state: chair-cheese
- type: Damageable
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 10
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
collection: WoodDestroy
- !type:SpawnEntitiesBehavior
spawn:
FoodCheeseSlice:
min: 2
max: 2
- type: Tag
tags:
- Cheese
- type: StaticPrice
price: 150

42 changes: 42 additions & 0 deletions Resources/Prototypes/Entities/Structures/Walls/walls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1515,3 +1515,45 @@
- type: IconSmooth
key: cobblebricks
base: cobblebrick

- type: entity
parent: BaseWall
id: WallCheese
name: cheese wall
description: I bet a rat king would love this.
components:
- type: Tag
tags:
- Wall
- Structure
- type: Sprite
sprite: Structures/Walls/cheese.rsi
- type: FlavorProfile
flavors:
- cheesy
- type: SolutionContainerManager
solutions:
food:
maxVol: 22.5
reagents:
- ReagentId: Nutriment
Quantity: 22.5
- type: Icon
sprite: Structures/Walls/cheese.rsi
- type: Food
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 15 # weak
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
FoodCheeseSlice:
min: 5
max: 5
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: IconSmooth
key: walls
base: cheese
13 changes: 13 additions & 0 deletions Resources/Prototypes/Tiles/floors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1934,3 +1934,16 @@
collection: BarestepWood
itemDrop: FloorTileItemWoodLarge
heatCapacity: 10000

- type: tile
id: FloorCheese
name: tiles-cheese-floor
sprite: /Textures/Tiles/cheese.png
baseTurf: Plating
isSubfloor: false
deconstructTools: [ Prying ]
footstepSounds:
collection: FootstepBlood
itemDrop: FoodCheeseSlice
friction: 0.05 #slippy
heatCapacity: 10000
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made by SillyGabe for Mira Sector",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "assembly"
},
{
"name": "closed",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "closing",
"directions": 1,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "open",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "opening",
"directions": 1,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
}
]
}
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/11402f6ae62facc2e8bcfa1f8ef5353b26663278, meat.png is CC0-1.0 by EmoGarbage404 (github) for Space Station 14. chair.png and its derrivatives taken from shiptest at commit https://github.com/shiptest-ss13/Shiptest/commit/f761c784812e827960a66cd10aac17ebc6edfac3, palette for chair.png, steel-bench.png and chair-greyscale.png taken from paradise equivalent chairs at commit https://github.com/ParadiseSS13/Paradise/commit/5ce5a66c814c4a60118d24885389357fd0240002, steel by SonicHDC, brass chair.png taken from tgstation at https://github.com/tgstation/tgstation/blob/b7e7779c19b76449c290aaf2150fb93545b1a79a/icons/obj/chairs.dmi, wooden bench by Ko4erga (discord)",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/11402f6ae62facc2e8bcfa1f8ef5353b26663278, meat.png is CC0-1.0 by EmoGarbage404 (github) for Space Station 14. chair.png and its derrivatives taken from shiptest at commit https://github.com/shiptest-ss13/Shiptest/commit/f761c784812e827960a66cd10aac17ebc6edfac3, palette for chair.png, steel-bench.png and chair-greyscale.png taken from paradise equivalent chairs at commit https://github.com/ParadiseSS13/Paradise/commit/5ce5a66c814c4a60118d24885389357fd0240002, steel by SonicHDC, brass chair.png taken from tgstation at https://github.com/tgstation/tgstation/blob/b7e7779c19b76449c290aaf2150fb93545b1a79a/icons/obj/chairs.dmi, wooden bench by Ko4erga (discord), cheese-chair.png by SillyGabe",
"size": {
"x": 32,
"y": 32
Expand Down Expand Up @@ -98,6 +98,10 @@
{
"name": "brass_chair",
"directions": 4
}
},
{
"name": "chair-cheese",
"directions": 4
}
]
}
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
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions Resources/Textures/Structures/Walls/cheese.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"version": 1,
"size":
{
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Made by SillyGabe",
"states":
[{
"name": "full"
},
{
"name": "cheese0",
"directions": 4
},
{
"name": "cheese1",
"directions": 4
},
{
"name": "cheese2",
"directions": 4
},
{
"name": "cheese3",
"directions": 4
},
{
"name": "cheese4",
"directions": 4
},
{
"name": "cheese5",
"directions": 4
},
{
"name": "cheese6",
"directions": 4
},
{
"name": "cheese7",
"directions": 4
}]
}
Binary file added Resources/Textures/Tiles/cheese.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading