/*
Here is where we're putting any books being ported from our old database. Should only be used for books submitted by an unknown or inactive player to try and keep ckeys tied to their authors.
Try and keep formatting clean. Also, if you add books with ugly font or color mixes, I WILL destroy you. -- Schnayy

Category: Reference
*/

/// Recycling Procedures by 'Astrid Morton'.

/obj/item/book/bundle/custom_library/reference/recyclingprocedures
	name = "Recycling Procedures"
	desc = "A hardbound book titled \"Recycling Procedures\" by Astrid Morton."
	description_info = "This book is titled \"Recycling Procedures\" by Astrid Morton. It appears to be about ways you can help recycle on your average space station."

	title = "Recycling Procedures"
	icon_state = "book7"
	origkey = "Schnayy"
	author = "Astrid Morton"

	pages = list({"<html>
					<head>
					<style>
					h1 {color: #FFFFFF; border-style: double solid; border-color: #FFFFFF;}
					body {background-color: #6D8495;}
					</style>
					</head>

					<body>
					<br><br><br>
					<center>
					<h1><font face="Impact">Recycling Procedures</font><br>
					<font face="Arial" size="2">Penned by Astrid Morton</font></h1>
					</center>
					</body>
					</html>
					"},
				{"<html>
					<head>
					<style>
					h1 {font-family: Lucida Sans Unicode; font-size: 17px; color: #43494F; border-style: solid; border-color: #43494F; padding: 10px;}
					h2 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F;}
					body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
					p.borders {border-style: double; border-color: #43494F; padding: 7px;}
					</style>
					</head>

					<body>
					<center>
					<h1>Station-Side Recycling Procedures</h1>
					</center>
					<hr>
					<center>
					<h2>Resource Re-purposing</h2>
					</center>
					<p class="borders">
					<b>Cardboard Products</b><br>
					Most cardboard-based products, especially any boxes you may find, can be broken down to a sheet and stacked up. From there, you can reuse it to make folders, more boxes, or anything else you may need (such as a clever disguise).
					<br><br>
					<b>Glass Bulbs</b><br>
					Do not throw away your burnt out, broken light bulbs: collect them! These bulbs can be inserted into the nearest autolathe where their glass can be re-purposed. Broken bulbs and tubes both fit inside: just mind the sharp edges if they've been shattered.
					<br><br>
					<b>Glass Shards</b><br>
					Did somebody break a window again? No matter, put on your welding goggles and you can re-purpose those glass shards right there on the spot by melting it down back to a more useful state.
					</p>
					<hr>
					</body>
					</html>
					"},
				{"<html>
					<head>
					<style>
					h1 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F;}
					body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
					p.borders {border-style: double; border-color: #43494F; padding: 7px;}
					</style>
					</head>

					<body>
					<hr>
					<center>
					<h1>Disposals Reclamation</h1>
					<p class="borders">
					<b>Sifting through ...stuff.</b><br>
					You would be amazed at the amount of materials that get flushed down disposals: and nearly half of it isn't garbage. People flush things down disposals all the time just to get rid of it: bags, tools, boxes. For one reason or another, some idiot in medbay has thrown away a perfectly good lab coat again. The engineer? They've thrown down an entire toolbox: empty, because they've probably stuffed its contents into their own tool belt.
					<br><br>
					What. A. Tool.
					<br><br>
					All theses objects need is a quick clean and then they can be redistributed or reused by someone else, so put on some gloves and start digging!
					</p>
					<hr>
					<center>
					<h1>Maintenance Meandering</h1>
					</center>
					<br>
					<p class="borders">
					<b>Searching for Treasure</b><br>
					Like disposals, maintenance can be a 117th wonder of the universe. Lord knows how this stuff ends up in these tunnels: Drills. Shades. Cuffs. All these things can get organized and replaced in appropriate storage areas, but keep in mind: Some of that stuff's there for a reason, such as the emergency internals, gas masks, fire extinguishers, and flashlights. These types of objects should stay there: But if you find a bottle of liquor in a crate somewhere? Hell, why not bring that on home for a good time?
					</p>
					</center>
					<hr>
					</body>
					</html>
					"})

///A Guide to FBP and Prosthetic Maintenance by Yuki Matsuda. Was edited to be more accurate and fixed typos.

/obj/item/book/bundle/custom_library/reference/fbpandprostheticmaintenance
	name = "A Guide to FBP and Prosthetic Maintenance"
	desc = "A hardbound book titled \"A Guide to FBP and Prosthetic Maintenance\" by Yuki Matsuda."
	description_info = "This book is titled \"A Guide to FBP and Prosthetic Maintenance\" by Yuki Matsuda. It appears to cover general steps for repairing prosthetics."

	title = "A Guide to FBP and Prosthetic Maintenance"
	icon_state = "bookEngineering"
	origkey = "Schnayy"
	author = "Yuki Matsuda"

	pages = list({"<html>
					<head>
					<style>
					h1 {font-family: Courier New; font-size: 17px; color: #0C1B2C; text-align: center; margin: 10px 5px;}
					body {font-family: Courier New; font-size: 15px; color: #0C1B2C; text-align: center; background-color: #0C1B2C;}
					.border {border-style: double solid; border-color: #0C1B2C; background-color: #C1BCB9;}
					</style>
					</head>
					<body>
					<br><br>
					<div class="border">
					<h1><br>A Guide to <br>FBP and Prosthetic Maintenance<br><br></h1>
					<b>by Yuki Matsuda</b><br><br>
					<br><br>
					</div>
					</body>
					</html>
					"},
				{"<html>
					<html>
					<head>
					<style>
					h1 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F; text-align: center;}
					body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
					.borders {border-style: double; border-color: #43494F; padding: 7px;}
					</style>
					</head>
					<body>
					<h1>Introduction</h1>
					<div class="borders">
					This is a guide for anyone interested in the field of robotics, specifically in the field of FBP and prosthetic repair and maintenance, or anyone who is looking to learn how to care for themselves or others.
					<br><br>
					In this guide will go through the basics of how to repair physical damage, electrical damage as well as more complex things such as repairing damage to the internal structure of the prosthetic, rewiring the inner workings of a prosthetic.
					<br><br>
					On top of all that we will also go over how to repair prosthetic hearts or eyes, as well as how to initiate a hard reset on an FBP's systems after a large amount of damage has been inflicted on the individual.
					</div>
					<h1>Tools</h1>
					<div class="borders">
					Before you start working on repairs, you should have the following parts on hand:<br>
					<ul>
					<li>Cyborg Scanner. </li>
					<li>Welder. </li>
					<li>Wire Cable </li>
					<li>Screwdriver </li>
					<li>Crowbar </li>
					<li>Wire cutters </li>
					<li>Multitool </li>
					</ul>
					</div>
					</body>
					</html>
					"},
				{"<html>
					<head>
					<style>
					h1 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F; text-align: center;}
					body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
					.borders {border-style: double; border-color: #43494F; padding: 7px;}
					</style>
					</head>
					<body>
					<h1>Basic Repairs</h1>
					<div class="borders">
					When the damage is superficial, the following steps can be taken.
					<ul>
					<li>Scan the patient with your cyborg scanner.</li>
					<li>If the damage is physical in nature, weld the affected area free of dents. Don't forget your welding protection.</li>
					<li>If the damage appears electrical, search for burnt or damaged wires and replace them.</li>
					</ul>
					</div>
					<h1>Advanced Repairs</h1>
					<div class="borders">
					When the damage is severe and extends past the surface, the following steps can be taken.
					<ul>
					<li>Ensure the damage is internal. If an area registers as 30 or higher on your scanners, it is internal.</li>
					<li>Use a screwdriver to remove screws from the appropriate maintenance panel.
					Crowbar the panel open.</li>
					<li>Follow the basic steps appropriate to the damage: inner structures can be repaired through welding, while electrical damages can be rewired.</li>
					<li>Crowbar the panel closed to finish.</li>
					</ul>
					Additionally, more delicate parts of the FBP may be damaged. For things such as the microbatteries, eyes, and brain, the following steps may help you.
					<ul>
					<li>Open the appropriate segment: either the head or the torso.</li>
					<li>Using a screwdriver -- or preferably, nanopaste -- you may repair these parts.</li>
					<li>Remember to close the segment when you are finished.</li>
					</ul>
					</div>
					</body>
					</html>
					"},
				{"<html>
					<head>
					<style>
					h1 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F; text-align: center;}
					body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
					.borders {border-style: double; border-color: #43494F; padding: 7px;}
					</style>
					</head>
					<body>
					<h1>Jumper Cables</h1>
					<div class="borders">
					Should your patient be damaged to the point where their systems need to be jump started, you'll need your nearby jumper cables.
					<ul>
					<li>Repair the damages as explained above.</li>
					<li>Prepare your jumper cables. You should hold the device on your back and take the paddles into both hands.</li>
					<li>Place the paddles on their chest and give them a shock.</li>
					<li>Sometimes, damage to the brain does not register until a jump start. Always check after a failure and repair as necessary before trying again.</li>
					</ul>
					</div>
					<h1>Conclusion</h1>
					<div class="borders">
					And with that, you have all the essential steps to repairing and maintaining FBP's and prosthetics. These steps are applicable to any prosthetic limb, regardless of if the patient is an FBP. However, if an organic has a prosthetic organ and needs it repaired, it is best you refer them to medical and their team of highly trained surgeons to repair it.
					</div>
					</body>
					</html>
					"})

///A Fistful of D6's: Player's Guide by Ray Rogers

/obj/item/book/custom_library/reference/fistfulofd6splayersguide

	name = "A Fistful of D6's: Player's Guide"
	desc = "A hardbound book titled \"A Fistful of D6's: Player's Guide\" by Ray Rogers."
	description_info = "This book is titled \"A Fistful of D6's: Player's Guide\" by Ray Rogers. It is a player's guide to a TTRPG."

	title = "A Fistful of D6's: Player's Guide"
	icon_state = "corp_regs"
	origkey = "Schnayy"
	author = "Ray Rogers"

	dat = {"<html>
				<head>
				<style>
				h1 {font-style: Impact; font-size: 20px; text-align: center; color: #A7371C}
				body {font-size: 15px; font-family: Georgia; color: #513927; background-color: #E2D9B6;}
				.border {border-style: dashed; border-width: 4px; border-color: #A7371C; padding: 10px;}
				</style>
				</head>
				<body>
				<h1>A Fistful of D6's:<br>
				<small>Player's Guide</small></h1>
				<center><sub>by Ray Rogers</sub></center><br>
				<div class="border">
				Each player starts with three attributes: <i>Vigor</i>, <i>Grit</i>, and <i>Giddyup</i>. Vigor counts how strong, how healthy, and how in-shape a cowpoke is. Grit defines how well a cowpoke can deal with wounds, how gritty his stare is, and how much ice cold water runs through their veins. Giddyup controls how agile a cowpoke is, how well they can dodge a bullet, and how well they can sling.<br><br>
				When rolling an attribute, a cowpoke uses one d6. If they roll a 4 or above, they succeed. A cowpoke can roll more or less d6s depending on situational advantages/disadvantages, items they may be carrying, or abilities they may have accrued in their time moseying. As long as a cowpoke has one more success than failure, they succeed. For each additional success, up to 6, that success is enhanced or modified in some way.<br><br>
				In combat, initiative is gained by pulling poker cards. Initiative is then resolved from highest to lowest suit and number. In the event of tying cards, suits are resolved in this order: Hearts, Spades, Diamonds, and then Clubs. Then the cowpoke who gets highest goes on his turn. During their turn, they can do anything they please. Whatever action they want to achieve, they describe it narratively, and then the storyteller tells them how many d6s they may roll to achieve this task.
				</div>
				<hr>
				<center><sub>The player's guide to player A Fistful of D6s, a TTRPG (Tabletop Role-Playing Game) set in the Earth's past, inspired by early North American history.</sub></center>
				</body>
				</html>
				"}

///The Space Survival Guide: Depressurization by Lachina Green.

/obj/item/book/custom_library/reference/spacesurvivalguidedespressurization

	name = "The Space Survival Guide: Depressurization"
	desc = "A hardbound book titled \"The Space Survival Guide: Depressurization\" by Lachina Green."
	description_info = "This book is titled \"The Space Survival Guide: Depressurization\" by Lachina Green. It is a guide on how to handle being in a depressurized room on a space station."

	title = "The Space Survival Guide: Depressurization"
	icon_state = "evabook"
	origkey = "Schnayy"
	author = "Lachina Green"

	dat = {"<html>
				<head>
				<style>
				h1 {font-family: Lucida Sans Unicode; font-size: 17px; color: #43494F; border-style: solid; border-color: #43494F; padding: 10px; text-align: center;}
				h2 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F; text-align: center;}
				body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
				.borders {border-style: double; border-color: #43494F; padding: 7px 14px;}
				p.indent {text-indent: 20px;}
				</style>
				</head>
				<body>
				<h1>The Space Survival Guide</h1>
				<hr>
				<h2>How to Survive a Mass Depressurization Event</h2>
				<div class="borders">
				<ul>
				<li><b>Don your internals.</b></li>
				</ul>
				<p class="indent">This is the first thing you should do in a mass depressurization event. Take out the breath mask and emergency air tank from the emergency box in your backpack. Put on the mask and clip the air tank securely to your belt; this way, you will not lose it if you fall over or pass out. Set the distribution pressure on your air tank to at least 18 kPA to conserve air. This represents the minimum threshold for a human to maintain consciousness.</p>
				<ul>
				<li><b>Find more oxygen.</b></li>
				</ul>
				<p class="indent">You may find that your air tank will soon run out. Do not worry. There are numerous emergency oxygen closets placed throughout the station, blue in color with 'O2' written on the front in white. You can also retrieve an oxygen tank from a fire closet. When possible, fill up your air tank in one of the large, blue O2 canisters by inserting your air tank, setting the distribution pressure to max, and turning on the release valve. Just make sure to turn the release valve off before removing your oxygen tank.</p>
				<ul>
				<li><b>Stay aware of your surroundings.</b></li>
				</ul>
				<p class="indent">Keep track of the local atmosphere. What is the pressure? Is it rising or falling? A pressure of 101 kPA is optimal for human survival, but you can survive conditions as low as 80 kPA for extended periods. You can check the pressure on the air alarms placed throughout the station or with your PDA's atmospheric scanner function. Make sure to check the pressure several times in quick succession, so you can know whether it is rising or falling.</p>
				<ul>
				<li><b>Avoid opening fire locks.</b></li>
				</ul>
				<p class="indent">In the event of depressurization, the station's fire locks automatically drop in an attempt to contain the breach. However, this can also impede movement. If possible, find an alternate route to your destination or find a safe place to wait until the station's engineering team repairs the station. Do not open a fire lock without an engineer's express permission unless you are in immediate mortal danger. After you have opened a fire lock, make sure to close it immediately so as to prevent the breach from spreading.</p>
				    <ul>
				<li><b>Listen to emergency personnel.</b></li>
				</ul>
				<p class="indent">Follow the instructions of engineering, medical, and security personnel, as well as the orders of the heads of staff. Engineering personnel are trained to fix these situations, and medical personnel will likely be conducting search and rescue operations. Do not impede them and follow their instructions; you are more likely to survive, and less likely to endanger your fellow crew members.</p>
				</div>
				</body>
				</html>
				"}

///Security Guidelines by NanoTrasen.

/obj/item/book/custom_library/reference/securityguidelines

	name = "Security Guidelines"
	desc = "A hardbound book titled \"Security Guidelines\" as provided by NanoTrasen."
	description_info = "This book is titled \"Security Guidelines\" as provided by NanoTrasen. It covers the basic security etiquette on NanoTrasen stations and vessels."

	title = "Security Guidelines"
	icon_state = "bookSpaceLaw"
	origkey = "Schnayy"
	author = "NanoTrasen"

	dat = {"<html>
				<head>
				<style>
				h1 {font-family: Lucida Sans Unicode; font-size: 17px; color: #43494F; border-style: solid; border-color: #43494F; padding: 10px; text-align: center;}
				h2 {font-family: Lucida Sans Unicode; font-size: 15px; color: #43494F; text-align: center;}
				body {font-family: Verdana; font-size: 12px; color: ; background-color: #F6F6F1;}
				.borders {border-style: double; border-color: #43494F; padding: 7px 14px;}
				</style>
				</head>
				<body>
				<h1>Security Guidelines</h1>
				<hr>
				<div class="borders">
				<h2>Golden Rule</h2>
				Keep communications up at all times on the security channel and report all movements, arrests and all security matters over the radio.
				</div>
				<br>
				<div class="borders">
				<h2>Guidelines</h2>
				<ul>
				<li>Talk first, stun second.</li>
				<li>Always call for backup before attempting to confront a possibly dangerous criminal.</li>
				<li>Charge your weapons after every usage.</li>
				<li>Stay calm under all circumstances, anger and fear show weakness.</li>
				<li>Always lock security lockers and logout of security terminals after each use.</li>
				<li>Seal off crime scenes and wait for forensics personnel to arrive.</li>
				<li>Avoid using force where possible.</li>
				<li>Inform the warden when a criminal is wanted and set their wanted status via your security HUD if possible. Beepsky is a force to be reckoned with.</li>
				<li>Respect the chain of command! The warden outranks you within the brig itself. Obey the Head of Security, but remember that the Overseer outranks him.</li>
				<li><b>Remember your priorities:</b> one punch is hardly something to arrest anyone over if there is a hostage situation.</li>
				</ul>
				</div>
				<center><sub>Security Guidelines as issued by NT</sub></center>
				</body>
				</html>
				"}