5 virtual truth
CanBeRead(character
*) const;
6 virtual truth
IsReadable(ccharacter
*) const { return true; }
7 virtual truth
IsScroll () const { return true; }
8 virtual truth
ReceiveDamage(character
*, int, int, int);
16 truth
scroll::CanBeRead(character
* Reader
) const
18 return Reader
->CanRead() || game::GetSeeWholeMapCheatMode();
23 truth
scroll::ReceiveDamage(character
*, int Damage
, int Type
, int)
25 if(Type
& FIRE
&& Damage
26 && GetMainMaterial()->GetInteractionFlags() & CAN_BURN
27 && (Damage
> 125 || !(RAND() % (250 / Damage
))))
29 if(CanBeSeenByPlayer())
30 ADD_MESSAGE("%s catches fire!", GetExtendedDescription().CStr());