Ports the radiation subsystem and cleans up damage flags. (#15715)

This commit is contained in:
Matt Atlas
2023-02-07 13:22:47 +01:00
committed by GitHub
parent 5527fc0810
commit 31c73ead85
198 changed files with 981 additions and 649 deletions
+4 -4
View File
@@ -39,7 +39,7 @@
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message(SPAN_WARNING("[user]'s hand slips, smearing some of [tool] in the incision in [target]'s [affected.name]!") , \
SPAN_WARNING("Your hand slips, smearing some of [tool] in the incision in [target]'s [affected.name]!"))
target.apply_damage(15, PAIN)
target.apply_damage(15, DAMAGE_PAIN)
/singleton/surgery_step/set_bone
name = "Set Broken Bone"
@@ -79,7 +79,7 @@
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message(SPAN_WARNING("[user]'s hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!") , \
SPAN_WARNING("Your hand slips, damaging the bone in [target]'s [affected.name] with \the [tool]!"))
target.apply_damage(5, BRUTE, target_zone, 0, tool, damage_flags = tool.damage_flags())
target.apply_damage(5, DAMAGE_BRUTE, target_zone, 0, tool, damage_flags = tool.damage_flags())
/singleton/surgery_step/mend_skull
name = "Repair Broken Skull"
@@ -113,7 +113,7 @@
user.visible_message(SPAN_WARNING("[user]'s hand slips, damaging [target]'s face with \the [tool]!") , \
SPAN_WARNING("Your hand slips, damaging [target]'s face with \the [tool]!"))
var/obj/item/organ/external/head/h = affected
target.apply_damage(10, BRUTE, target_zone, 0, tool, damage_flags = tool.damage_flags())
target.apply_damage(10, DAMAGE_BRUTE, target_zone, 0, tool, damage_flags = tool.damage_flags())
h.disfigured = 1
/singleton/surgery_step/finish_bone
@@ -153,4 +153,4 @@
var/obj/item/organ/external/affected = target.get_organ(target_zone)
user.visible_message(SPAN_WARNING("[user]'s hand slips, smearing [tool] in the incision in [target]'s [affected.name]!") , \
SPAN_WARNING("Your hand slips, smearing [tool] in the incision in [target]'s [affected.name]!"))
target.apply_damage(15, PAIN)
target.apply_damage(15, DAMAGE_PAIN)