economy testing (#1507)

* pricing check 1

* Update CP14Economy.cs

* seed and dye

* mini tweak

* seed and test mithril

* hammer and pickaxe

* blade

* expensive check

* fix test

* Update CP14Workbench.cs

* misc

* misc 2

* Update CP14Workbench.cs

* Update CP14Workbench.cs

* misc 3

* misc 4

* misc 5

* meat

* food

* dough

* Clothing

* misc

* food 2

* food 3

* Wallpaper

* Wallpape 2

* Floor

* Floor 2

* carpet

* plushie

* Plushie 2

* meat 66

* food 4

* misc 9

* misc 10

* Bucket

* meat 8

* meat 10

* rope

* TagResource deleted

* meat 11

* meat 12

* meat 13

* meat 14

* meat 15

* fix

* meat 16

---------

Co-authored-by: Nimfar11 <nimfiar@gmail.com>
Co-authored-by: Nim <128169402+Nimfar11@users.noreply.github.com>
This commit is contained in:
Red
2025-07-11 18:54:36 +03:00
committed by GitHub
parent 37ece7228f
commit b51e80c335
69 changed files with 653 additions and 376 deletions

View File

@@ -22,7 +22,7 @@ public sealed partial class SolutionResource : CP14WorkbenchCraftRequirement
[DataField]
public EntProtoId DummyEntityIcon = "CP14LiquidDropDummy";
public override bool CheckRequirement(EntityManager entManager,
public override bool CheckRequirement(IEntityManager entManager,
IPrototypeManager protoManager,
HashSet<EntityUid> placedEntities)
{
@@ -52,7 +52,7 @@ public sealed partial class SolutionResource : CP14WorkbenchCraftRequirement
return false;
}
public override void PostCraft(EntityManager entManager, IPrototypeManager protoManager, HashSet<EntityUid> placedEntities)
public override void PostCraft(IEntityManager entManager, IPrototypeManager protoManager, HashSet<EntityUid> placedEntities)
{
var solutionSys = entManager.System<SharedSolutionContainerSystem>();
foreach (var ent in placedEntities)
@@ -79,7 +79,7 @@ public sealed partial class SolutionResource : CP14WorkbenchCraftRequirement
}
}
public override double GetPrice(EntityManager entManager, IPrototypeManager protoManager)
public override double GetPrice(IEntityManager entManager, IPrototypeManager protoManager)
{
if (!protoManager.TryIndex(Reagent, out var indexedReagent))
return 0;