mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-15 20:22:07 +00:00
Done using this command sed -Ei 's/(\s*\S+)\s*\t+/\1 /g' code/**/*.dm We have countless examples in the codebase with this style gone wrong, and defines and such being on hideously different levels of indentation. Fixing this to keep the alignment involves tainting the blames of code your PR doesn't need to be touching at all. And ultimately, it's hideous. There are some files that this sed makes uglier. I can fix these when they are pointed out, but I believe this is ultimately for the greater good of readability. I'm more concerned with if any strings relied on this. Hi codeowners! Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
/proc/count_unique_techweb_nodes()
|
|
var/static/list/L = typesof(/datum/techweb_node)
|
|
return L.len
|
|
|
|
/proc/count_unique_techweb_designs()
|
|
var/static/list/L = typesof(/datum/design)
|
|
return L.len
|
|
|
|
/proc/node_boost_error(id, message)
|
|
WARNING("Invalid boost information for node \[[id]\]: [message]")
|
|
SSresearch.invalid_node_boost[id] = message
|
|
|
|
///Returns an associative list of techweb node datums with values of the boost it gives. var/list/returned = list()
|
|
/proc/techweb_item_boost_check(obj/item/I)
|
|
if(SSresearch.techweb_boost_items[I.type])
|
|
return SSresearch.techweb_boost_items[I.type] //It should already be formatted in node datum = list(point type = value)
|
|
|
|
/proc/techweb_item_point_check(obj/item/I)
|
|
if(SSresearch.techweb_point_items[I.type])
|
|
return SSresearch.techweb_point_items[I.type]
|
|
|
|
/proc/techweb_point_display_generic(pointlist)
|
|
var/list/ret = list()
|
|
for(var/i in pointlist)
|
|
if(SSresearch.point_types[i])
|
|
ret += "[SSresearch.point_types[i]]: [pointlist[i]]"
|
|
else
|
|
ret += "ERRORED POINT TYPE: [pointlist[i]]"
|
|
return ret.Join("<BR>")
|
|
|
|
/proc/techweb_point_display_rdconsole(pointlist, last_pointlist)
|
|
var/list/ret = list()
|
|
for(var/i in pointlist)
|
|
var/research_line = "[SSresearch.point_types[i] || "ERRORED POINT TYPE"]: [pointlist[i]]"
|
|
if(last_pointlist[i] > 0)
|
|
research_line += " (+[(last_pointlist[i]) * ((SSresearch.flags & SS_TICKER)? (600 / (world.tick_lag * SSresearch.wait)) : (600 / SSresearch.wait))]/ minute)"
|
|
ret += research_line
|
|
return ret.Join("<BR>")
|