Skip to content

Commit

Permalink
Space dragons are no longer instantly killed by devestating explosions (
Browse files Browse the repository at this point in the history
#10090)

* Update space_dragon.dm

* Fixes taking no damage from explosives
  • Loading branch information
PowerfulBacon authored Nov 26, 2023
1 parent e795169 commit 684fadb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions code/modules/mob/living/simple_animal/hostile/space_dragon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,23 @@
empty_contents()
. = ..()

/mob/living/simple_animal/hostile/space_dragon/ex_act(severity, target, origin)
set waitfor = FALSE
if(origin && istype(origin, /datum/spacevine_mutation) && isvineimmune(src))
return
// Deal with parent operations
contents_explosion(severity, target)
SEND_SIGNAL(src, COMSIG_ATOM_EX_ACT, severity, target)
// Run bomb armour
var/bomb_armor = (100 - getarmor(null, BOMB)) / 100
switch (severity)
if (EXPLODE_DEVASTATE)
adjustBruteLoss(180 * bomb_armor)
if (EXPLODE_HEAVY)
adjustBruteLoss(80 * bomb_armor)
if(EXPLODE_LIGHT)
adjustBruteLoss(30 * bomb_armor)

/**
* Allows space dragon to choose its own name.
*
Expand Down

0 comments on commit 684fadb

Please sign in to comment.