Skip to content

Commit

Permalink
Add new reagent: Noxiose, the junk in junk food
Browse files Browse the repository at this point in the history
  • Loading branch information
arimah committed Jun 3, 2024
1 parent 76aaeed commit 00f6786
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 3 deletions.
1 change: 1 addition & 0 deletions Resources/Locale/en-US/_NF/flavors/flavor-profiles.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flavor-complex-unhealthy = unhealthy
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
reagent-name-flavorol = flavorol
reagent-desc-flavorol = All the vitamins, minerals, and carbohydrates the body needs in pure form.
reagent-name-noxiose = noxiose
reagent-desc-noxiose = The junk in junk food that makes you feel slow and bloated.
12 changes: 9 additions & 3 deletions Resources/Prototypes/Entities/Objects/Consumable/Food/snacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
maxVol: 30 # Room for extra condiments
reagents:
- ReagentId: Nutriment
Quantity: 10
Quantity: 8 # Frontier
- ReagentId: Noxiose # Frontier
Quantity: 2
- type: Item
sprite: Objects/Consumable/Food/snacks.rsi
heldPrefix: packet
Expand Down Expand Up @@ -296,9 +298,11 @@
maxVol: 30 # Room for extra condiments
reagents:
- ReagentId: Nutriment
Quantity: 10
Quantity: 8 # Frontier
- ReagentId: Soysauce
Quantity: 2
- ReagentId: Noxiose # Frontier
Quantity: 2
- type: Food
trash: FoodPacketChowMeinTrash

Expand All @@ -322,11 +326,13 @@
maxVol: 30 # Room for extra condiments
reagents:
- ReagentId: Nutriment
Quantity: 10
Quantity: 8 # Frontier
- ReagentId: CapsaicinOil
Quantity: 2
- ReagentId: Soysauce
Quantity: 2
- ReagentId: Noxiose # Frontier
Quantity: 2
- type: Food
trash: FoodPacketDanDanTrash

Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/_NF/Flavors/flavors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- type: flavor
id: unhealthy
flavorType: Base
description: flavor-complex-unhealthy
31 changes: 31 additions & 0 deletions Resources/Prototypes/_NF/Reagents/Consumables/food.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,34 @@
- !type:PlantAdjustHealth
amount: 0.5
pricePerUnit: 10

- type: reagent
id: Noxiose # The bad stuff in junk food that makes you feel slow and bloated and discourages you from eating too much unhealthy stuff.
name: reagent-name-noxiose
group: Foods
desc: reagent-desc-noxiose
physicalDesc: reagent-physical-desc-clumpy
flavor: unhealthy # new
color: "#CCCCCC" # TODO
metabolisms:
Food:
metabolismRate: 0.2 # Stays in your system for a while
effects:
# Slow down a bit if you eat some
- !type:MovespeedModifier
walkSpeedModifier: 0.95
sprintSpeedModifier: 0.9
conditions:
- !type:ReagentThreshold
max: 10
# Slow down lots if you eat lots
- !type:MovespeedModifier
walkSpeedModifier: 0.85
sprintSpeedModifier: 0.8
conditions:
- !type:ReagentThreshold
min: 10
# Makes you *very slightly* hungrier, to offset the nutrition in the food. Not enough to nullify the food.
- !type:SatiateHunger
factor: -0.2
pricePerUnit: 0 # literally worthless

0 comments on commit 00f6786

Please sign in to comment.