P1 iron: nuggets, ore, clay, kiln, smelter, forge, iron tools and arrows, lantern, tool wear and repair
This commit is contained in:
20
scripts/building/forge.gd
Normal file
20
scripts/building/forge.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
extends "res://scripts/building/piece.gd"
|
||||
## Forge: an anvil by a stone hearth. Unlocks "forge" recipes (iron tools,
|
||||
## nails, a lantern) within 6 m, and repairs iron tools. E opens crafting.
|
||||
|
||||
func _build() -> void:
|
||||
add_to_group("station:forge")
|
||||
if DisplayServer.get_name() == "headless":
|
||||
return
|
||||
var l := OmniLight3D.new()
|
||||
l.light_color = Color(1.0, 0.5, 0.2)
|
||||
l.omni_range = 4.0
|
||||
l.light_energy = 0.8
|
||||
l.position = Vector3(-0.55, 0.9, 0.2)
|
||||
add_child(l)
|
||||
|
||||
func interact_prompt(_player: Node) -> String:
|
||||
return "Forge [E] Craft"
|
||||
|
||||
func interact(player: Node) -> void:
|
||||
player.open_inventory(null)
|
||||
Reference in New Issue
Block a user