uox3/source/books.h
Xoduz 37a76083de Rest of the changes for 0.99.6-RC1
Misc cleanup and standardization of style and naming conventions in code and scripts
Added missing code for showing race in paperdoll based on ini setting
Players can no longer use Polymorph spell while incognitoed, or while under effect of tribal paint
Players can no longer use Incognito spell while polymorphed, or while under the effects of tribal paint
Facial hair is now removed from players who are under the effects of Incognito spell that changes their gender for female
2022-10-24 18:39:33 +08:00

22 lines
778 B
C++

// new books readonly -> morex 999
// new books writeable -> morex 666
// old books from misc.dfn, readonly: neither type 666 nor 999, section# = more-value
// of course ALL books need a type of 11
#ifndef __books_h
#define __books_h
#include "cChar.h"
class CBooks
{
public:
void CreateBook( const std::string& fileName, CChar *mChar, CItem *mBook ); // "formats and creates a new bok file"
void OpenPreDefBook( CSocket *s, CItem *i ); // opens old-readonly books, takes data from misc.dfn
void OpenBook( CSocket *s, CItem *i, bool isWriteable ); // opens new books
void ReadPreDefBook( CSocket *mSock, CItem *mBook, UI16 pageNum ); // reads books from misc.dfn, readonly = old books
void DeleteBook( CItem *id ); // deletes bok-file.
};
extern CBooks *Books;
#endif