- Maintenance drone law reset no longer spam admin's logs.
This commit is contained in:
Atlantis
2015-07-29 20:19:31 +02:00
parent b9d8cdaee1
commit 55e41b9afd
2 changed files with 12 additions and 9 deletions

View File

@@ -39,19 +39,22 @@
laws.delete_law(law) laws.delete_law(law)
log_and_message_admins("has deleted a law belonging to [src]: [law.law]") log_and_message_admins("has deleted a law belonging to [src]: [law.law]")
/mob/living/silicon/proc/clear_inherent_laws() /mob/living/silicon/proc/clear_inherent_laws(var/silent = 0)
laws_sanity_check() laws_sanity_check()
laws.clear_inherent_laws() laws.clear_inherent_laws()
if(!silent)
log_and_message_admins("cleared the inherent laws of [src]") log_and_message_admins("cleared the inherent laws of [src]")
/mob/living/silicon/proc/clear_ion_laws() /mob/living/silicon/proc/clear_ion_laws(var/silent = 0)
laws_sanity_check() laws_sanity_check()
laws.clear_ion_laws() laws.clear_ion_laws()
if(!silent)
log_and_message_admins("cleared the ion laws of [src]") log_and_message_admins("cleared the ion laws of [src]")
/mob/living/silicon/proc/clear_supplied_laws() /mob/living/silicon/proc/clear_supplied_laws(var/silent = 0)
laws_sanity_check() laws_sanity_check()
laws.clear_supplied_laws() laws.clear_supplied_laws()
if(!silent)
log_and_message_admins("cleared the supplied laws of [src]") log_and_message_admins("cleared the supplied laws of [src]")
/mob/living/silicon/proc/statelaws(var/datum/ai_laws/laws) /mob/living/silicon/proc/statelaws(var/datum/ai_laws/laws)

View File

@@ -217,9 +217,9 @@
death() death()
/mob/living/silicon/robot/drone/proc/full_law_reset() /mob/living/silicon/robot/drone/proc/full_law_reset()
clear_supplied_laws() clear_supplied_laws(1)
clear_inherent_laws() clear_inherent_laws(1)
clear_ion_laws() clear_ion_laws(1)
laws = new law_type laws = new law_type
//Reboot procs. //Reboot procs.