Merge pull request #1500 from Citadel-Station-13/upstream-merge-28165
[MIRROR] Adds Medal Commendations!
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
GLOBAL_LIST_EMPTY(commendations)
|
||||
Regular → Executable
+8
@@ -583,6 +583,14 @@ SUBSYSTEM_DEF(ticker)
|
||||
|
||||
mode.declare_station_goal_completion()
|
||||
|
||||
//medals, placed far down so that people can actually see the commendations.
|
||||
if(GLOB.commendations)
|
||||
to_chat(world, "<b><font size=3>Medal Commendations:</font></b>")
|
||||
for (var/com in GLOB.commendations)
|
||||
to_chat(world, com)
|
||||
|
||||
CHECK_TICK
|
||||
|
||||
CHECK_TICK
|
||||
|
||||
//Adds the del() log to world.log in a format condensable by the runtime condenser found in tools
|
||||
|
||||
Regular → Executable
+8
@@ -22,6 +22,7 @@
|
||||
var/internals_slot = null //ID of slot containing a gas tank
|
||||
var/list/backpack_contents = null // In the list(path=count,otherpath=count) format
|
||||
var/list/implants = null
|
||||
var/accessory = null
|
||||
|
||||
var/can_be_admin_equipped = TRUE // Set to FALSE if your outfit requires runtime parameters
|
||||
|
||||
@@ -64,6 +65,13 @@
|
||||
if(suit_store)
|
||||
H.equip_to_slot_or_del(new suit_store(H),slot_s_store)
|
||||
|
||||
if(accessory)
|
||||
var/obj/item/clothing/under/U = H.w_uniform
|
||||
if(U)
|
||||
U.attach_accessory(new accessory(H))
|
||||
else
|
||||
WARNING("Unable to equip accessory [accessory] in outfit [name]. No uniform present!")
|
||||
|
||||
if(l_hand)
|
||||
H.put_in_l_hand(new l_hand(H))
|
||||
if(r_hand)
|
||||
|
||||
@@ -85,6 +85,7 @@
|
||||
item_color = "bronze"
|
||||
materials = list(MAT_METAL=1000)
|
||||
resistance_flags = FIRE_PROOF
|
||||
var/commended = FALSE
|
||||
|
||||
//Pinning medals on people
|
||||
/obj/item/clothing/accessory/medal/attack(mob/living/carbon/human/M, mob/living/user)
|
||||
@@ -103,6 +104,9 @@
|
||||
else
|
||||
user.visible_message("[user] is trying to pin [src] on [M]'s chest.", \
|
||||
"<span class='notice'>You try to pin [src] on [M]'s chest.</span>")
|
||||
var/input
|
||||
if(!commended && user != M)
|
||||
input = stripped_input(user,"Please input a reason for this commendation, it will be recorded by Nanotrasen.", ,"", 140)
|
||||
if(do_after(user, delay, target = M))
|
||||
if(U.attach_accessory(src, user, 0)) //Attach it, do not notify the user of the attachment
|
||||
if(user == M)
|
||||
@@ -110,6 +114,12 @@
|
||||
else
|
||||
user.visible_message("[user] pins \the [src] on [M]'s chest.", \
|
||||
"<span class='notice'>You pin \the [src] on [M]'s chest.</span>")
|
||||
if(input)
|
||||
SSblackbox.add_details("commendation", json_encode(list("commender" = "[user.real_name]", "commendee" = "[M.real_name]", "medal" = "[src]", "reason" = input)))
|
||||
GLOB.commendations += "[user.real_name] awarded <b>[M.real_name]</b> the <font color='blue'>[name]</font>! \n- [input]"
|
||||
commended = TRUE
|
||||
log_game("<b>[key_name(M)]</b> was given the following commendation by <b>[key_name(user)]</b>: [input]")
|
||||
message_admins("<b>[key_name(M)]</b> was given the following commendation by <b>[key_name(user)]</b>: [input]")
|
||||
|
||||
else to_chat(user, "<span class='warning'>Medals can only be pinned on jumpsuits!</span>")
|
||||
else ..()
|
||||
|
||||
Regular → Executable
+1
@@ -47,6 +47,7 @@ Captain
|
||||
|
||||
implants = list(/obj/item/weapon/implant/mindshield)
|
||||
|
||||
accessory = /obj/item/clothing/accessory/medal/gold/captain
|
||||
|
||||
/*
|
||||
Head of Personnel
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
#include "code\_globalvars\lists\flavor_misc.dm"
|
||||
#include "code\_globalvars\lists\maintenance_loot.dm"
|
||||
#include "code\_globalvars\lists\mapping.dm"
|
||||
#include "code\_globalvars\lists\medals.dm"
|
||||
#include "code\_globalvars\lists\mobs.dm"
|
||||
#include "code\_globalvars\lists\names.dm"
|
||||
#include "code\_globalvars\lists\objects.dm"
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
diff a/tgstation.dme b/tgstation.dme (rejected hunks)
|
||||
@@ -1169,7 +1169,7 @@
|
||||
#include "code\modules\clothing\masks\gasmask.dm"
|
||||
#include "code\modules\clothing\masks\hailer.dm"
|
||||
#include "code\modules\clothing\masks\miscellaneous.dm"
|
||||
-#include "code\modules\clothing\neck\ties.dm"
|
||||
+#include "code\modules\clothing\neck\neck.dm"
|
||||
#include "code\modules\clothing\outfits\ert.dm"
|
||||
#include "code\modules\clothing\outfits\standard.dm"
|
||||
#include "code\modules\clothing\shoes\bananashoes.dm"
|
||||
Reference in New Issue
Block a user