diff --git a/code/game/gamemodes/nations/nations.dm b/code/game/gamemodes/nations/nations.dm index 2d453e60d57..cff052cc737 100644 --- a/code/game/gamemodes/nations/nations.dm +++ b/code/game/gamemodes/nations/nations.dm @@ -13,9 +13,9 @@ datum/game_mode/nations kickoff=1 send_intercept() split_teams() + assign_leaders() set_ai() // remove_access() - assign_leaders() for(var/mob/M in player_list) if(!istype(M,/mob/new_player)) M << sound('sound/effects/purge_siren.ogg') @@ -178,6 +178,8 @@ datum/game_mode/nations if(!N.current_leader) N.current_leader = pick(N.membership) N.current_leader << "You have been chosen to lead the nation of [N.current_name]!" + var/mob/living/carbon/human/H = N.current_leader + H.verbs += /mob/living/carbon/human/proc/set_nation_name /** * LateSpawn hook. diff --git a/code/game/gamemodes/nations/nationsprocs.dm b/code/game/gamemodes/nations/nationsprocs.dm new file mode 100644 index 00000000000..7f42fcc4294 --- /dev/null +++ b/code/game/gamemodes/nations/nationsprocs.dm @@ -0,0 +1,18 @@ +/mob/living/carbon/human/proc/set_nation_name() + set name = "Rename Nation" + set category = "Nations" + set desc = "Click to rename your nation. You are only able to do this once." + + + var/datum/game_mode/nations/mode = get_nations_mode() + if (!mode) return 1 + if(!mode.kickoff) return 1 + + if(mind && mind.nation && mind.nation.current_leader == src) + var/input = stripped_input(src,"What do you want to name your nation?", ,"", MAX_NAME_LEN) + + if(input) + mind.nation.current_name = input + src << "You rename your nation to [input]." + verbs -= /mob/living/carbon/human/proc/set_nation_name + return 1 \ No newline at end of file diff --git a/paradise.dme b/paradise.dme index 1ec92079776..dd5f8e8ccac 100644 --- a/paradise.dme +++ b/paradise.dme @@ -354,6 +354,7 @@ #include "code\game\gamemodes\mutiny\directives\vox_heist.dm" #include "code\game\gamemodes\nations\nations.dm" #include "code\game\gamemodes\nations\nationsdatums.dm" +#include "code\game\gamemodes\nations\nationsprocs.dm" #include "code\game\gamemodes\nuclear\nuclear.dm" #include "code\game\gamemodes\nuclear\nuclearbomb.dm" #include "code\game\gamemodes\nuclear\pinpointer.dm"