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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user