Files
2024-01-04 12:15:46 -05:00

46 lines
1.7 KiB
Plaintext

// /data/ files store data in string format.
// They don't contain other logic for now.
/datum/computer_file/data/news_article
filetype = "XNML"
filename = "Unknown News Entry"
block_size = 5000 // Results in smaller files
do_not_edit = 1 // Editing the file breaks most formatting due to some HTML tags not being accepted as input from average user.
var/server_file_path // File path to HTML file that will be loaded on server start. Example: '/news_articles/space_magazine_1.html'. Use the /news_articles/ folder!
var/archived // Set to 1 for older stuff
var/cover //filename of cover.
/datum/computer_file/data/news_article/New(var/load_from_file = 0)
..()
if(server_file_path && load_from_file)
stored_data = file2text(server_file_path)
calculate_size()
// NEWS DEFINITIONS BELOW THIS LINE
/*
/datum/computer_file/data/news_article/space/vol_one
filename = "SPACE Magazine vol. 1"
server_file_path = 'news_articles/space_magazine_1.html'
*/
//YAWN ADDS - All from discord
/datum/computer_file/data/news_article/archives/vol_gwa_one
filename = "Galaxy Wide Archives"
server_file_path = 'news_articles/galaxy_wide_archived_1.html'
archived = 1
/datum/computer_file/data/news_article/archives/vol_tss_one
filename = "The Sleepy Sergal Archives vol. 1"
server_file_path = 'news_articles/the_sleepy_sergal_archived_1.html'
archived = 1
/datum/computer_file/data/news_article/tss/vol_two
filename = "The Sleepy Sergal Archives vol. 2"
server_file_path = 'news_articles/the_sleepy_sergal_2.html'
archived = 1
/datum/computer_file/data/news_article/tss/vol_three
filename = "The Sleepy Sergal vol. 3"
server_file_path = 'news_articles/the_sleepy_sergal_3.html'