Adds a few more smites (#50689)

* Adds a few more smites

* Apply suggestions from code review

Co-authored-by: Rohesie <rohesie@gmail.com>

Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
skoglol
2020-05-01 02:29:03 -03:00
committed by GitHub
co-authored by Rohesie
parent c727ab6115
commit 47c3589d4f
2 changed files with 35 additions and 1 deletions
+32 -1
View File
@@ -1054,7 +1054,20 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!check_rights(R_ADMIN) || !check_rights(R_FUN))
return
var/list/punishment_list = list(ADMIN_PUNISHMENT_LIGHTNING, ADMIN_PUNISHMENT_BRAINDAMAGE, ADMIN_PUNISHMENT_GIB, ADMIN_PUNISHMENT_BSA, ADMIN_PUNISHMENT_FIREBALL, ADMIN_PUNISHMENT_ROD, ADMIN_PUNISHMENT_SUPPLYPOD_QUICK, ADMIN_PUNISHMENT_SUPPLYPOD, ADMIN_PUNISHMENT_MAZING, ADMIN_PUNISHMENT_IMMERSE)
var/list/punishment_list = list(ADMIN_PUNISHMENT_LIGHTNING,
ADMIN_PUNISHMENT_BRAINDAMAGE,
ADMIN_PUNISHMENT_GIB,
ADMIN_PUNISHMENT_BSA,
ADMIN_PUNISHMENT_FIREBALL,
ADMIN_PUNISHMENT_ROD,
ADMIN_PUNISHMENT_SUPPLYPOD_QUICK,
ADMIN_PUNISHMENT_SUPPLYPOD,
ADMIN_PUNISHMENT_MAZING,
ADMIN_PUNISHMENT_IMMERSE,
ADMIN_PUNISHMENT_FAT,
ADMIN_PUNISHMENT_FAKEBWOINK,
ADMIN_PUNISHMENT_NUGGET
)
var/punishment = input("Choose a punishment", "DIVINE SMITING") as null|anything in sortList(punishment_list)
@@ -1120,6 +1133,24 @@ Traitors and the like can also be revived with the previous role mostly intact.
return
if(ADMIN_PUNISHMENT_IMMERSE)
immerse_player(target)
if(ADMIN_PUNISHMENT_FAT)
target.set_nutrition(NUTRITION_LEVEL_FAT*2)
if(ADMIN_PUNISHMENT_FAKEBWOINK)
SEND_SOUND(target, 'sound/effects/adminhelp.ogg')
if(ADMIN_PUNISHMENT_NUGGET)
if(!iscarbon(target))
to_chat(usr,"<span class='warning'>This must be used on a carbon mob.</span>", confidential = TRUE)
return
var/mob/living/carbon/C = target
var/timer = 2 SECONDS
for(var/obj/item/bodypart/thing in C.bodyparts)
if(thing.body_part == HEAD || thing.body_part == CHEST)
continue
addtimer(CALLBACK(thing, /obj/item/bodypart/.proc/dismember), timer)
addtimer(CALLBACK(GLOBAL_PROC, .proc/playsound, C, 'sound/effects/cartoon_pop.ogg', 70), timer)
addtimer(CALLBACK(C, /mob/living/.proc/spin, 4, 1), timer - 0.4 SECONDS)
timer += 2 SECONDS
punish_log(target, punishment)