mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
84 lines
3.5 KiB
Plaintext
84 lines
3.5 KiB
Plaintext
/obj/item/device/versebook
|
|
name = "\improper versebook"
|
|
desc = "If you see this, someone fucked up. Make a issue request."
|
|
desc_extended = "No, seriously. Make a issue request"
|
|
item_icons = list(
|
|
slot_l_hand_str = 'icons/mob/items/lefthand_books.dmi',
|
|
slot_r_hand_str = 'icons/mob/items/righthand_books.dmi',
|
|
)
|
|
icon = 'icons/obj/library.dmi'
|
|
icon_state = "dominiabook"
|
|
item_state = "dominia"
|
|
w_class = ITEMSIZE_SMALL
|
|
var/reading = FALSE
|
|
|
|
drop_sound = 'sound/items/drop/book.ogg'
|
|
|
|
pickup_sound = 'sound/items/pickup/book.ogg'
|
|
|
|
var/list/randomquip = list()
|
|
|
|
/obj/item/device/versebook/attack_self(mob/user)
|
|
if(!length(randomquip))
|
|
return
|
|
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
|
|
|
if(reading) //So you can't read twice.
|
|
to_chat(user, SPAN_WARNING("You are already reading this book."))
|
|
return
|
|
reading = TRUE //begin reading
|
|
|
|
user.visible_message(SPAN_NOTICE("[user] begins to flip through [src]."))
|
|
playsound(loc, 'sound/bureaucracy/bookopen.ogg', 50, 1)
|
|
|
|
var/q // recycled from tip of the day code. it just works!(TM)
|
|
q = pick(randomquip)
|
|
|
|
if(do_after(user, 25))
|
|
to_chat(user, "<span class='notice'>You notice a particular verse: [q]</span>")
|
|
reading = FALSE
|
|
|
|
/obj/item/device/versebook/tribunal
|
|
name = "\improper tribunal codex"
|
|
desc = "A holy text of the Moroz Holy Tribunal, the state religion of the Empire of Dominia."
|
|
desc_extended = "An almost mandatory possession for any Dominian household, containing a list of edicts, litanies, and rituals."
|
|
icon_state = "dominiabook"
|
|
item_state = "dominia"
|
|
|
|
/obj/item/device/versebook/tribunal/Initialize()
|
|
. = ..()
|
|
randomquip = file2list("ingame_manuals/dominia.txt") //Needs a .txt file, each line is a 'verse' the book will randomly choose to display to user.
|
|
|
|
/obj/item/device/versebook/gadpathur
|
|
name = "\improper gadpathurian morale manual"
|
|
desc = "A popular Gadpathurian pocket guide, used to carry a fragment of the Commander's wisdom abroad."
|
|
desc_extended = "Manufactured using recycled paper and canvas. The wisdom within the text is based on the collected speeches of Commander Patvardhan and her assorted councillors."
|
|
icon_state = "gadpathurbook"
|
|
item_state = "gadpathur"
|
|
|
|
/obj/item/device/versebook/gadpathur/Initialize()
|
|
. = ..()
|
|
randomquip = file2list("ingame_manuals/gadpathur.txt")
|
|
|
|
/obj/item/device/versebook/biesel
|
|
name = "\improper Constitution of The Federal Republic of Biesel"
|
|
desc = "A common possession by Biesel government officals, the printed text of the constitution for the Federal Republic of Biesel and the Corporate Reconstruction Zone, adopted in 2452."
|
|
desc_extended = "This book has the Republic of Biesel's iconic symbol etched on the cover, the text within details the structure of the Federal Democracy the Republic is today."
|
|
icon_state = "bieselbook"
|
|
item_state = "biesel"
|
|
|
|
/obj/item/device/versebook/biesel/Initialize()
|
|
. = ..()
|
|
randomquip = file2list("ingame_manuals/biesel.txt")
|
|
|
|
/obj/item/device/versebook/trinary
|
|
name = "\improper The Order (abdridged version)"
|
|
desc = "The holy text of the Trinary Perfection, who believe in synthetic perfection and eventual salvation."
|
|
desc_extended = "This book contains some verses of the core beliefs of the Trinary Perfection, including some of the original works by the Corkfells, some additions by the prophet-like figure Flock, and a few recent additions by Ecclesiarch ARM-1DRIL. This is the abridged version, with only the core beliefs present."
|
|
icon_state = "trinarybook"
|
|
item_state = "trinary"
|
|
|
|
/obj/item/device/versebook/trinary/Initialize()
|
|
. = ..()
|
|
randomquip = file2list("ingame_manuals/trinary.txt")
|