]> git.smokeofanarchy.ru Git - space-station-14.git/commit
SS14-12462 Nerf food and drink vending machines (#25999)
authorHannah Giovanna Dawson <karakkaraz@gmail.com>
Fri, 15 Mar 2024 23:28:00 +0000 (23:28 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 23:28:00 +0000 (19:28 -0400)
commit41093ab03cc6a643ee7721de3567963b34fe8e54
treead07c5c7945fec78b9867a7e473073109604110f
parent4aa72af574cc7a3370085fb70831fbde1df29077
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>
Content.Shared/VendingMachines/SharedVendingMachineSystem.cs
Content.Shared/VendingMachines/VendingMachineComponent.cs
Resources/Prototypes/Entities/Structures/Machines/vending_machines.yml