Skip to content

Commit

Permalink
Ports coffee arabica plant from SS13. (new-frontiers-14#1546)
Browse files Browse the repository at this point in the history
* Ports coffee arabica plant from SS13. TG sprites used. Includes seeds, plant, coffee grounds chemicals, new reaction to brew coffee.

* Coffee PR suggestions

* dark coffee beans: inherit from light coffee beans

* Coffee grounds recognizable, author in meta.json

* Coffee bean/fruit sprites by Stagnation

* Fix coffee.rsi license, attribute produce to stag

* hyphenate

* cleanup: ingredients.yml (heatCapacity, comments)

* Updated produce-beans from Stagnation

---------

Co-authored-by: Whatstone <[email protected]>
  • Loading branch information
Iocanthos and whatston3 authored Jun 24, 2024
1 parent 03db84c commit 0bd4a29
Show file tree
Hide file tree
Showing 25 changed files with 291 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
reagent-name-coffeegrounds = coffee grounds
reagent-desc-coffeegrounds = Aromatic and richly textured, these grounds exude a robust scent that promises a flavorful brew.
2 changes: 2 additions & 0 deletions Resources/Locale/en-US/_NF/seeds/seeds.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ seeds-spesos-name = spesos
seeds-spesos-display-name = spesos
seeds-pear-name = pear
seeds-pear-display-name = pear
seeds-coffee-name = coffee
seeds-coffee-display-name = coffee plant
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
BerrySeeds: 5
PeaSeeds: 5
CottonSeeds: 5
CoffeeSeeds: 5 # Frontier
emaggedInventory:
FlyAmanitaSeeds: 1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- FoodPeaPod
- FoodPumpkin
- CottonBol
- FoodCoffee # Frontier
chance: 0.8
offset: 0.0
#rare
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@
seedId: pear
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/pear.rsi

- type: entity
parent: SeedBase
name: packet of coffee seeds
description: Perfect for any self-respecting coffee roaster.
id: CoffeeSeeds
components:
- type: Seed
seedId: coffee
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
28 changes: 28 additions & 0 deletions Resources/Prototypes/_NF/Hydroponics/seeds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,31 @@
Min: 1
Max: 4
PotencyDivisor: 25

- type: seed
id: coffee
name: seeds-coffee-name
noun: seeds-noun-seeds
displayName: seeds-coffee-display-name
plantRsi: _NF/Objects/Specific/Hydroponics/coffee.rsi
packetPrototype: CoffeeSeeds
productPrototypes:
- FoodCoffee
lifespan: 25
maturation: 9
production: 1
yield: 2
potency: 5
idealLight: 8
growthStages: 5
harvestRepeat: Repeat
waterConsumption: 0.60
chemicals:
Nutriment:
Min: 2
Max: 8
PotencyDivisor: 16
Theobromine:
Min: 1
Max: 4
PotencyDivisor: 25
98 changes: 98 additions & 0 deletions Resources/Prototypes/_NF/Objects/Consumable/Food/ingredients.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
- type: entity
name: raw coffee beans
parent: FoodProduceBase
id: FoodCoffeeBeansRaw
description: Green coffee beans, just waiting to be roasted.
components:
- type: FlavorProfile
flavors:
- bitter
- type: Food
- type: SolutionContainerManager
solutions:
food:
maxVol: 6
reagents:
- ReagentId: Nutriment
Quantity: 1
- ReagentId: Theobromine # Caffeine
Quantity: 1
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
state: produce-beans
- type: Tag
tags:
- Fruit
- type: Construction
graph: Coffee
node: start
defaultTarget: light roasted coffee
- type: AtmosExposed # Expose the beans to atmosphere - heats and cools them
- type: Temperature # Temperature components needed to cook the beans
currentTemperature: 290
- type: InternalTemperature
thickness: 0.008 # 8mm (roughly bean sized)
area: .2 # essentially a giant sheet of beans

- type: entity
name: light roasted coffee beans
parent: FoodProduceBase
id: FoodCoffeeBeansRoastedLight
description: Cinnamon roast coffee beans. Bright and fruity.
components:
- type: FlavorProfile
flavors:
- bitter
- type: Food
- type: SolutionContainerManager
solutions:
food:
maxVol: 6
reagents:
- ReagentId: CoffeeGrounds
Quantity: 5
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
state: produce-beans-light
- type: Tag
tags:
- Fruit
- type: Construction
graph: Coffee
node: light roasted coffee
defaultTarget: medium roasted coffee
- type: AtmosExposed # Expose the beans to atmosphere - heats and cools them
- type: Temperature # Temperature components needed to cook the beans
- type: InternalTemperature
thickness: 0.008 # 8mm (roughly bean sized)
area: .2 # essentially a giant sheet of beans
conductivity: 1.5 # Arbitrarily chosen
- type: Extractable
grindableSolutionName: food

- type: entity
name: medium roasted coffee beans
parent: FoodCoffeeBeansRoastedLight
id: FoodCoffeeBeansRoastedMedium
description: City roast coffee beans. Smooth and nutty.
components:
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
state: produce-beans-medium
- type: Construction
graph: Coffee
node: medium roasted coffee
defaultTarget: dark roasted coffee

- type: entity
name: dark roasted coffee beans
parent: FoodCoffeeBeansRoastedLight
id: FoodCoffeeBeansRoastedDark
description: Viennese roast coffee beans. Smoky and spicy.
components:
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
state: produce-beans-dark
- type: Construction
graph: Coffee
node: dark roasted coffee
31 changes: 31 additions & 0 deletions Resources/Prototypes/_NF/Objects/Consumable/Food/produce.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
- type: entity
name: coffee berries
parent: FoodProduceBase
id: FoodCoffee
description: Red berries encasing coffee beans.
components:
- type: FlavorProfile
flavors:
- bitter
- type: Food
- type: SolutionContainerManager
solutions:
food:
maxVol: 12
reagents:
- ReagentId: Nutriment
Quantity: 2
- ReagentId: Theobromine
Quantity: 1
- type: Sprite
sprite: _NF/Objects/Specific/Hydroponics/coffee.rsi
- type: Produce
seedId: coffee
- type: Tag
tags:
- Fruit
- type: SpawnItemsOnUse
items:
- id: FoodCoffeeBeansRaw
sound:
path: /Audio/Effects/packetrip.ogg
17 changes: 17 additions & 0 deletions Resources/Prototypes/_NF/Reagents/Consumables/ingredients.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- type: reagent
id: CoffeeGrounds
name: reagent-name-coffeegrounds
group: Foods
desc: reagent-desc-coffeegrounds
flavor: bitter
color: "#4B382A"
physicalDesc: reagent-physical-desc-powdery
slippery: false
recognizable: true # "Waiter, there seems to be grounds in my coffee."
metabolisms:
Drink:
effects:
- !type:SatiateHunger
factor: 0.1
- !type:SatiateThirst
factor: -0.25
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coffee
- type: constructionGraph
id: Coffee
start: start
graph:

- node: start
edges:
- to: light roasted coffee
completed:
- !type:PlaySound
sound: /Audio/Effects/sizzle.ogg
steps:
- minTemperature: 365 # ~92 C - arbitrarily set to take a while
# - minTemperature: 453 # 180 C

- node: light roasted coffee
entity: FoodCoffeeBeansRoastedLight
edges:
- to: medium roasted coffee
completed:
- !type:PlaySound
sound: /Audio/Effects/sizzle.ogg
steps:
- minTemperature: 375 # ~102 C - arbitrarily set to take a while
# - minTemperature: 477 # 204 C

- node: medium roasted coffee
entity: FoodCoffeeBeansRoastedMedium
edges:
- to: dark roasted coffee
completed:
- !type:PlaySound
sound: /Audio/Effects/sizzle.ogg
steps:
- minTemperature: 385 # ~112 C - arbitrarily set to take a while
#- minTemperature: 493 # 220 C

- node: dark roasted coffee
entity: FoodCoffeeBeansRoastedDark
10 changes: 10 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Reactions/drinks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
- type: reaction
id: Coffee
minTemp: 353 # ~80 deg C
reactants:
Water:
amount: 3
CoffeeGrounds:
amount: 1
products:
Coffee: 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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": 1,
"license": "CC-BY-NC-SA-4.0",
"copyright": "Taken from https://github.com/vgstation-coders/vgstation13. produce, produce-beans and variants created by Stagnation (Discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "dead"
},
{
"name": "harvest"
},
{
"name": "produce"
},
{
"name": "produce-beans"
},
{
"name": "produce-beans-light"
},
{
"name": "produce-beans-medium"
},
{
"name": "produce-beans-dark"
},
{
"name": "seed"
},
{
"name": "stage-1"
},
{
"name": "stage-2"
},
{
"name": "stage-3"
},
{
"name": "stage-4"
},
{
"name": "stage-5"
}
]
}
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.
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 0bd4a29

Please sign in to comment.