Files
Bubberstation/code/modules/admin/smites/supply_pod.dm
Jared-Fogle 39fd90b17a Refactors smiting, adds smite build mode (#55327)
Refactors smiting out from being a large switch/case into datums.

Adds a new smite option to build mode. This lets you choose a smite and rapidly apply it to a lot of people, presumably for EORG. Requested for by...one of the admins, I forget which.
2020-12-11 00:22:00 +00:00

22 lines
657 B
Plaintext

#define SUPPLY_POD_FIRE_RANGE
/// Throws a supply pod at the target, with no item inside
/datum/smite/supply_pod
name = "Supply Pod"
// punish_log() is handled by the centcom_podlauncher datum
should_log = FALSE
/datum/smite/supply_pod/effect(client/user, mob/living/target)
. = ..()
var/datum/centcom_podlauncher/plaunch = new(user)
plaunch.specificTarget = target
plaunch.launchChoice = 0
plaunch.damageChoice = 1
plaunch.explosionChoice = 1
plaunch.temp_pod.damage = 40 // bring the mother fuckin ruckus
plaunch.temp_pod.explosionSize = list(0, 0, 0, SUPPLY_POD_FIRE_RANGE)
plaunch.temp_pod.effectStun = TRUE
#undef SUPPLY_POD_FIRE_RANGE