From 2001dbc2e17d2dfe7948bf93d727638478c45d7f Mon Sep 17 00:00:00 2001 From: Roudenn Date: Mon, 19 Feb 2024 20:28:21 +0300 Subject: [PATCH] Emag states for cigs and coffe vendings --- .../Locale/ru-RU/backmen/store/category.ftl | 1 + .../Catalog/VendingMachines/emag_catalog.yml | 24 +++++++++++++++++++ .../Structures/Machines/vending_machines.yml | 4 ++++ .../Prototypes/Backmen/Store/categories.yml | 8 +++++++ 4 files changed, 37 insertions(+) diff --git a/Resources/Locale/ru-RU/backmen/store/category.ftl b/Resources/Locale/ru-RU/backmen/store/category.ftl index 0df217b0e59..934d5b42a0e 100644 --- a/Resources/Locale/ru-RU/backmen/store/category.ftl +++ b/Resources/Locale/ru-RU/backmen/store/category.ftl @@ -2,3 +2,4 @@ store-category-HappyHonk = Oбеды store-category-emag = Контрабанда store-category-vending-drinks = Hапитки +store-category-vendingcigs = Сигареты diff --git a/Resources/Prototypes/Backmen/Catalog/VendingMachines/emag_catalog.yml b/Resources/Prototypes/Backmen/Catalog/VendingMachines/emag_catalog.yml index 314c7366aa8..328ffbd09b7 100644 --- a/Resources/Prototypes/Backmen/Catalog/VendingMachines/emag_catalog.yml +++ b/Resources/Prototypes/Backmen/Catalog/VendingMachines/emag_catalog.yml @@ -43,3 +43,27 @@ conditions: - !type:ListingLimitedStockCondition stock: 1 + +# Cigs +- type: listing + id: CigaretteMachineInventoryEmag1 + productEntity: CigPackSyndicate + cost: + SpaceCash: 50 + categories: + - CigaretteMachineInventoryEmag + conditions: + - !type:ListingLimitedStockCondition + stock: 1 + +# Coffee +- type: listing + id: HotDrinksMachineInventoryEmag1 + productEntity: DrinkNothing + cost: + SpaceCash: 30 + categories: + - HotDrinksMachineInventoryEmag + conditions: + - !type:ListingLimitedStockCondition + stock: 2 diff --git a/Resources/Prototypes/Backmen/Entities/Structures/Machines/vending_machines.yml b/Resources/Prototypes/Backmen/Entities/Structures/Machines/vending_machines.yml index 57e65b99262..27d0d2e24dc 100644 --- a/Resources/Prototypes/Backmen/Entities/Structures/Machines/vending_machines.yml +++ b/Resources/Prototypes/Backmen/Entities/Structures/Machines/vending_machines.yml @@ -83,6 +83,8 @@ balance: SpaceCash: 0 - type: BuyStoreBank + emagCategories: + - CigaretteMachineInventoryEmag - type: ActivatableUI key: enum.StoreUiKey.Key singleUser: true @@ -221,6 +223,8 @@ balance: SpaceCash: 0 - type: BuyStoreBank + emagCategories: + - HotDrinksMachineInventoryEmag - type: ActivatableUI key: enum.StoreUiKey.Key singleUser: true diff --git a/Resources/Prototypes/Backmen/Store/categories.yml b/Resources/Prototypes/Backmen/Store/categories.yml index 6b9a7fd6d6f..e3ea54f1919 100644 --- a/Resources/Prototypes/Backmen/Store/categories.yml +++ b/Resources/Prototypes/Backmen/Store/categories.yml @@ -93,3 +93,11 @@ - type: storeCategory id: HappyHonkInventoryEmag name: store-category-emag + +- type: storeCategory + id: CigaretteMachineInventoryEmag + name: store-category-emag + +- type: storeCategory + id: HotDrinksMachineInventoryEmag + name: store-category-emag