Merge branch 'master' into solgov_ERT

This commit is contained in:
S34N
2021-06-13 10:43:17 +01:00
committed by GitHub
11 changed files with 32 additions and 13 deletions
+4 -3
View File
@@ -2,13 +2,13 @@
<!-- You can view Contributing.MD for a detailed description of the pull request process. -->
## What Does This PR Do
<!-- Include a small to medium description of what your PR changes. Document every changes or this may delay review or even discourage maintainers from merging your PR! -->
<!-- Include a small to medium description of what your PR changes. Document all changes, as not doing this may delay reviews or even discourage maintainers from merging your PR! -->
## Why It's Good For The Game
<!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. -->
<!-- Add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. -->
## Images of changes
<!-- If you did not make a map or sprite edit, you may delete this section. You may include a gif of your feature if you want -->
<!-- If you did not make a map or sprite edit, you may delete this section. You may include a gif or mp4 of your feature if you want. -->
## Changelog
:cl:
@@ -27,3 +27,4 @@ experiment: Added an experimental thingy
<!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
<!-- If a PR has no impact on players (i.e. a code refactor that does not change functionality) then the entire Changelog heading and contents can be removed. -->
+1 -1
View File
@@ -2,4 +2,4 @@
"workbench.editorAssociations": {
"*.dmi": "imagePreview.previewEditor"
}
}
}
+3
View File
@@ -144,6 +144,9 @@ GLOBAL_PROTECT(log_end)
rustg_log_write(GLOB.sql_log, "[text][GLOB.log_end]")
SEND_TEXT(world.log, text) // Redirect it to DD too
/proc/log_chat_debug(text)
rustg_log_write(GLOB.chat_debug_log, "[text][GLOB.log_end]")
// A logging proc that only outputs after setup is done, to
// help devs test initialization stuff that happens a lot
/proc/log_after_setup(message)
+2
View File
@@ -19,6 +19,8 @@ GLOBAL_VAR(http_log)
GLOBAL_PROTECT(http_log)
GLOBAL_VAR(sql_log)
GLOBAL_PROTECT(sql_log)
GLOBAL_VAR(chat_debug_log)
GLOBAL_PROTECT(chat_debug_log)
GLOBAL_VAR(round_id)
GLOBAL_PROTECT(round_id)
+1
View File
@@ -225,5 +225,6 @@
log_game("[key_name(usr)] emagged [key_name(R)] using robotic console!")
message_admins("<span class='notice'>[key_name_admin(usr)] emagged [key_name_admin(R)] using robotic console!</span>")
R.emagged = TRUE
R.module.rebuild_modules()
to_chat(R, "<span class='notice'>Failsafe protocols overriden. New tools available.</span>")
. = TRUE
+2
View File
@@ -251,6 +251,7 @@ GLOBAL_LIST_EMPTY(world_topic_handlers)
GLOB.tgui_log = "[GLOB.log_directory]/tgui.log"
GLOB.http_log = "[GLOB.log_directory]/http.log"
GLOB.sql_log = "[GLOB.log_directory]/sql.log"
GLOB.chat_debug_log = "[GLOB.log_directory]/chat_debug.log"
start_log(GLOB.world_game_log)
start_log(GLOB.world_href_log)
start_log(GLOB.world_runtime_log)
@@ -258,6 +259,7 @@ GLOBAL_LIST_EMPTY(world_topic_handlers)
start_log(GLOB.tgui_log)
start_log(GLOB.http_log)
start_log(GLOB.sql_log)
start_log(GLOB.chat_debug_log)
// This log follows a special format and this path should NOT be used for anything else
GLOB.runtime_summary_log = "data/logs/runtime_summary.log"
+1 -1
View File
@@ -680,7 +680,7 @@
if(query_find_link.NextRow())
if(query_find_link.item[1])
if(!fromban)
to_chat(src, "Your forum account is already set. (" + query_find_link.item[1] + ")")
to_chat(src, "Your forum account is already set. ([query_find_link.item[1]])")
qdel(query_find_link)
return
qdel(query_find_link)
@@ -232,9 +232,21 @@
/obj/machinery/anomalous_crystal/helpers/attack_ghost(mob/dead/observer/user)
..()
if(ready_to_deploy)
if(!istype(user)) // No revs allowed
return
if(cannotPossess(user))
to_chat(user, "<span class='warning'>Upon using the antagHUD you forfeited the ability to join the round.</span>")
return
if(!user.can_reenter_corpse)
to_chat(user, "<span class='warning'>You have forfeited the right to respawn.</span>")
return
var/be_helper = alert("Become a Lightgeist? (Warning, You can no longer be cloned!)",,"Yes","No")
if(be_helper == "No")
return
if(!loc || QDELETED(src) || QDELETED(user))
if(user)
to_chat(user, "<span class='warning'>[src] is no longer usable!</span>")
return
var/mob/living/simple_animal/hostile/lightgeist/W = new /mob/living/simple_animal/hostile/lightgeist(get_turf(loc))
W.key = user.key
+1 -1
View File
@@ -96,7 +96,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
for(var/g in GLOB.GPS_list)
var/obj/item/gps/G = g
var/turf/GT = get_turf(G)
if(!G.tracking || G == src)
if(isnull(GT) || !G.tracking || G == src)
continue
if((G.local || same_z) && (GT.z != T.z))
continue
+4 -6
View File
@@ -20,7 +20,6 @@ var/list/chatResources = list(
#define MAX_COOKIE_LENGTH 5
/var/savefile/iconCache = new /savefile("data/iconCache.sav")
/var/chatDebug = file("data/chatDebug.log")
/datum/chatOutput
var/client/owner = null
@@ -92,7 +91,10 @@ var/list/chatResources = list(
data = doneLoading(arglist(params))
if("debug")
data = debug(arglist(params))
if(!length(params))
return
var/error = params[1]
log_chat_debug("Client: [owner.key || owner] triggered JS error: [error][GLOB.log_end]")
if("ping")
data = ping(arglist(params))
@@ -201,10 +203,6 @@ var/list/chatResources = list(
/datum/chatOutput/proc/ping()
return "pong"
/datum/chatOutput/proc/debug(error)
error = "\[[time2text(world.realtime, "YYYY-MM-DD hh:mm:ss")]\] Client : [owner.key ? owner.key : owner] triggered JS error: [error]"
chatDebug << error
/**
* Sends the lists of code phrases and responses to Goonchat for clientside highlighting
*
+1 -1
View File
@@ -1,3 +1,3 @@
pygit2==1.0.1
bidict==0.13.1
Pillow==8.1.1
Pillow==8.2.0