Merge pull request #10192 from farie82/Mining-bot-shoot

Mining bots KA blasts now do weakened damage in pressured zones
This commit is contained in:
variableundefined
2018-11-12 08:41:45 +08:00
committed by GitHub
+12
View File
@@ -101,6 +101,18 @@
DropOre(0)
qdel(src)
/mob/living/simple_animal/hostile/mining_drone/Shoot(atom/targeted_atom)
var/obj/item/projectile/kinetic/K = ..()
var/turf/proj_turf = get_turf(K)
if(!isturf(proj_turf))
return
var/datum/gas_mixture/environment = proj_turf.return_air()
var/pressure = environment.return_pressure()
if(pressure > 50)
K.name = "weakened [K.name]"
K.damage *= K.pressure_decrease
/mob/living/simple_animal/hostile/mining_drone/attack_hand(mob/living/carbon/human/M)
if(M.a_intent == INTENT_HELP)
toggle_mode()