Removes vending inventory desc and adds missing vending machine descriptions (#4493)

* Removes inventory descriptions

* Adds missing vending machine descriptions using inventory descriptions

* Woops missed a file
This commit is contained in:
Swept
2021-08-19 22:23:02 -07:00
committed by GitHub
parent 45030b22a3
commit d2edd1712d
29 changed files with 17 additions and 44 deletions

View File

@@ -29,7 +29,7 @@ namespace Content.Server.VendingMachines
{ {
[RegisterComponent] [RegisterComponent]
[ComponentReference(typeof(IActivate))] [ComponentReference(typeof(IActivate))]
public class VendingMachineComponent : SharedVendingMachineComponent, IActivate, IExamine, IBreakAct, IWires public class VendingMachineComponent : SharedVendingMachineComponent, IActivate, IBreakAct, IWires
{ {
[Dependency] private readonly IRobustRandom _random = default!; [Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!; [Dependency] private readonly IPrototypeManager _prototypeManager = default!;
@@ -38,7 +38,6 @@ namespace Content.Server.VendingMachines
private TimeSpan _animationDuration = TimeSpan.Zero; private TimeSpan _animationDuration = TimeSpan.Zero;
[DataField("pack")] [DataField("pack")]
private string _packPrototypeId = string.Empty; private string _packPrototypeId = string.Empty;
private string? _description;
private string _spriteName = ""; private string _spriteName = "";
private bool Powered => !Owner.TryGetComponent(out ApcPowerReceiverComponent? receiver) || receiver.Powered; private bool Powered => !Owner.TryGetComponent(out ApcPowerReceiverComponent? receiver) || receiver.Powered;
@@ -81,7 +80,6 @@ namespace Content.Server.VendingMachines
} }
Owner.Name = packPrototype.Name; Owner.Name = packPrototype.Name;
_description = packPrototype.Description;
_animationDuration = TimeSpan.FromSeconds(packPrototype.AnimationDuration); _animationDuration = TimeSpan.FromSeconds(packPrototype.AnimationDuration);
_spriteName = packPrototype.SpriteName; _spriteName = packPrototype.SpriteName;
if (!string.IsNullOrEmpty(_spriteName)) if (!string.IsNullOrEmpty(_spriteName))
@@ -162,12 +160,6 @@ namespace Content.Server.VendingMachines
} }
} }
public void Examine(FormattedMessage message, bool inDetailsRange)
{
if(_description == null) { return; }
message.AddText(_description);
}
private void TryEject(string id) private void TryEject(string id)
{ {
if (_ejecting || _broken) if (_ejecting || _broken)

View File

@@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Robust.Shared.Prototypes; using Robust.Shared.Prototypes;
using Robust.Shared.Serialization; using Robust.Shared.Serialization;
@@ -17,9 +17,6 @@ namespace Content.Shared.VendingMachines
[DataField("name")] [DataField("name")]
public string Name { get; } = string.Empty; public string Name { get; } = string.Empty;
[DataField("description")]
public string Description { get; } = string.Empty;
[DataField("animationDuration")] [DataField("animationDuration")]
public double AnimationDuration { get; } public double AnimationDuration { get; }

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: AmmoVendInventory id: AmmoVendInventory
name: Ammovend name: Ammovend
description: A generic ammunition vending machine.
spriteName: ammo spriteName: ammo
startingInventory: startingInventory:
BoxClRifleBox: 3 BoxClRifleBox: 3

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: BarDrobe id: BarDrobe
name: BarDrobe name: BarDrobe
description: A stylish vendor to dispense the most stylish bar clothing!
spriteName: bardrobe spriteName: bardrobe
startingInventory: startingInventory:
ClothingHeadHatTophat : 2 ClothingHeadHatTophat : 2

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: BoozeOMatInventory id: BoozeOMatInventory
name: Booze-O-Mat name: Booze-O-Mat
description: A vending machine containing multiple drinks for bartending.
spriteName: boozeomat spriteName: boozeomat
startingInventory: startingInventory:
DrinkGlass: 20 #Kept glasses at top for ease to differentiate from booze. DrinkGlass: 20 #Kept glasses at top for ease to differentiate from booze.

View File

@@ -1,5 +1,4 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: PTechInventory id: PTechInventory
name: PTech name: PTech
description: "PTech vending! Providing a ROBUST selection of PDA cartridges."
spriteName: cart spriteName: cart

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: PietyVendInventory id: PietyVendInventory
name: PietyVend name: PietyVend
description: "A vending machine containing religious supplies and clothing. A label reads: \"A holy vendor for a pious man.\""
spriteName: chapel spriteName: chapel
startingInventory: startingInventory:
ClothingOuterHoodieChaplain: 1 ClothingOuterHoodieChaplain: 1

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: CigaretteMachineInventory id: CigaretteMachineInventory
name: Cigarette machine name: Cigarette machine
description: A vending machine containing smoking supplies.
animationDuration: 2.1 animationDuration: 2.1
spriteName: cigs spriteName: cigs
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: HotDrinksMachineInventory id: HotDrinksMachineInventory
name: Hot drinks machine name: Hot drinks machine
description: "Served boiling so it stays hot all shift!"
animationDuration: 3.4 animationDuration: 3.4
spriteName: coffee spriteName: coffee
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: RobustSoftdrinksInventory id: RobustSoftdrinksInventory
name: Robust Softdrinks name: Robust Softdrinks
description: A softdrink vendor provided by Robust Industries, LLC.
animationDuration: 1.1 animationDuration: 1.1
spriteName: cola spriteName: cola
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: DinnerwareInventory id: DinnerwareInventory
name: Dinnerware name: Dinnerware
description: A vending machine containing kitchen and restaurant equipment.
spriteName: dinnerware spriteName: dinnerware
startingInventory: startingInventory:
ButchCleaver: 1 ButchCleaver: 1

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: DiscountDansInventory id: DiscountDansInventory
name: Discount Dan's name: Discount Dan's
description: A vending machine containing discount snacks from the infamous 'Discount Dan' franchise.
spriteName: discount spriteName: discount
startingInventory: startingInventory:
FoodSnackCheesie: 3 FoodSnackCheesie: 3

View File

@@ -1,5 +1,4 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: EmptyVendingMachineInventory id: EmptyVendingMachineInventory
name: Empty vending machine name: Empty vending machine
description: Just add capitalism!
spriteName: empty spriteName: empty

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: EngiVendInventory id: EngiVendInventory
name: Engi-Vend name: Engi-Vend
description: Spare tool vending. What? Did you expect some witty description?
animationDuration: 2.1 animationDuration: 2.1
spriteName: engivend spriteName: engivend
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: MagiVendInventory id: MagiVendInventory
name: MagiVend name: MagiVend
description: A mystical vending machine containing magical garments and magic supplies.
animationDuration: 1.5 animationDuration: 1.5
spriteName: magivend spriteName: magivend
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: NanoMedPlusInventory id: NanoMedPlusInventory
name: NanoMed Plus name: NanoMed Plus
description: "It's a medical drug dispenser. Natural chemicals only!"
animationDuration: 1.8 animationDuration: 1.8
spriteName: medical spriteName: medical
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: DwarvenMiningEquipmentInventory id: DwarvenMiningEquipmentInventory
name: Dwarven Mining Equipment name: Dwarven Mining Equipment
description: Get your mining equipment here, and above all keep digging!
spriteName: mining spriteName: mining
startingInventory: startingInventory:
Pickaxe: 4 Pickaxe: 4

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: NutriMaxInventory id: NutriMaxInventory
name: NutriMax name: NutriMax
description: A vending machine containing nutritional substances for plants and botanical tools.
spriteName: nutri spriteName: nutri
startingInventory: startingInventory:
HydroponicsToolSpade: 3 HydroponicsToolSpade: 3

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: RobotechDeluxeInventory id: RobotechDeluxeInventory
name: Robotech Deluxe name: Robotech Deluxe
description: All the fine parts you need in one vending machine!
spriteName: robotics spriteName: robotics
startingInventory: startingInventory:
#TO DO: add missing prototypes #TO DO: add missing prototypes

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: SecTechInventory id: SecTechInventory
name: SecTech name: SecTech
description: "A vending machine containing Security equipment. A label reads \"SECURITY PERSONNEL ONLY\"."
animationDuration: 2.8 animationDuration: 2.8
spriteName: sec spriteName: sec
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: MegaSeedServitorInventory id: MegaSeedServitorInventory
name: MegaSeed Servitor name: MegaSeed Servitor
description: For when you need seeds fast. Hands down the best seed selection on the station!
animationDuration: 1.3 animationDuration: 1.3
spriteName: seeds spriteName: seeds
startingInventory: startingInventory:

View File

@@ -1,5 +1,4 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: SmartFridgeInventory id: SmartFridgeInventory
name: SmartFridge name: SmartFridge
description: A refrigerated storage unit for storing medicine and chemicals.
spriteName: smartfridge spriteName: smartfridge

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: GetmoreChocolateCorpInventory id: GetmoreChocolateCorpInventory
name: Getmore Chocolate Corp name: Getmore Chocolate Corp
description: A snack machine courtesy of the Getmore Chocolate Corporation, based out of Mars.
animationDuration: 0.5 animationDuration: 0.5
spriteName: snack spriteName: snack
startingInventory: startingInventory:

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: BodaInventory id: BodaInventory
name: BODA name: BODA
description: An old vending machine containing sweet water.
spriteName: sovietsoda spriteName: sovietsoda
startingInventory: startingInventory:
DrinkColaCan: 10 #typically hacked product. Default product is "soda" DrinkColaCan: 10 #typically hacked product. Default product is "soda"

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: AutoDrobeInventory id: AutoDrobeInventory
name: AutoDrobe name: AutoDrobe
description: A vending machine containing costumes.
spriteName: theater spriteName: theater
startingInventory: startingInventory:
ClothingMaskJoy: 2 ClothingMaskJoy: 2

View File

@@ -1,5 +1,4 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: VendomatInventory id: VendomatInventory
name: Vendomat name: Vendomat
description: "Only the finest robust equipment in space!"
spriteName: vendomat spriteName: vendomat

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: NanoMedInventory id: NanoMedInventory
name: NanoMed name: NanoMed
description: "It's a wall-mounted medical equipment dispenser. Natural chemicals only!"
spriteName: wallmed spriteName: wallmed
startingInventory: startingInventory:
Brutepack: 5 Brutepack: 5

View File

@@ -1,7 +1,6 @@
- type: vendingMachineInventory - type: vendingMachineInventory
id: YouToolInventory id: YouToolInventory
name: YouTool name: YouTool
description: "A vending machine containing standard tools. A label reads: \"Tools for tools.\""
animationDuration: 1.1 animationDuration: 1.1
spriteName: youtool spriteName: youtool
startingInventory: startingInventory:

View File

@@ -1,8 +1,8 @@
# Vending machine descriptions are stored in vendingMachineInventory YAML files.
- type: entity - type: entity
id: VendingMachine id: VendingMachine
parent: BaseMachinePowered parent: BaseMachinePowered
name: vending machine name: vending machine
description: Just add capitalism!
abstract: true abstract: true
components: components:
- type: Sprite - type: Sprite
@@ -132,7 +132,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineCart id: VendingMachineCart
name: PTech name: PTech
description: Cartridges for PDAs. description: PTech vending! Providing a ROBUST selection of PDA cartridges.
components: components:
- type: VendingMachine - type: VendingMachine
pack: PTechInventory pack: PTechInventory
@@ -218,7 +218,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineCoffee id: VendingMachineCoffee
name: Solar's Best Hot Drinks name: Solar's Best Hot Drinks
description: A vending machine which dispenses hot drinks. description: Served boiling so it stays hot all shift!
components: components:
- type: VendingMachine - type: VendingMachine
pack: HotDrinksMachineInventory pack: HotDrinksMachineInventory
@@ -312,6 +312,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineDiscount id: VendingMachineDiscount
name: Discount Dan's name: Discount Dan's
description: A vending machine containing discount snacks from the infamous 'Discount Dan' franchise.
components: components:
- type: VendingMachine - type: VendingMachine
pack: DiscountDansInventory pack: DiscountDansInventory
@@ -368,7 +369,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineMedical id: VendingMachineMedical
name: NanoMed Plus name: NanoMed Plus
description: Medical drug dispenser. description: It's a medical drug dispenser. Natural chemicals only!
components: components:
- type: VendingMachine - type: VendingMachine
pack: NanoMedPlusInventory pack: NanoMedPlusInventory
@@ -399,7 +400,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineNutri id: VendingMachineNutri
name: NutriMax name: NutriMax
description: A plant nutrients vendor. description: A vending machine containing nutritional substances for plants and botanical tools.
components: components:
- type: VendingMachine - type: VendingMachine
pack: NutriMaxInventory pack: NutriMaxInventory
@@ -430,6 +431,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineSec id: VendingMachineSec
name: SecTech name: SecTech
description: A vending machine containing Security equipment. A label reads SECURITY PERSONNEL ONLY.
components: components:
- type: VendingMachine - type: VendingMachine
pack: SecTechInventory pack: SecTechInventory
@@ -459,6 +461,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineSeeds id: VendingMachineSeeds
name: MegaSeed Servitor name: MegaSeed Servitor
description: For when you need seeds fast. Hands down the best seed selection on the station!
components: components:
- type: VendingMachine - type: VendingMachine
pack: MegaSeedServitorInventory pack: MegaSeedServitorInventory
@@ -488,6 +491,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineSmartFridge id: VendingMachineSmartFridge
name: SmartFridge name: SmartFridge
description: A refrigerated storage unit for storing medicine and chemicals.
components: components:
- type: VendingMachine - type: VendingMachine
pack: SmartFridgeInventory pack: SmartFridgeInventory
@@ -515,6 +519,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineSnack id: VendingMachineSnack
name: Getmore Chocolate Corp name: Getmore Chocolate Corp
description: A snack machine courtesy of the Getmore Chocolate Corporation, based out of Mars.
components: components:
- type: VendingMachine - type: VendingMachine
pack: GetmoreChocolateCorpInventory pack: GetmoreChocolateCorpInventory
@@ -544,6 +549,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineSovietSoda id: VendingMachineSovietSoda
name: BODA name: BODA
description: An old vending machine containing sweet water.
components: components:
- type: VendingMachine - type: VendingMachine
pack: BodaInventory pack: BodaInventory
@@ -573,6 +579,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineTheater id: VendingMachineTheater
name: AutoDrobe name: AutoDrobe
description: A vending machine containing costumes.
components: components:
- type: VendingMachine - type: VendingMachine
pack: AutoDrobeInventory pack: AutoDrobeInventory
@@ -606,6 +613,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineVendomat id: VendingMachineVendomat
name: Vendomat name: Vendomat
description: Only the finest robust equipment in space!
components: components:
- type: VendingMachine - type: VendingMachine
pack: VendomatInventory pack: VendomatInventory
@@ -636,6 +644,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineWallMedical id: VendingMachineWallMedical
name: NanoMed name: NanoMed
description: "It's a wall-mounted medical equipment dispenser. Natural chemicals only!"
components: components:
- type: VendingMachine - type: VendingMachine
pack: NanoMedInventory pack: NanoMedInventory
@@ -663,6 +672,7 @@
parent: VendingMachine parent: VendingMachine
id: VendingMachineYouTool id: VendingMachineYouTool
name: YouTool name: YouTool
description: "A vending machine containing standard tools. A label reads: Tools for tools."
components: components:
- type: VendingMachine - type: VendingMachine
pack: YouToolInventory pack: YouToolInventory