Files
Bubberstation/code/modules/admin/smites/supply_pod.dm
SkyratBot 36e89191df [MIRROR] Refactors smiting, adds smite build mode (#2126)
* 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.

* Refactors smiting, adds smite build mode

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-12-11 00:39:56 +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