mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-27 02:37:17 +01:00
power standardization 1/??????? - power scales, SMES/cellrate/APC/powernet/god i'm dying inside (#4103)
* start * about ready for conversions * oh boy * oh boy * powernet procs * draw power, surplus, avil, smes * cellrate, smes * cellrate, smes * more * wacky * aa * there we go * Wild! * ix * more * why * between needs to die * smart * oh no * fear * f * fixes * i hate parentheses * i hate parentheses * fixes * calc moment * *pawstamp* * acter * i hate myself too thank you * a * wack * cheat factors * that * fix * recomp * epic js moment * fix
This commit is contained in:
@@ -92,4 +92,4 @@
|
||||
// Damages the component. Contains necessary checks. Negative damage "heals" the component.
|
||||
/obj/item/computer_hardware/take_damage(amount)
|
||||
damage += round(amount) // We want nice rounded numbers here.
|
||||
damage = between(0, damage, max_damage) // Clamp the value.
|
||||
damage = clamp( damage, 0, max_damage) // Clamp the value.
|
||||
|
||||
Reference in New Issue
Block a user