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:
Paul Bailey
2026-11-06 11:49:42 +00:00
parent 5778d61763
commit 4b2e687188
29 changed files with 1457 additions and 40 deletions

View File

@@ -274,6 +274,8 @@ func reset_after_death() -> void:
func damage(amount: float, from: Vector3, by: String = "") -> void:
if dead:
return
if player != null and player.get("inventory") != null:
amount *= Actions.charm_mult(player.inventory, by) # (a fang necklace against wolves)
cause = "Killed by %s" % by if not by.is_empty() else "You were killed"
health = maxf(health - amount, 0.0)
_hurt_cd = HURT_NO_REGEN