Skip to content

Commit

Permalink
Add poultry cube boxes! (new-frontiers-14#1847)
Browse files Browse the repository at this point in the history
Also slightly rebalance the vend price of monkey and variant cube boxes.
  • Loading branch information
arimah authored Aug 11, 2024
1 parent 4aa707b commit ac6d73c
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 20 deletions.
38 changes: 19 additions & 19 deletions Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
category: cargoproduct-category-name-livestock
group: market

- type: cargoProduct
id: LivestockChicken
icon:
sprite: Mobs/Animals/chicken.rsi
state: icon-1
product: CrateNPCChicken
cost: 4000
category: cargoproduct-category-name-livestock
group: market
# - type: cargoProduct # Frontier - replaced by poultry cube crate
# id: LivestockChicken
# icon:
# sprite: Mobs/Animals/chicken.rsi
# state: icon-1
# product: CrateNPCChicken
# cost: 4000
# category: cargoproduct-category-name-livestock
# group: market

- type: cargoProduct
id: LivestockCrab
Expand All @@ -52,16 +52,16 @@
category: cargoproduct-category-name-livestock
group: market

- type: cargoProduct
id: LivestockDuck
abstract: true # Frontier
icon:
sprite: Mobs/Animals/duck.rsi
state: icon-0
product: CrateNPCDuck
cost: 4000
category: cargoproduct-category-name-livestock
group: market
# - type: cargoProduct # Frontier - replaced by poultry cube crate
# id: LivestockDuck
# abstract: true # Frontier
# icon:
# sprite: Mobs/Animals/duck.rsi
# state: icon-0
# product: CrateNPCDuck
# cost: 4000
# category: cargoproduct-category-name-livestock
# group: market

- type: cargoProduct
id: LivestockCorgi
Expand Down
5 changes: 4 additions & 1 deletion Resources/Prototypes/Entities/Objects/Misc/monkeycube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
state: box
- type: StaticPrice
price: 20
vendPrice: 900 # Frontier - 150 per monkey (Meat worth 200)
vendPrice: 960 # Frontier - 120 per monkey (meat worth 540 at a depot)

- type: entity
parent: BaseItem
Expand Down Expand Up @@ -67,6 +67,9 @@
- type: Sprite
sprite: Objects/Misc/monkeycube.rsi
state: box_variant
- type: StaticPrice
price: 20
vendPrice: 800 # Frontier - 120 per monkey, 80 per kobold (meat worth 450 at a depot)

- type: entity
parent: MonkeyCubeWrapped
Expand Down
10 changes: 10 additions & 0 deletions Resources/Prototypes/_NF/Catalog/Cargo/cargo_livestock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@
cost: 10000
category: cargoproduct-category-name-livestock
group: market

- type: cargoProduct
id: LivestockPoultryCube
icon:
sprite: _NF/Objects/Misc/monkeycube.rsi
state: box_poultry
product: CrateNPCPoultryCube
cost: 2000
category: cargoproduct-category-name-livestock
group: market
10 changes: 10 additions & 0 deletions Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@
- type: entity
id: PetCarrierNPCEmotionalSupportSafe
parent: [PetCarrier, FillNPCEmotionalSupportSafe]

- type: entity
id: CrateNPCPoultryCube
parent: CrateGenericSteel
name: poultry cube crate
description: A crate containing single box of poultry cubes.
components:
- type: StorageFill
contents:
- id: PoultryCubeBox
50 changes: 50 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Misc/monkeycube.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
- type: entity
parent: BoxCardboard
name: poultry cube box
id: PoultryCubeBox
description: Drymate brand poultry cubes, chicken and duck. Just add water!
components:
- type: StorageFill
contents:
- id: ChickenCubeWrapped
amount: 6
- id: DuckCubeWrapped
amount: 2
- type: Sprite
sprite: _NF/Objects/Misc/monkeycube.rsi
state: box_poultry
- type: StaticPrice
price: 20
vendPrice: 800 # Meat only worth 180 at a depot, but can produce eggs and more poultry for free

- type: entity
parent: MonkeyCubeWrapped
name: chicken cube
suffix: Wrapped
id: ChickenCubeWrapped
description: Unwrap this to get a chicken cube.
components:
- type: SpawnItemsOnUse
items:
- id: ChickenCube
sound:
path: /Audio/Effects/unwrap.ogg
- type: Sprite
sprite: _NF/Objects/Misc/monkeycube.rsi
state: wrapper_chicken

- type: entity
parent: MonkeyCubeWrapped
name: duck cube
suffix: Wrapped
id: DuckCubeWrapped
description: Unwrap this to get a duck cube.
components:
- type: SpawnItemsOnUse
items:
- id: DuckCube
sound:
path: /Audio/Effects/unwrap.ogg
- type: Sprite
sprite: _NF/Objects/Misc/monkeycube.rsi
state: wrapper_duck
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
- type: entity
parent: MonkeyCube
id: ChickenCube
name: chicken cube
components:
- type: Rehydratable
possibleSpawns:
- MobChicken
- MobChicken1
- MobChicken2

- type: entity
parent: MonkeyCube
id: DuckCube
name: duck cube
components:
- type: Rehydratable
possibleSpawns:
- MobDuckMallard
- MobDuckWhite
- MobDuckBrown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions Resources/Textures/_NF/Objects/Misc/monkeycube.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "box_poultry edited by Arimah from monkeycubebox from cev-eris at https://github.com/discordia-space/CEV-Eris/raw/9c980cb9bc84d07b1c210c5447798af525185f80/icons/obj/food.dmi. wrapper_chicken and wrapper_duck made by Stagnation for Frontier Station 14.",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "box_poultry"
},
{
"name": "wrapper_chicken"
},
{
"name": "wrapper_duck"
}
]
}
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 ac6d73c

Please sign in to comment.