Fixed law zero problems (#20952)

This commit is contained in:
Pathid
2018-12-10 00:23:39 -08:00
committed by jknpj
parent 0f88047016
commit 8c064ff0a2
7 changed files with 23 additions and 19 deletions

View File

@@ -112,16 +112,18 @@
return
//testing("Lawtype: [lawtype]")
var/law_zeroth=null
var/law_zeroth_borg=null
var/law_zeroth = ""
var/law_zeroth_borg = ""
if(S.laws.zeroth || S.laws.zeroth_borg)
if(alert(src,"Do you also wish to clear law zero?","Yes","No") == "No")
law_zeroth=S.laws.zeroth
law_zeroth_borg=S.laws.zeroth
law_zeroth = S.laws.zeroth
law_zeroth_borg = S.laws.zeroth
else
S.laws.zeroth_lock = FALSE
S.laws = new lawtype
S.laws.zeroth=law_zeroth
S.laws.zeroth_borg=law_zeroth_borg
S.laws.zeroth = law_zeroth
S.laws.zeroth_borg = law_zeroth_borg
log_admin("[key_name(usr)] has reset [key_name(S)]: [lawtype]")
message_admins("[usr.key] has reset [key_name(S)]: [lawtype]")