Captain's Charter

This commit is contained in:
KorPhaeron
2016-06-07 00:14:39 -05:00
parent 73aec2d8e8
commit 69a6ce2e5d
4 changed files with 26 additions and 2 deletions
@@ -49,6 +49,5 @@
#undef CHALLENGE_TELECRYSTALS
#undef CHALLENGE_TIME_LIMIT
#undef CHALLENGE_MIN_PLAYERS
#undef CHALLENGE_SHUTTLE_DELAY
+24
View File
@@ -0,0 +1,24 @@
/obj/item/station_charter
name = "station charter"
icon = 'icons/obj/wizard.dmi'
icon_state = "scroll2"
desc = "An official document entrusting the governance of the station and surrounding space to the Captain. "
var/used = FALSE
/obj/item/station_charter/attack_self(mob/living/user)
if(used)
user << "The station has already been named."
return
used = TRUE
if(world.time > CHALLENGE_TIME_LIMIT) //5 minutes
user << "The crew has already settled into the shift. It probably wouldn't be good to rename the station right now."
return
var/new_name = reject_bad_name( input(user, "What do you want to name [station_name()]?") as text|null )
if(new_name)
world.name = new_name
minor_announce("[user.real_name] has designated your station as [world.name]", "Captain's Charter", 0)
else
user << "<font color='red'>Invalid name. Your name should be at least 2 and at most [MAX_NAME_LEN] characters long. It may only contain the characters A-Z, a-z, -, ' and .</font>"
used = FALSE
+1 -1
View File
@@ -35,7 +35,7 @@ Captain
suit = /obj/item/clothing/suit/armor/vest/capcarapace
shoes = /obj/item/clothing/shoes/sneakers/brown
head = /obj/item/clothing/head/caphat
backpack_contents = list(/obj/item/weapon/melee/classic_baton/telescopic=1)
backpack_contents = list(/obj/item/weapon/melee/classic_baton/telescopic=1, /obj/item/station_charter=1)
backpack = /obj/item/weapon/storage/backpack/captain
satchel = /obj/item/weapon/storage/backpack/satchel_cap
+1
View File
@@ -569,6 +569,7 @@
#include "code\game\objects\items\body_egg.dm"
#include "code\game\objects\items\bodybag.dm"
#include "code\game\objects\items\candle.dm"
#include "code\game\objects\items\charter.dm"
#include "code\game\objects\items\control_wand.dm"
#include "code\game\objects\items\crayons.dm"
#include "code\game\objects\items\dehy_carp.dm"