Weapon Analysis Printing (#10343)

This commit is contained in:
Geeves
2021-02-01 10:22:01 +01:00
committed by GitHub
parent 0e01772360
commit cc50f53ecf
11 changed files with 228 additions and 76 deletions
+10
View File
@@ -846,3 +846,13 @@ modules/mob/living/carbon/human/life.dm if you die, you will be zoomed out.
/obj/item/proc/extinguish_fire()
return
/obj/item/proc/get_print_info(var/no_clear = TRUE)
if(no_clear)
. = ""
. += "Damage: [force]<br>"
. += "Damage Type: [damtype]<br>"
. += "Sharp: [sharp ? "yes" : "no"]<br>"
. += "Dismemberment: [edge ? "likely to dismember" : "unlikely to dismember"]<br>"
. += "Penetration: [armor_penetration]<br>"
. += "Throw Force: [throwforce]<br>"
@@ -122,6 +122,15 @@
user.visible_message("<span class='danger'>\The [user] blocks [attack_text] with \the [src]!</span>")
return 1
/obj/item/melee/energy/get_print_info()
. = ..()
. += "Active Damage: [active_force]<br>"
. += "Active Throw Force: [active_throwforce]<br>"
. += "Blocks Bullets: [can_block_bullets ? "true" : "false"]<br>"
. += "Block Chance: [base_block_chance]<br>"
. += "Projectile Reflection Chance: [base_reflectchance]<br>"
. += "Shield Rating: [shield_power]<br>"
/obj/item/melee/energy/glaive
name = "energy glaive"
desc = "An energized glaive."