Added code so that books/scrolls read that are in a language other

than common get language skill applied.

Added code to support ReadBook slots above and beyond main inventory slots
by decoding additional bag slot field.
This commit is contained in:
Paul Coene 2017-01-10 20:15:03 -05:00
parent 6a2be94282
commit 80ff535215

View File

@ -0,0 +1,15 @@
alter table books add language int default 0;
drop table reading_is_fundamental;
create table reading_is_fundamental
(
filename varchar(32),
language int
);
insert into reading_is_fundamental (select items.filename, items.booktype from items where items.filename != "" group by filename);
update books set books.language = (select language from reading_is_fundamental r where r.filename = books.name);
drop table reading_is_fundamental;