Merge pull request #2268 from CHOMPStationBot/upstream-merge-10610

[MIRROR] Makes machinery destroyable by projectiles
This commit is contained in:
Nadyr
2021-06-23 19:09:41 -04:00
committed by GitHub
5 changed files with 94 additions and 7 deletions
+1 -2
View File
@@ -460,8 +460,7 @@ GLOBAL_LIST_EMPTY(smeses)
..()
/obj/machinery/power/smes/bullet_act(var/obj/item/projectile/Proj)
if(Proj.damage_type == BRUTE || Proj.damage_type == BURN)
take_damage(Proj.damage)
take_damage(Proj.get_structure_damage())
/obj/machinery/power/smes/ex_act(var/severity)
// Two strong explosions will destroy a SMES.