mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Adds total law changes counter
This commit is contained in:
@@ -383,6 +383,8 @@ var/datum/subsystem/ticker/ticker
|
||||
world << "<b>[aiPlayer.name] (Played by: [aiPlayer.mind.key])'s laws when it was deactivated were:</b>"
|
||||
aiPlayer.show_laws(1)
|
||||
|
||||
world << "<b>Total law changes: [aiPlayer.law_change_counter]</b>"
|
||||
|
||||
if (aiPlayer.connected_robots.len)
|
||||
var/robolist = "<b>[aiPlayer.real_name]'s minions were:</b> "
|
||||
for(var/mob/living/silicon/robot/robo in aiPlayer.connected_robots)
|
||||
|
||||
@@ -43,12 +43,14 @@ AI MODULES
|
||||
var/law2log = src.transmitInstructions(reciever, user) //Freeforms return something extra we need to log
|
||||
user << "Upload complete. [reciever]'s laws have been modified."
|
||||
reciever.show_laws()
|
||||
reciever.law_change_counter++
|
||||
if(isAI(reciever))
|
||||
var/mob/living/silicon/ai/A = reciever
|
||||
for(var/mob/living/silicon/robot/R in A.connected_robots)
|
||||
if(R.lawupdate)
|
||||
R << "From now on, these are your laws:"
|
||||
R.show_laws()
|
||||
R.law_change_counter++
|
||||
|
||||
var/time = time2text(world.realtime,"hh:mm:ss")
|
||||
lawchanges.Add("[time] <B>:</B> [user.name]([user.key]) used [src.name] on [reciever.name]([reciever.key]).[law2log ? " The law specified [law2log]" : ""]")
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
var/med_hud = DATA_HUD_MEDICAL_ADVANCED //Determines the med hud to use
|
||||
var/sec_hud = DATA_HUD_SECURITY_ADVANCED //Determines the sec hud to use
|
||||
|
||||
var/law_change_counter = 0
|
||||
|
||||
/mob/living/silicon/contents_explosion(severity, target)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user