Remember my suggestion for “useless” books? Now I have written JSON for it! If you didn’t noticed it, a recent commit introduced JSON definitions for books.
I introduce two things:
[ul][]a naming convention: the ID of these books start with “wastebook_”. It means that it is a book which is useful for throwing and/or burning only.
[]a new symbol color: I use a red question mark (“?”) for all of these books. I chose red because red is the color of fire. It is the symbol for “wastebook_”s[/ul]
Warning: I did not test any of the code yet (because I am currently not able to), it may even have syntax errors.
Here is the JSON code snippet for all of these “waste books”:
{
"type" : "BOOK",
"id" : "wastebook_dictionary",
"name" : "dictionary",
"max_level" : 0,
"description" : "A big and heavy bi-lingual dictionary; it is basicly just a very long list of vocabulary of a foreign language.",
"weight" : 8,
"to_hit" : 1,
"color" : "red",
"intelligence" : 5,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 8,
"bashing" : 8,
"cutting" : 0,
"time" : 30,
"fun" : -1,
"skill" : "null",
"rarity" : 40,
"price" : 300,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_encyclopaedia",
"name" : "encyclopaedia",
"max_level" : 0,
"description" : "This absurdly big and heavy book, which is part of a series of twenty-something books, contains a lot of definitons of everything, but it is outdated and doesn’t improve any of your skills. Reading it will just bore you, but it is excellent for throwing.",
"weight" : 10,
"to_hit" : 2,
"color" : "red",
"intelligence" : 6,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 10,
"bashing" : 10,
"cutting" : 0,
"time" : 30,
"fun" : -1,
"skill" : "null",
"rarity" : 10,
"price" : 500,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_lawbook",
"name" : "law book",
"max_level" : 0,
"description" : "A big book which describes in very exact terms what you are allowed to do in society and what you aren't. Since society does not exist anymore, its contents are highly irrelevant now.",
"weight" : 7,
"to_hit" : 2,
"color" : "red",
"intelligence" : 11,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 7,
"bashing" : 10,
"cutting" : 0,
"time" : 30,
"fun" : -2,
"skill" : "null",
"rarity" : 12,
"price" : 100,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_scifi",
"name" : "poorly written scifi novel",
"max_level" : 0,
"description" : "A short science-fiction novel which is really poorly written, even for people that are dumb as a brick. You can read it, but it will just bore you.",
"weight" : 1,
"to_hit" : 0,
"color" : "red",
"intelligence" : 4,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 2,
"bashing" : -3,
"cutting" : 0,
"time" : 20,
"fun" : 0,
"skill" : "none",
"rarity" : 25,
"price" : 30,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_telephonebook",
"name" : "telephone book",
"max_level" : 0,
"description" : "Just a long list of telephone numbers of people of which most of them are (un)dead now.",
"weight" : 2,
"to_hit" : 0,
"color" : "red",
"intelligence" : 2,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 5,
"bashing" : -1,
"cutting" : 0,
"time" : 15,
"fun" : -1,
"skill" : "none",
"rarity" : 50,
"price" : 50,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_catalog",
"name" : "catalog",
"max_level" : 0,
"description" : "A very outdated product catalog of some random store which probably does not exist anymore as well.",
"weight" : 2,
"to_hit" : 0,
"color" : "red",
"intelligence" : 0,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 4,
"bashing" : -1,
"cutting" : 0,
"time" : 15,
"fun" : -1,
"skill" : "none",
"rarity" : 40,
"price" : 45,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_songbook",
"name" : "song book",
"max_level" : 0,
"description" : "Full of songs about god.",
"weight" : 6,
"to_hit" : 0,
"color" : "red",
"intelligence" : 3,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 6,
"bashing" : 4,
"cutting" : 0,
"time" : 2,
"fun" : 0,
"skill" : "null",
"rarity" : 30,
"price" : 120,
"required_level" : 0
},
{
"type" : "BOOK",
"id" : "wastebook_cashaccountbook",
"name" : "cash account book",
"max_level" : 0,
"description" : "This small book is basicly just about who bought what (and when) at which price in which amount. Reading it is a very efficient way to bore yourself to death.",
"weight" : 1,
"to_hit" : 0,
"color" : "red",
"intelligence" : 8,
"symbol" : "?",
"material" : ["PAPER", "NULL"],
"volume" : 2,
"bashing" : -2,
"cutting" : 0,
"time" : 10,
"fun" : -2,
"skill" : "null",
"rarity" : 33,
"price" : 75,
"required_level" : 0
}
PS: please comment on this suggestion, especially if I made mistakes.