mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] runtime viewer fixes (#11668)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a466bf7b88
commit
fa407a034a
@@ -141,7 +141,7 @@
|
||||
changeling.set_cooldown(CHANGELING_SCREECH, 10 SECONDS)
|
||||
addtimer(CALLBACK(src, PROC_REF(changeling_screech_ready)), 10 SECONDS, TIMER_DELETE_ME)
|
||||
visible_message(span_notice("[src] appears to shout."))
|
||||
add_attack_logs(src,null,"Use dissonant shriek")
|
||||
add_attack_logs(src,src,"Use dissonant shriek")
|
||||
return TRUE
|
||||
|
||||
/mob/proc/changeling_screech_ready()
|
||||
|
||||
@@ -773,7 +773,7 @@ About the new airlock wires panel:
|
||||
else if(duration) //electrify door for the given duration seconds
|
||||
if(usr)
|
||||
shockedby += text("\[[time_stamp()]\] - [usr](ckey:[usr.ckey])")
|
||||
add_attack_logs(usr,name,"Electrified a door")
|
||||
add_attack_logs(usr,src,"Electrified a door")
|
||||
else
|
||||
shockedby += text("\[[time_stamp()]\] - EMP)")
|
||||
message = "The door is now electrified [duration == -1 ? "permanently" : "for [duration] second\s"]."
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
if(prob(effectchance * diode.rating))
|
||||
C.emp_act(4 - diode.rating)
|
||||
outmsg = span_notice("You shine the [src] into the lens of [C].")
|
||||
add_attack_logs(user,C.name,"Tried disabling using [src]")
|
||||
add_attack_logs(user,C,"Tried disabling using [src]")
|
||||
else
|
||||
outmsg = span_info("You missed the lens of [C] with [src].")
|
||||
|
||||
|
||||
@@ -1224,6 +1224,17 @@
|
||||
sleep(2)
|
||||
C.jumptocoord(x,y,z)
|
||||
|
||||
else if(href_list["viewruntime"])
|
||||
var/datum/error_viewer/error_viewer = locate(href_list["viewruntime"])
|
||||
if(!istype(error_viewer))
|
||||
to_chat(usr, span_warning("That runtime viewer no longer exists."), confidential = TRUE)
|
||||
return
|
||||
|
||||
if(href_list["viewruntime_backto"])
|
||||
error_viewer.show_to(owner, locate(href_list["viewruntime_backto"]), href_list["viewruntime_linear"])
|
||||
else
|
||||
error_viewer.show_to(owner, null, href_list["viewruntime_linear"])
|
||||
|
||||
else if(href_list["adminchecklaws"])
|
||||
output_ai_laws()
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ GLOBAL_DATUM(error_cache, /datum/error_viewer/error_cache)
|
||||
var/name = ""
|
||||
|
||||
/datum/error_viewer/proc/browse_to(client/user, html)
|
||||
var/datum/browser/browser = new(user.mob, "error_viewer", null, 600, 400)
|
||||
var/datum/browser/browser = new(user.mob, "error_viewer", null, 800, 400)
|
||||
browser.set_content(html)
|
||||
browser.set_head_content({"
|
||||
<style>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
/mob/living/silicon/robot/lost/randomlaws
|
||||
|
||||
/mob/living/silicon/robot/lost/randomlaws/apply_new_laws()
|
||||
var/old_name = laws.name
|
||||
var/old_name = laws?.name
|
||||
laws = give_random_lawset()
|
||||
if(old_name == laws.name)
|
||||
apply_new_laws()
|
||||
@@ -53,7 +53,7 @@
|
||||
/mob/living/silicon/robot/lost/randomlaws/vore
|
||||
|
||||
/mob/living/silicon/robot/lost/randomlaws/vore/apply_new_laws()
|
||||
var/old_name = laws.name
|
||||
var/old_name = laws?.name
|
||||
laws = give_random_lawset_vore(100)
|
||||
if(old_name == laws.name)
|
||||
apply_new_laws()
|
||||
@@ -61,7 +61,7 @@
|
||||
/mob/living/silicon/robot/lost/randomlaws/mixed
|
||||
|
||||
/mob/living/silicon/robot/lost/randomlaws/mixed/apply_new_laws()
|
||||
var/old_name = laws.name
|
||||
var/old_name = laws?.name
|
||||
laws = give_random_lawset_vore(60)
|
||||
if(old_name == laws.name)
|
||||
apply_new_laws()
|
||||
|
||||
@@ -531,7 +531,7 @@
|
||||
if(ticker < burst)
|
||||
addtimer(CALLBACK(src, PROC_REF(handle_gunfire),target, ++ticker, TRUE), burst_delay, TIMER_DELETE_ME)
|
||||
|
||||
add_attack_logs("Unmanned",target,"Fired [src.name]")
|
||||
add_attack_logs(src,target,"Fired [src.name] (Unmanned)")
|
||||
|
||||
|
||||
//obtains the next projectile to fire
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
return
|
||||
user.balloon_alert_visible("[user] puts something in \the [target]", "[target] dissolves in \the [src]", 2)
|
||||
|
||||
add_attack_logs(user,null,"Spiked [target.name] with a pill containing [reagentlist()]")
|
||||
add_attack_logs(user,target,"Spiked [target.name] with a pill containing [reagentlist()]")
|
||||
|
||||
reagents.trans_to(target, reagents.total_volume)
|
||||
/* for(var/mob/O in viewers(2, user)) // CHOMPEdit - balloon_alert_visible handles this
|
||||
|
||||
Reference in New Issue
Block a user