mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-27 17:41:50 +00:00
## About The Pull Request This pull request aims to fix the wiki manuals. Currently the wiki manuals just show "You start skimming through the manual..." because of a bad link (http://www.tgstation13.org/wiki instead of http://tgstation13.org/wiki) which is fixed with this PR, but the issue does not end there. Because BYOND uses trident for its `browse()` function, a lot of Javascript and HTML elements do not function properly, disallowing the removal or blocking of hyperlinks which break the book entirely if they are clicked. Therefore, as a temporary solution (until BYOND 516 is released with webview2) when the user opens a book they are prompted with the following:  Although not the best solution, it makes the books have a function again and are usable. Fixes https://github.com/tgstation/tgstation/issues/77315. ## Why It's Good For The Game Makes books work again so new players can use them to be guided to the wiki resources. ## Changelog 🆑 fix: fix wiki manuals by making them open wiki page on browser /🆑 --------- Co-authored-by: san7890 <the@san7890.com>
201 lines
6.8 KiB
Plaintext
201 lines
6.8 KiB
Plaintext
// Wiki books that are linked to the configured wiki link.
|
|
|
|
// A book that links to the wiki
|
|
/obj/item/book/manual/wiki
|
|
starting_content = "Nanotrasen presently does not have any resources on this topic. If you would like to know more, contact your local Central Command representative." // safety
|
|
/// The ending URL of the page that we link to.
|
|
var/page_link = ""
|
|
|
|
/obj/item/book/manual/wiki/display_content(mob/living/user)
|
|
var/wiki_url = CONFIG_GET(string/wikiurl)
|
|
if(!wiki_url)
|
|
user.balloon_alert(user, "this book is empty!")
|
|
return
|
|
credit_book_to_reader(user)
|
|
if(tgui_alert(user, "This book's page will open in your browser. Are you sure?", "Open The Wiki", list("Yes", "No")) != "Yes")
|
|
return
|
|
usr << link("[wiki_url]/[page_link]")
|
|
|
|
/obj/item/book/manual/wiki/chemistry
|
|
name = "Chemistry Textbook"
|
|
icon_state ="chemistrybook"
|
|
starting_author = "Nanotrasen"
|
|
starting_title = "Chemistry Textbook"
|
|
page_link = "Guide_to_chemistry"
|
|
|
|
/obj/item/book/manual/wiki/engineering_construction
|
|
name = "Station Repairs and Construction"
|
|
icon_state ="bookEngineering"
|
|
starting_author = "Engineering Encyclopedia"
|
|
starting_title = "Station Repairs and Construction"
|
|
page_link = "Guide_to_construction"
|
|
|
|
/obj/item/book/manual/wiki/engineering_guide
|
|
name = "Engineering Textbook"
|
|
icon_state ="bookEngineering2"
|
|
starting_author = "Engineering Encyclopedia"
|
|
starting_title = "Engineering Textbook"
|
|
page_link = "Guide_to_engineering"
|
|
|
|
/obj/item/book/manual/wiki/security_space_law
|
|
name = "Space Law"
|
|
desc = "A set of Nanotrasen guidelines for keeping law and order on their space stations."
|
|
icon_state = "bookSpaceLaw"
|
|
starting_author = "Nanotrasen"
|
|
starting_title = "Space Law"
|
|
page_link = "Space_Law"
|
|
|
|
/obj/item/book/manual/wiki/security_space_law/suicide_act(mob/living/user)
|
|
user.visible_message(span_suicide("[user] pretends to read \the [src] intently... then promptly dies of laughter!"))
|
|
return OXYLOSS
|
|
|
|
/obj/item/book/manual/wiki/infections
|
|
name = "Infections - Making your own pandemic!"
|
|
icon_state = "bookInfections"
|
|
starting_author = "Infections Encyclopedia"
|
|
starting_title = "Infections - Making your own pandemic!"
|
|
page_link = "Infections"
|
|
|
|
/obj/item/book/manual/wiki/telescience
|
|
name = "Teleportation Science - Bluespace for dummies!"
|
|
icon_state = "book7"
|
|
starting_author = "University of Bluespace"
|
|
starting_title = "Teleportation Science - Bluespace for dummies!"
|
|
page_link = "Guide_to_telescience"
|
|
|
|
/obj/item/book/manual/wiki/engineering_hacking
|
|
name = "Hacking"
|
|
icon_state ="bookHacking"
|
|
starting_author = "Engineering Encyclopedia"
|
|
starting_title = "Hacking"
|
|
page_link = "Hacking"
|
|
|
|
/obj/item/book/manual/wiki/detective
|
|
name = "The Film Noir: Proper Procedures for Investigations"
|
|
icon_state ="bookDetective"
|
|
starting_author = "Nanotrasen"
|
|
starting_title = "The Film Noir: Proper Procedures for Investigations"
|
|
page_link = "Detective"
|
|
|
|
/obj/item/book/manual/wiki/barman_recipes
|
|
name = "Barman Recipes: Mixing Drinks and Changing Lives"
|
|
icon_state = "barbook"
|
|
starting_author = "Sir John Rose"
|
|
starting_title = "Barman Recipes: Mixing Drinks and Changing Lives"
|
|
page_link = "Guide_to_drinks"
|
|
|
|
/obj/item/book/manual/wiki/robotics_cyborgs
|
|
name = "Robotics for Dummies"
|
|
icon_state = "borgbook"
|
|
starting_author = "XISC"
|
|
starting_title = "Robotics for Dummies"
|
|
page_link = "Guide_to_robotics"
|
|
|
|
/obj/item/book/manual/wiki/research_and_development
|
|
name = "Research and Development 101"
|
|
icon_state = "rdbook"
|
|
starting_author = "Dr. L. Ight"
|
|
starting_title = "Research and Development 101"
|
|
page_link = "Guide_to_Research_and_Development"
|
|
|
|
/obj/item/book/manual/wiki/experimentor
|
|
name = "Mentoring your Experiments"
|
|
icon_state = "rdbook"
|
|
starting_author = "Dr. H.P. Kritz"
|
|
starting_title = "Mentoring your Experiments"
|
|
page_link = "Experimentor"
|
|
|
|
/obj/item/book/manual/wiki/cooking_to_serve_man
|
|
name = "To Serve Man"
|
|
desc = "It's a cookbook!"
|
|
icon_state ="cooked_book"
|
|
starting_author = "the Kanamitan Empire"
|
|
starting_title = "To Serve Man"
|
|
page_link = "Guide_to_food"
|
|
|
|
/obj/item/book/manual/wiki/tcomms
|
|
name = "Subspace Telecommunications And You"
|
|
icon_state = "book3"
|
|
starting_author = "Engineering Encyclopedia"
|
|
starting_title = "Subspace Telecommunications And You"
|
|
page_link = "Guide_to_Telecommunications"
|
|
|
|
/obj/item/book/manual/wiki/atmospherics
|
|
name = "Lexica Atmosia"
|
|
icon_state = "book5"
|
|
starting_author = "the City-state of Atmosia"
|
|
starting_title = "Lexica Atmosia"
|
|
page_link = "Guide_to_Atmospherics"
|
|
|
|
/obj/item/book/manual/wiki/medicine
|
|
name = "Medical Space Compendium, Volume 638"
|
|
icon_state = "book8"
|
|
starting_author = "Medical Journal"
|
|
starting_title = "Medical Space Compendium, Volume 638"
|
|
page_link = "Guide_to_medicine"
|
|
|
|
/obj/item/book/manual/wiki/surgery
|
|
name = "Brain Surgery for Dummies"
|
|
icon_state = "book4"
|
|
starting_author = "Dr. F. Fran"
|
|
starting_title = "Brain Surgery for Dummies"
|
|
page_link = "Surgery"
|
|
|
|
/obj/item/book/manual/wiki/grenades
|
|
name = "DIY Chemical Grenades"
|
|
icon_state = "book2"
|
|
starting_author = "W. Powell"
|
|
starting_title = "DIY Chemical Grenades"
|
|
page_link = "Grenade"
|
|
|
|
/obj/item/book/manual/wiki/ordnance
|
|
name = "Ordnance for Dummies or: How I Learned to Stop Worrying and Love the Maxcap"
|
|
icon_state = "book6"
|
|
starting_author = "Cuban Pete"
|
|
starting_title = "Ordnance for Dummies or: How I Learned to Stop Worrying and Love the Maxcap"
|
|
page_link = "Guide_to_toxins"
|
|
|
|
/obj/item/book/manual/wiki/ordnance/suicide_act(mob/living/user)
|
|
var/mob/living/carbon/human/H = user
|
|
user.visible_message(span_suicide("[user] starts dancing to the Rhumba Beat! It looks like [user.p_theyre()] trying to commit suicide!"))
|
|
playsound(loc, 'sound/effects/spray.ogg', 10, TRUE, -3)
|
|
if (!QDELETED(H))
|
|
H.emote("spin")
|
|
sleep(2 SECONDS)
|
|
for(var/obj/item/W in H)
|
|
H.dropItemToGround(W)
|
|
if(prob(50))
|
|
step(W, pick(GLOB.alldirs))
|
|
ADD_TRAIT(H, TRAIT_DISFIGURED, TRAIT_GENERIC)
|
|
for(var/obj/item/bodypart/part as anything in H.bodyparts)
|
|
part.adjustBleedStacks(5)
|
|
H.gib_animation()
|
|
sleep(0.3 SECONDS)
|
|
H.adjustBruteLoss(1000) //to make the body super-bloody
|
|
// if we use gib() then the body gets deleted
|
|
H.spawn_gibs()
|
|
H.spill_organs(DROP_ALL_REMAINS)
|
|
H.spread_bodyparts(DROP_BRAIN)
|
|
return BRUTELOSS
|
|
|
|
/obj/item/book/manual/wiki/plumbing
|
|
name = "Chemical Factories Without Narcotics"
|
|
icon_state ="plumbingbook"
|
|
starting_author = "Nanotrasen"
|
|
starting_title = "Chemical Factories Without Narcotics"
|
|
page_link = "Guide_to_plumbing"
|
|
|
|
/obj/item/book/manual/wiki/cytology
|
|
name = "Unethically Grown Organics"
|
|
icon_state ="cytologybook"
|
|
starting_author = "Kryson"
|
|
starting_title = "Unethically Grown Organics"
|
|
page_link = "Guide_to_cytology"
|
|
|
|
/obj/item/book/manual/wiki/tgc
|
|
name = "Tactical Game Cards - Player's Handbook"
|
|
icon_state = "tgcbook"
|
|
starting_author = "Nanotrasen Edu-tainment Division"
|
|
starting_title = "Tactical Game Cards - Player's Handbook"
|
|
page_link = "Tactical_Game_Cards"
|