mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes #10356
- Maintenance drone law reset no longer spam admin's logs.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user