Add durable recipe discovery and profession crafting
This commit is contained in:
@@ -166,7 +166,7 @@ func TestLegacyEquipmentMigrationAndAtomicFailures(t *testing.T) {
|
||||
delete(w.Corpses, "legacy")
|
||||
c.View.Inventory["wood"] = 3
|
||||
c.View.Inventory["ore"] = 2
|
||||
w.Balance.Recipes["spear"] = content.Recipe{Inputs: map[string]int64{"wood": 3, "ore": 2}, Outputs: map[string]int64{"spear": 100001}}
|
||||
w.Balance.Crafting.Recipes[0].Outputs = map[string]int64{"spear": 100001}
|
||||
if w.craft(c, "spear") == nil || c.View.Inventory["wood"] != 3 || c.View.Inventory["ore"] != 2 {
|
||||
t.Fatal("failed craft consumed materials")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user