mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
* sync (#3) * shuttle auto call * Merge /vore into /master (#39) * progress * Compile errors fixed No idea if it's test worthy tho as conflicts with race overhaul and narky removal. * Update admins.txt * efforts continue Fuck grab code, seriously * grab code is cancer * Execute the Narkism Do not hesitate. Show no mercy. * holy shit grab code is awful * have I bitched about grab code My bitching, let me show you it * código de agarre es una mierda No really it is * yeah I don't even know anymore. * Lolnope. Fuck grab code * I'm not even sure what to fix anymore * Self eating is not an acceptable fate * Taste the void, son. * My code doesn't pass it's own sanity check. Maybe it's a sign of things to come. * uncommented and notes * It Works and I Don't Know Why (#38) * shuttle auto call * it works and I don't know why * Subsystem 12/21 Most Recent TG subsystem folder * globalvars 12/21 Tossed out the flavor_misc and parallax files * Onclick 12/21 as well as .dme updates * _defines 12/21 ommited old _MC.dm * _HELPERS 12/21 Preserved snowflake placement of furry sprites * _defeines/genetics reapplied narkism holdover for snowflake races. * Oops forgot mutant colors * modules porting 12/21 + Sounds/icons Admin, Client and most of mob life files ommitted * enviroment file * Admin optimizations ahelp log system kept * Mob ports 12/21 Flavor text preserved * datums ported 12/21 * Game ported 12/21 * batch of duplicate fixes/dogborg work Dogborgs need to be modernized to refractored borg standards. * moar fixes * Maps and futher compile fixes
64 lines
2.5 KiB
Plaintext
64 lines
2.5 KiB
Plaintext
var/global/datum/getrev/revdata = new()
|
|
|
|
/datum/getrev
|
|
var/parentcommit
|
|
var/commit
|
|
var/list/testmerge = list()
|
|
var/date
|
|
|
|
/datum/getrev/New()
|
|
var/head_file = return_file_text(".git/logs/HEAD")
|
|
if(SERVERTOOLS && fexists("..\\prtestjob.lk"))
|
|
testmerge = file2list("..\\prtestjob.lk")
|
|
var/testlen = max(testmerge.len - 1, 0)
|
|
var/regex/head_log = new("(\\w{40}) .+> (\\d{10}).+(?=(\n.*(\\w{40}).*){[testlen]}\n*\\Z)")
|
|
head_log.Find(head_file)
|
|
parentcommit = head_log.group[1]
|
|
date = unix2date(text2num(head_log.group[2]))
|
|
commit = head_log.group[4]
|
|
world.log << "Running /tg/ revision:"
|
|
world.log << "[date]"
|
|
if(testmerge.len)
|
|
world.log << commit
|
|
for(var/line in testmerge)
|
|
if(line)
|
|
world.log << "Test merge active of PR #[line]"
|
|
world.log << "Based off master commit [parentcommit]"
|
|
else
|
|
world.log << parentcommit
|
|
world.log << "Current map - [MAP_NAME]" //can't think of anywhere better to put it
|
|
|
|
/client/verb/showrevinfo()
|
|
set category = "OOC"
|
|
set name = "Show Server Revision"
|
|
set desc = "Check the current server code revision"
|
|
|
|
if(revdata.parentcommit)
|
|
src << "<b>Server revision compiled on:</b> [revdata.date]"
|
|
if(revdata.testmerge.len)
|
|
for(var/line in revdata.testmerge)
|
|
if(line)
|
|
src << "Test merge active of PR <a href='[config.githuburl]/pull/[line]'>#[line]</a>"
|
|
src << "Based off master commit <a href='[config.githuburl]/commit/[revdata.parentcommit]'>[revdata.parentcommit]</a>"
|
|
else
|
|
src << "<a href='[config.githuburl]/commit/[revdata.parentcommit]'>[revdata.parentcommit]</a>"
|
|
else
|
|
src << "Revision unknown"
|
|
src << "<b>Current Infomational Settings:</b>"
|
|
src << "Protect Authority Roles From Traitor: [config.protect_roles_from_antagonist]"
|
|
src << "Protect Assistant Role From Traitor: [config.protect_assistant_from_antagonist]"
|
|
src << "Enforce Human Authority: [config.enforce_human_authority]"
|
|
src << "Allow Latejoin Antagonists: [config.allow_latejoin_antagonists]"
|
|
src << "Enforce Continuous Rounds: [config.continuous.len] of [config.modes.len] roundtypes"
|
|
src << "Allow Midround Antagonists: [config.midround_antag.len] of [config.modes.len] roundtypes"
|
|
if(config.show_game_type_odds)
|
|
src <<"<b>Game Mode Odds:</b>"
|
|
var/sum = 0
|
|
for(var/i=1,i<=config.probabilities.len,i++)
|
|
sum += config.probabilities[config.probabilities[i]]
|
|
for(var/i=1,i<=config.probabilities.len,i++)
|
|
if(config.probabilities[config.probabilities[i]] > 0)
|
|
var/percentage = round(config.probabilities[config.probabilities[i]] / sum * 100, 0.1)
|
|
src << "[config.probabilities[i]] [percentage]%"
|
|
return
|