mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 03:51:28 +12:00
Implement "Read Books"
This commit is contained in:
parent
0b06cd1810
commit
6c42c57bfe
6 changed files with 243 additions and 1 deletions
|
@ -525,6 +525,17 @@ namespace HISP.Server
|
|||
Vet vet = new Vet(id, cost);
|
||||
Logger.DebugPrint("Registered Vet: " + vet.Id + " selling at: " + vet.PriceMultiplier);
|
||||
}
|
||||
int totalBooks = gameData.books.Count;
|
||||
for (int i = 0; i < totalBooks; i++)
|
||||
{
|
||||
int id = gameData.books[i].id;
|
||||
string author = gameData.books[i].author;
|
||||
string title = gameData.books[i].title;
|
||||
string text = gameData.books[i].text;
|
||||
Book book = new Book(id, title, author, text);
|
||||
Logger.DebugPrint("Registered Libary Book: " + book.Id + " " + book.Title + " by " + book.Author);
|
||||
|
||||
}
|
||||
HorseInfo.HorseNames = gameData.horses.names.ToObject<string[]>();
|
||||
|
||||
Item.Present = gameData.item.special.present;
|
||||
|
@ -602,6 +613,11 @@ namespace HISP.Server
|
|||
Messages.StatMiscNoneRecorded = gameData.messages.meta.misc_stats.no_stats_recorded;
|
||||
Messages.StatMiscEntryFormat = gameData.messages.meta.misc_stats.stat_format;
|
||||
|
||||
// Books (Libary)
|
||||
Messages.BooksOfHorseIsle = gameData.messages.meta.libary.books.books_of_horseisle;
|
||||
Messages.BookEntryFormat = gameData.messages.meta.libary.books.book_entry;
|
||||
Messages.BookReadFormat = gameData.messages.meta.libary.books.book_read;
|
||||
|
||||
// Awards (Libary)
|
||||
Messages.AwardsAvalible = gameData.messages.meta.libary.awards.all_earnable_awards;
|
||||
Messages.AwardEntryFormat = gameData.messages.meta.libary.awards.award_entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue