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

Adds lunchboxes #332

Merged
merged 5 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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: 1 addition & 1 deletion Resources/Prototypes/Loadouts/Miscellaneous/trinkets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
storage:
back:
- PlushieLizard

- type: loadout
id: PlushieSpaceLizard
equipment: PlushieSpaceLizard
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Loadouts/loadout_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
loadouts:
- PlushieLizard
- PlushieSpaceLizard
- LunchboxBlue # CD
- LunchboxYellow # CD
- Lighter
- CigPackGreen
- CigPackRed
Expand Down
56 changes: 56 additions & 0 deletions Resources/Prototypes/_CD/Entities/Objects/Misc/lunchboxes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
- type: entity
id: LunchboxBase
parent: BaseStorageItem
abstract: true
components:
- type: Sprite
layers:
- map: [ base ]
state: icon
- type: EmitSoundOnLand
sound:
path: /Audio/Items/toolbox_drop.ogg
- type: Storage
capacity: 25 # ffs I forgot CD uses list inv... I hope this is enough for a sandwich and a drink
- type: Item
size: 30
- type: MeleeWeapon
damage:
types:
Blunt: 3
soundHit:
path: "/Audio/Weapons/smash.ogg"
- type: Tag
tags:
- Toolbox
Just-a-Unity-Dev marked this conversation as resolved.
Show resolved Hide resolved
- type: GenericVisualizer
visuals:
enum.StorageVisuals.Open:
base:
True: { state: icon-open }
False: { state: icon }
- type: Appearance

- type: entity
name: blue lunchbox
parent: LunchboxBase
id: LunchboxBlue
description: A blue lunch box, it smells less of food and more like metal.
components:
- type: Sprite
sprite: _CD/Objects/Misc/Lunchboxes/lunchbox_blue.rsi
state: icon
- type: Item
sprite: _CD/Objects/Misc/Lunchboxes/lunchbox_blue.rsi

- type: entity
name: yellow lunchbox
parent: LunchboxBase
id: LunchboxYellow
description: A yellow lunch box, you can tell your food will be shockingly good. # i'm so sorry for this pun
components:
- type: Sprite
sprite: _CD/Objects/Misc/Lunchboxes/lunchbox_yellow.rsi
state: icon
- type: Item
sprite: _CD/Objects/Misc/Lunchboxes/lunchbox_yellow.rsi
20 changes: 20 additions & 0 deletions Resources/Prototypes/_CD/Loadouts/Miscellaneous/trinkets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Lunchboxes
- type: loadout
id: LunchboxBlue
equipment: LunchboxBlue

- type: startingGear
id: LunchboxBlue
storage:
back:
- LunchboxBlue

- type: loadout
id: LunchboxYellow
equipment: LunchboxYellow

- type: startingGear
id: LunchboxYellow
storage:
back:
- LunchboxYellow
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by pwzysk (182643522967437313) on Discord with sprites modified from https://github.com/Baystation12/Baystation12/commit/a929584d9db319eb7484113221be25cfa1d5dc09",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "icon"
},
{
"name": "icon-open"
}
]
}
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by pwzysk (182643522967437313) on Discord with sprites modified from https://github.com/Baystation12/Baystation12/commit/a929584d9db319eb7484113221be25cfa1d5dc09",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "icon"
},
{
"name": "icon-open"
}
]
}
Loading