mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-15 11:39:18 +00:00
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.
22 lines
657 B
Plaintext
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
|