Uses for every material (clay jar, bedroll, pelt rug, fang necklace, bear cloak, pemmican, bait), Q to drop, K/M bag rows on 1-8, help pages; protocol 14
This commit is contained in:
@@ -63,7 +63,7 @@ func held_item_id() -> String:
|
||||
return s.id if s != null else ""
|
||||
|
||||
func select(i: int) -> void:
|
||||
selected = wrapi(i, 0, HOTBAR)
|
||||
selected = wrapi(i, 0, inventory.size()) # (any bag slot: player.gd's rows)
|
||||
selected_changed.emit()
|
||||
|
||||
func held_heat() -> float:
|
||||
@@ -85,7 +85,7 @@ func bed_piece(world: Node3D) -> Node3D:
|
||||
if not has_bed_spawn:
|
||||
return null
|
||||
for p in world.all_pieces():
|
||||
if p.item_id == "bed" and claims_bed(p):
|
||||
if p.is_in_group("bed") and claims_bed(p):
|
||||
return p
|
||||
return null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user