mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Added one-time ability for leaders to rename nation
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user