P4 hazards: food spoilage with rot speed setting, smoking rack and salt, food poisoning, harsher blizzards, hard winters with lake ice, lightning on trees, snow on roofs (protocol 11)
This commit is contained in:
@@ -226,7 +226,7 @@ func _on_died(peer: int) -> void:
|
||||
var at: Vector3 = pos + off
|
||||
at.y = w.terrain.sample_height(at.x, at.z) + 0.05
|
||||
w.drop_item(st.id, int(st.count), Transform3D(Basis(Vector3.UP, rng.randf() * TAU), at),
|
||||
{"dur": int(st.dur)} if st.has("dur") else {})
|
||||
Inventory.extra_of(st))
|
||||
p.inventory.load_data(Inventory.new(p.inventory.size()).to_data())
|
||||
# ("keep": you keep everything.)
|
||||
# They stay down on the death screen for a few seconds, then ask to respawn.
|
||||
@@ -369,7 +369,7 @@ func _run(p: Node3D, what: String, a: Array) -> void:
|
||||
var left: int = p.inventory.add_stack(p.cursor)
|
||||
if left > 0:
|
||||
w.drop_item(p.cursor.id, left, Transform3D(Basis(), p.global_position + Vector3(0, 0.1, 0)),
|
||||
{"dur": int(p.cursor.dur)} if p.cursor.has("dur") else {})
|
||||
Inventory.extra_of(p.cursor))
|
||||
p.cursor = null
|
||||
"debug_give":
|
||||
if cheats and not ItemDB.get_item(_s(a, 0)).is_empty():
|
||||
|
||||
Reference in New Issue
Block a user