Autochangelogs (#17152)

* Scripts ported

* Converted changelogs

* Fix

* Prettier

* Removes old unneeded save

* Removes very old changelogs
This commit is contained in:
Selis
2025-02-15 23:10:05 +01:00
committed by GitHub
parent f423f81e42
commit f7de6141b5
54 changed files with 678 additions and 11804 deletions
+7 -1
View File
@@ -483,7 +483,13 @@
/client/verb/changes()
set name = "Changelog"
set category = "OOC.Resources"
src << link("https://wiki.vore-station.net/Changelog")
if(!GLOB.changelog_tgui)
GLOB.changelog_tgui = new /datum/changelog()
GLOB.changelog_tgui.tgui_interact(usr)
if(prefs?.read_preference(/datum/preference/text/lastchangelog) != GLOB.changelog_hash)
prefs.write_preference_by_type(/datum/preference/text/lastchangelog, GLOB.changelog_hash)
/mob/verb/observe()
set name = "Observe"
+4 -4
View File
@@ -106,12 +106,10 @@
else
output += "<p><b><a href='byond://?src=\ref[src];open_station_news=1'>Show [using_map.station_name] News<br>(NEW!)</A></b></p>"
/* //TODO: Actually add the fukin changelog. We need it DESPERATELY but this isn't the PR for it.
if(client.prefs.lastchangelog == changelog_hash)
if(read_preference(/datum/preference/text/lastchangelog) == GLOB.changelog_hash)
output += "<p><a href='byond://?src=\ref[src];open_changelog=1'>Show Changelog</A><br><i>No Changes</i></p>"
else
output += "<p><b><a href='byond://?src=\ref[src];open_changelog=1'>Show Changelog</A><br>(NEW!)</b></p>"
*/
output += "</div>"
@@ -354,7 +352,9 @@
client.feedback_form = new(client)
if(href_list["open_changelog"])
src << link("https://wiki.vore-station.net/Changelog")
write_preference_directly(/datum/preference/text/lastchangelog, GLOB.changelog_hash)
client.changes()
return
/mob/new_player/proc/handle_server_news()
if(!client)