mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-22 04:07:04 +01:00
AKA [PORT] Refactors smiting, adds smite build mode tgstation/tgstation#55327 !! NOT!! A!! RUNNING!! BUILD!! LIGHTNING IS BROKEN IMMERSE IS COMMENTED OUT HALF OF THIS SHIT IS BROKEN DO NOT BASE YOURSELF ON THIS BUILD!!
19 lines
653 B
Plaintext
19 lines
653 B
Plaintext
/// Throws a custom pie at the target
|
|
/datum/smite/custompie
|
|
name = "Custom Pie"
|
|
|
|
/datum/smite/custompie/effect(client/user, mob/living/target)
|
|
. = ..()
|
|
var/obj/item/reagent_containers/food/snacks/pie/cream/nostun/A = new()
|
|
if(!A.reagents)
|
|
var/amount = input(usr, "Specify the reagent size of [A]", "Set Reagent Size", 50) as num|null
|
|
if(amount)
|
|
A.create_reagents(amount)
|
|
if(A.reagents)
|
|
var/chosen_id = choose_reagent_id(usr)
|
|
if(chosen_id)
|
|
var/amount = input(usr, "Choose the amount to add.", "Choose the amount.", A.reagents.maximum_volume) as num|null
|
|
if(amount)
|
|
A.reagents.add_reagent(chosen_id, amount)
|
|
A.splat(target)
|