mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 08:09:34 +01:00
Generate news index from list
This commit is contained in:
@@ -112,7 +112,11 @@
|
||||
/datum/lore/codex/page/about_news,
|
||||
)
|
||||
|
||||
var/newsindex = "103" //Update with number of latest article
|
||||
var/newsindex
|
||||
|
||||
/datum/lore/codex/category/main_news/New()
|
||||
..()
|
||||
newsindex = LAZYLEN(children)
|
||||
|
||||
/datum/lore/codex/page/about_news
|
||||
name = "About the Publisher"
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
if(GLOB.news_data.station_newspaper && !client.seen_news && client.is_preference_enabled(/datum/client_preference/show_lore_news))
|
||||
show_latest_news(GLOB.news_data.station_newspaper)
|
||||
client.prefs.lastnews = GLOB.news_data.newsindex
|
||||
client.prefs.lastlorenews = GLOB.news_data.newsindex
|
||||
SScharacter_setup.queue_preferences_save(client.prefs)
|
||||
|
||||
panel = new(src, "Welcome","Welcome", 500, 480, src)
|
||||
|
||||
Reference in New Issue
Block a user