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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user