Fixes a lot of bugs. (#16187)

* Fixes a lot of bugs.

* fix more shit

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2023-04-10 17:29:16 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 405f4d846c
commit fee7deabd7
32 changed files with 278 additions and 197 deletions
+1 -1
View File
@@ -45,7 +45,7 @@
icon_state = dead_icon
/obj/item/organ/internal/proc/surgical_fix(mob/user)
if(damage > min_broken_damage && !(status & ORGAN_ROBOT))
if(damage > min_broken_damage)
var/scarring = damage / max_damage
scarring = 1 - 0.5 * scarring ** 2 // Between ~15 and 50 percent loss.
var/new_max_dam = Floor(scarring * max_damage)