Pizza crate price tweaks (#13651)
This commit is contained in:
@@ -38,10 +38,9 @@ public sealed class CargoTest
|
|||||||
var ent = entManager.SpawnEntity(proto.Product, new MapCoordinates(Vector2.Zero, mapId));
|
var ent = entManager.SpawnEntity(proto.Product, new MapCoordinates(Vector2.Zero, mapId));
|
||||||
var price = pricing.GetPrice(ent);
|
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);
|
entManager.DeleteEntity(ent);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mapManager.DeleteMap(mapId);
|
mapManager.DeleteMap(mapId);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
sprite: Objects/Consumable/Food/Baked/pizza.rsi
|
sprite: Objects/Consumable/Food/Baked/pizza.rsi
|
||||||
state: margherita
|
state: margherita
|
||||||
product: CrateFoodPizza
|
product: CrateFoodPizza
|
||||||
cost: 550
|
cost: 450
|
||||||
category: Food
|
category: Food
|
||||||
group: market
|
group: market
|
||||||
|
|
||||||
|
|||||||
@@ -164,6 +164,8 @@
|
|||||||
- type: StorageVisualizer
|
- type: StorageVisualizer
|
||||||
state_open: box-open
|
state_open: box-open
|
||||||
state_closed: box
|
state_closed: box
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 0
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
name: pizza box
|
name: pizza box
|
||||||
|
|||||||
@@ -10,3 +10,5 @@
|
|||||||
- state: icon
|
- state: icon
|
||||||
- type: Item
|
- type: Item
|
||||||
size: 1001
|
size: 1001
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 0
|
||||||
|
|||||||
@@ -51,6 +51,8 @@
|
|||||||
tags:
|
tags:
|
||||||
- Plastic
|
- Plastic
|
||||||
- Trash
|
- Trash
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 0
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: UtensilBase
|
parent: UtensilBase
|
||||||
@@ -110,3 +112,5 @@
|
|||||||
types:
|
types:
|
||||||
- Knife
|
- Knife
|
||||||
breakChance: 0.20
|
breakChance: 0.20
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user