mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 05:51:56 +01:00
Better logging (#16164)
* Initial * Cleared duplicates * More work, get rid of log_error * more * log_debug() to macro LOG_DEBUG * More work * More * Guh * Maybe better? * More work * gah * Dear lord * *inserts swears here* * gdi * More work * More * dear lord * fsdfsdafs * rsdaf * sadfasf * sdafsad * fgsd * small fuckup fix * jfsd * sdafasf * gdi * sdfa * sfdafgds * sdafasdvf * sdfasdfg * sdfsga * asdf * dsfasfsagf * ihibhbjh * fsadf * adfas * sdafsad * sdfasd * fsda * vhb * asf * for arrow * removed source file-line logging, added header for tgui
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
if (CELL_ALIVE(map[i]))
|
||||
ore_turfs += i
|
||||
|
||||
game_log("ASGEN", "Found [ore_turfs.len] ore turfs.")
|
||||
log_asset("ASGEN: Found [ore_turfs.len] ore turfs.")
|
||||
var/ore_count = round(map.len/20)
|
||||
var/door_count = 0
|
||||
var/empty_count = 0
|
||||
@@ -52,8 +52,8 @@
|
||||
empty_count += 1
|
||||
ore_count--
|
||||
|
||||
game_log("ASGEN", "Set [door_count] turfs to random minerals.")
|
||||
game_log("ASGEN", "Set [empty_count] turfs to high-chance random minerals.")
|
||||
log_asset("ASGEN: Set [door_count] turfs to random minerals.")
|
||||
log_asset("ASGEN: Set [empty_count] turfs to high-chance random minerals.")
|
||||
return 1
|
||||
|
||||
/datum/random_map/automata/cave_system/apply_to_map()
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
CHECK_TICK
|
||||
|
||||
game_log("ASGEN", "Applied [num_applied] turfs.")
|
||||
log_asset("ASGEN: Applied [num_applied] turfs.")
|
||||
|
||||
/datum/random_map/automata/cave_system/high_yield
|
||||
descriptor = "high yield caves"
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
CHECK_TICK
|
||||
|
||||
game_log("ASGEN", "Applied [num_applied] turfs.")
|
||||
log_asset("ASGEN: Applied [num_applied] turfs.")
|
||||
|
||||
/datum/random_map/automata/cave_system/chasms/cleanup()
|
||||
return
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
var/datum/supply_drop_loot/SDL = drop_type
|
||||
SDL.drop(T)
|
||||
else
|
||||
log_error("Unhandled drop type: [drop_type]")
|
||||
log_world("ERROR: Unhandled drop type: [drop_type]")
|
||||
|
||||
|
||||
/datum/admins/proc/call_supply_drop()
|
||||
@@ -90,4 +90,4 @@
|
||||
if(choice == "No")
|
||||
return
|
||||
log_admin("[key_name(usr)] dropped supplies at ([usr.x],[usr.y],[usr.z])",admin_key=key_name(usr))
|
||||
new /datum/random_map/droppod/supply(null, usr.x-2, usr.y-2, usr.z, supplied_drops = chosen_loot_types, supplied_drop = chosen_loot_type)
|
||||
new /datum/random_map/droppod/supply(null, usr.x-2, usr.y-2, usr.z, supplied_drops = chosen_loot_types, supplied_drop = chosen_loot_type)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
limit_y = limit_x
|
||||
else if(limit_y > limit_x)
|
||||
limit_x = limit_y
|
||||
log_debug("Generating Noise map with limits: [limit_x], [limit_y]")
|
||||
LOG_DEBUG("Generating Noise map with limits: [limit_x], [limit_y]")
|
||||
..()
|
||||
|
||||
// Diamond-square algorithm.
|
||||
|
||||
Reference in New Issue
Block a user