Added a config option which forbids the possessing of singularities. This option defaults to allowing the possession of singularities.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2697 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2011-12-16 06:06:16 +00:00
parent a3e938a3af
commit 15918b2e18
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -50,6 +50,8 @@
var/alert_desc_red_downto = "The self-destruct mechanism has been deactivated, there is still however an immediate serious threat to the station. Security may have weapons unholstered at all times, random searches are allowed and advised."
var/alert_desc_delta = "The station's self-destruct mechanism has been engaged. All crew are instructed to obey all instructions given by heads of staff. Any violations of these orders can be punished by death. This is not a drill."
var/forbid_singulo_possession = 0
//game_options.txt configs
var/health_threshold_crit = 0
@@ -246,6 +248,9 @@
if("alert_delta")
config.alert_desc_delta = value
if("forbid_singulo_possession")
forbid_singulo_possession = 1
else
diary << "Unknown setting in configuration: '[name]'"
+6
View File
@@ -271,6 +271,12 @@
/proc/possess(obj/O as obj in world)
set name = "Possess Obj"
set category = "Object"
if(istype(O,/obj/machinery/singularity))
if(config.forbid_singulo_possession)
usr << "It is forbidden to possess singularities."
return
usr.loc = O
usr.real_name = O.name
usr.name = O.name