Merge pull request #659 from VOREStation/disallow-empty-ooc-notes

Force having OOC notes set to spawn
This commit is contained in:
Spades
2016-10-18 14:47:19 -04:00
committed by GitHub
4 changed files with 13 additions and 2 deletions
+2 -2
View File
@@ -274,8 +274,8 @@ var/global/datum/controller/gameticker/ticker
else if(!player.mind.assigned_role)
continue
else
player.create_character()
qdel(player)
if (player.create_character()) // VOREStation Edit
qdel(player)
proc/collect_minds()
@@ -305,6 +305,7 @@
if(!IsJobAvailable(rank))
src << alert("[rank] is not available. Please try another.")
return 0
if (!attempt_vr(src,"spawn_checks_vr",list())) return 0 // VOREStation Insert
spawning = 1
close_spawn_windows()
@@ -396,6 +397,7 @@
/mob/new_player/proc/create_character()
if (!attempt_vr(src,"spawn_checks_vr",list())) return 0 // VOREStation Insert
spawning = 1
close_spawn_windows()
@@ -0,0 +1,8 @@
/mob/new_player/proc/spawn_checks_vr()
var/pass = 1
if (config.allow_Metadata && client && client.prefs && (isnull(client.prefs.metadata) || length(client.prefs.metadata) < 5))
src << "<span class='warning'>You must first set your OOC notes before spawning in!</span>"
pass = 0
if (!pass)
alert(src,"There were problems with spawning your character. Check your message log for details.","Error","OK")
return pass
+1
View File
@@ -1769,6 +1769,7 @@
#include "code\modules\mob\new_player\login_vr.dm"
#include "code\modules\mob\new_player\logout.dm"
#include "code\modules\mob\new_player\new_player.dm"
#include "code\modules\mob\new_player\new_player_vr.dm"
#include "code\modules\mob\new_player\poll.dm"
#include "code\modules\mob\new_player\preferences_setup.dm"
#include "code\modules\mob\new_player\skill.dm"