SS14-12462 Nerf food and drink vending machines (#25999)

* SS14-17183 Nerf vending machines

Vending machines provide too much food
(and drink) at the moment to the crew,
robbing the chef/bartender of a reason
to exist, and robbing the janitor of a reason
to want to refil vending machines early in
the round.

This PR adds a new "initialStockQuality" field
to vending machines and sets it at 0.33 for almost all
food and drink vendors. The intent at the moment
is to drop food and drink vending machine stocks
by somewhere around a half - two thirds of the time,
about two-thirds of the stock of a given item will be
missing.

This number can be tuned to discourage people relying
on vending machines and make round start
a bit more variable when hunting noms.

* Add comment to InitialStockQuality.

* Update Content.Shared/VendingMachines/VendingMachineComponent.cs

---------

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
Hannah Giovanna Dawson
2024-03-15 23:28:00 +00:00
committed by GitHub
parent 4aa72af574
commit 41093ab03c
3 changed files with 39 additions and 9 deletions

View File

@@ -359,6 +359,7 @@
screenState: screen
ejectDelay: 5
soundVend: /Audio/Machines/machine_vend_hot_drink.ogg
initialStockQuality: 0.33
- type: Advertise
pack: HotDrinksMachineAds
- type: Speech
@@ -396,6 +397,7 @@
ejectState: eject-unshaded
denyState: deny-unshaded
ejectDelay: 1.9
initialStockQuality: 0.33
- type: Advertise
pack: RobustSoftdrinksAds
- type: Speech
@@ -539,6 +541,7 @@
ejectState: eject-unshaded
denyState: deny-unshaded
ejectDelay: 1.9
initialStockQuality: 0.33
- type: Advertise
pack: RobustSoftdrinksAds
- type: Speech
@@ -573,6 +576,7 @@
ejectState: eject-unshaded
denyState: deny-unshaded
ejectDelay: 1.9
initialStockQuality: 0.33
- type: Advertise
pack: RobustSoftdrinksAds
- type: Speech
@@ -607,6 +611,7 @@
ejectState: eject-unshaded
denyState: deny-unshaded
ejectDelay: 1.9
initialStockQuality: 0.33
- type: Advertise
pack: RobustSoftdrinksAds
- type: Speech
@@ -697,6 +702,7 @@
offState: off
brokenState: broken
normalState: normal-unshaded
initialStockQuality: 0.33
- type: Advertise
pack: DiscountDansAds
- type: Speech
@@ -902,6 +908,7 @@
normalState: normal-unshaded
ejectState: eject-unshaded
denyState: deny-unshaded
initialStockQuality: 0.33
- type: Advertise
pack: GetmoreChocolateCorpAds
- type: Speech
@@ -1045,6 +1052,7 @@
normalState: normal-unshaded
ejectState: eject-unshaded
denyState: deny-unshaded
initialStockQuality: 0.33
- type: Advertise
pack: BodaAds
- type: Speech
@@ -1236,6 +1244,7 @@
offState: off
brokenState: broken
normalState: normal-unshaded
initialStockQuality: 0.33
- type: Advertise
pack: ChangAds
- type: Speech
@@ -1258,7 +1267,7 @@
parent: VendingMachine
id: VendingMachineSalvage
name: Salvage Vendor
description: A dwarves best friend!
description: A dwarf's best friend!
components:
- type: VendingMachine
pack: SalvageEquipmentInventory
@@ -1299,6 +1308,7 @@
offState: off
brokenState: broken
normalState: normal-unshaded
initialStockQuality: 0.33
- type: Advertise
pack: DonutAds
- type: Speech
@@ -1911,6 +1921,7 @@
denyState: deny-unshaded
ejectDelay: 1.9
soundVend: /Audio/Items/bikehorn.ogg
initialStockQuality: 1.0 # Nobody knows how Honk does it, but their vending machines always seem well-stocked...
- type: Sprite
sprite: Structures/Machines/VendingMachines/happyhonk.rsi
layers: