Pizza crate price tweaks (#13651)

This commit is contained in:
Visne
2023-01-24 01:36:49 +01:00
committed by GitHub
parent ae11ef8b9c
commit caed330d0b
5 changed files with 13 additions and 6 deletions

View File

@@ -38,12 +38,11 @@ public sealed class CargoTest
var ent = entManager.SpawnEntity(proto.Product, new MapCoordinates(Vector2.Zero, mapId));
var price = pricing.GetPrice(ent);
Assert.That(price, Is.LessThan(proto.PointCost), $"Found arbitrage on {proto.ID} cargo product! Cost is {proto.PointCost} but sell is {price}!");
Assert.That(price, Is.AtMost(proto.PointCost), $"Found arbitrage on {proto.ID} cargo product! Cost is {proto.PointCost} but sell is {price}!");
entManager.DeleteEntity(ent);
}
});
mapManager.DeleteMap(mapId);
});

View File

@@ -4,7 +4,7 @@
sprite: Objects/Consumable/Food/Baked/pizza.rsi
state: margherita
product: CrateFoodPizza
cost: 550
cost: 450
category: Food
group: market
@@ -47,7 +47,7 @@
cost: 750
category: Food
group: market
- type: cargoProduct
id: FoodCrateKvassTank
icon:

View File

@@ -164,6 +164,8 @@
- type: StorageVisualizer
state_open: box-open
state_closed: box
- type: StaticPrice
price: 0
- type: entity
name: pizza box

View File

@@ -9,4 +9,6 @@
layers:
- state: icon
- type: Item
size: 1001
size: 1001
- type: StaticPrice
price: 0

View File

@@ -51,6 +51,8 @@
tags:
- Plastic
- Trash
- type: StaticPrice
price: 0
- type: entity
parent: UtensilBase
@@ -110,3 +112,5 @@
types:
- Knife
breakChance: 0.20
- type: StaticPrice
price: 0