mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Added a button admins can press to motivate mechanics to perform their duties (#27361)
* mechanic motivation collar * now works as internals * add logging * add zlevel check, require 80% charge
This commit is contained in:
@@ -897,6 +897,7 @@ var/global/floorIsLava = 0
|
||||
<A href='?src=\ref[src];secretsfun=bomberdestroy'>Make Bomberman Bombs actually destroy structures</A><BR>
|
||||
<A href='?src=\ref[src];secretsfun=bombernohurt'>Make Bomberman Bombs harmless to players (default)</A><BR>
|
||||
<A href='?src=\ref[src];secretsfun=bombernodestroy'>Make Bomberman Bombs harmless to the environment (default)</A><BR>
|
||||
<A href='?src=\ref[src];secretsfun=mechanics_motivator'>Incentivize Mechanics to do their job</A><BR>
|
||||
<B>Final Solutions</B><BR>
|
||||
<I>(Warning, these will end the round!)</I><BR>
|
||||
<BR>
|
||||
|
||||
@@ -4010,6 +4010,24 @@
|
||||
B.destroy_environnement = 0
|
||||
message_admins("[key_name_admin(usr)] disabled the environnement damage of the Bomberman Bomb Dispensers currently in the world.")
|
||||
log_admin("[key_name_admin(usr)] disabled the environnement damage of the Bomberman Bomb Dispensers currently in the world.")
|
||||
if("mechanics_motivator")
|
||||
if(!world.has_round_started())
|
||||
to_chat(usr, "The round has not started yet,")
|
||||
return
|
||||
var/equipped_count = 0
|
||||
for(var/mob/living/dude in player_list)
|
||||
if(dude.mind?.assigned_role != "Mechanic")
|
||||
continue
|
||||
var/obj/item/current_mask = dude.get_item_by_slot(slot_wear_mask)
|
||||
if(current_mask)
|
||||
if(istype(current_mask, /obj/item/clothing/mask/explosive_collar/mechanic))
|
||||
continue
|
||||
dude.drop_item(current_mask, dude.loc, TRUE)
|
||||
var/obj/item/clothing/mask/explosive_collar/mechanic/cool_necklace = new
|
||||
dude.equip_to_slot(cool_necklace, slot_wear_mask)
|
||||
equipped_count++
|
||||
to_chat(usr, "<span class='notice'>Equipped [equipped_count] mechanics with cool necklaces.</span>")
|
||||
log_admin("[key_name(usr)] equipped [equipped_count] Mechanics with cool necklaces.")
|
||||
if("togglebombmethod")
|
||||
feedback_inc("admin_secrets_fun_used",1)
|
||||
feedback_add_details("admin_secrets_fun_used","BM")
|
||||
|
||||
Reference in New Issue
Block a user