mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
[MIRROR] runtime viewer fixes (#11668)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
a466bf7b88
commit
fa407a034a
@@ -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