Add durable recipe discovery and profession crafting
This commit is contained in:
@@ -119,7 +119,7 @@ func TestGatherCraftAndPermanentDeath(t *testing.T) {
|
||||
}
|
||||
c.View.Inventory["wood"] = 3
|
||||
c.View.Inventory["ore"] = 2
|
||||
if err := w.Intent(id, p.Intent{Op: "craft", Seq: 5, Target: "spear"}); err != nil {
|
||||
if err := w.craft(c, "spear"); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if gearCount(c.View.Items, "spear") != 1 || c.View.Inventory["wood"] != 0 || c.View.Inventory["ore"] != 0 {
|
||||
|
||||
Reference in New Issue
Block a user