mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 19:44:58 +01:00
morewip
This commit is contained in:
@@ -85,5 +85,5 @@
|
||||
// Damages the component. Contains necessary checks. Negative damage "heals" the component.
|
||||
/obj/item/weapon/computer_hardware/proc/take_damage(var/amount)
|
||||
damage += round(amount) // We want nice rounded numbers here.
|
||||
damage = between(0, damage, max_damage) // Clamp the value.
|
||||
damage = max(0, min(damage, max_damage)) // Clamp the value.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user