Tool prompts explain how to craft the missing tool
'Tree (needs a axe)' gave new players no way forward. The prompt now shows the recipe (Tab to craft from 2 stick, 2 flint), or tells you to select the tool if it's already in your bag.
This commit is contained in:
@@ -114,7 +114,7 @@ func harvest_hit(player: Node3D, node: Node3D, hit_point: Vector3) -> bool:
|
||||
var held: Dictionary = ItemDB.get_item(player.held_item_id())
|
||||
var tool: Dictionary = held.get("tool", {})
|
||||
if tool.get("kind", "") != node.tool_kind or int(tool.get("tier", 0)) < node.min_tier:
|
||||
notify.emit("Need a %s" % ("stone " + node.tool_kind))
|
||||
notify.emit("Needs a %s (Tab to craft)" % ItemDB.item_name("stone_" + node.tool_kind))
|
||||
return false
|
||||
var drops: Dictionary = node.hit(float(tool.get("damage", 1.0)), hit_point, player.global_position)
|
||||
for id in drops:
|
||||
|
||||
Reference in New Issue
Block a user