10 #include "../../bscript/berror.h" 11 #include "../../bscript/impstr.h" 12 #include "../globals/uvars.h" 13 #include "../mobile/attribute.h" 14 #include "../mobile/charactr.h" 15 #include "../network/cliface.h" 16 #include "../skilladv.h" 17 #include "../skillid.h" 18 #include "../uoexhelp.h" 25 using namespace Module;
48 using namespace Bscript;
61 unsigned short points;
197 unsigned short capvalue;
206 int old_cap = av.
cap();
209 if ( old_cap != capvalue )
227 unsigned short lockstate;
236 unsigned char old_state = av.
lock();
237 av.
lock( (
unsigned char)lockstate );
239 if ( old_state != lockstate )
257 unsigned short basevalue;
265 av.
base( basevalue );
297 av.
temp_mod( static_cast<short>( tempmod ) );
332 return new BError(
"New modifier value is out of range" );
334 av.
temp_mod( static_cast<short>( newmod ) );
372 unsigned short baseskill;
Bscript::BObjectImp * mf_CheckSkill()
Bscript::BObjectImp * mf_GetAttribute()
std::vector< FunctionDef > FunctionTable
Bscript::BObjectImp * mf_SetAttributeBaseValue()
unsigned char lock() const
Bscript::BObjectImp * mf_GetAttributeName()
unsigned short cap() const
const Mobile::Attribute * pAttrParry
bool getParam(unsigned param, int &value)
unsigned int base_to_raw(unsigned short base)
Bscript::BObjectImp * mf_BaseSkillToRaw()
Bscript::BObjectImp * mf_GetAttributeBaseValue()
bool getAttributeParam(Executor &exec, unsigned param, const Mobile::Attribute *&attr)
bool getCharacterParam(Bscript::Executor &exec, unsigned param, Mobile::Character *&chrptr)
Bscript::BObjectImp * mf_RawSkillToBase()
const unsigned ATTRIBUTE_MIN_BASE
Bscript::BObjectImp * mf_GetAttributeDefaultCap()
Bscript::BObjectImp * mf_GetAttributeIntrinsicMod()
const AttributeValue & attribute(unsigned attrid) const
unsigned short raw_to_base(unsigned int raw)
static void tell_attribute_changed(Mobile::Character *who, const Mobile::Attribute *attr)
int effective_tenths() const
Bscript::BObjectImp * mf_GetAttributeLock()
const short ATTRIBUTE_MAX_TEMP_MOD
AttributeExecutorModule(Bscript::Executor &exec)
Bscript::BObjectImp * mf_SetAttributeLock()
const unsigned ATTRIBUTE_MAX_BASE
int intrinsic_mod() const
Bscript::BObjectImp * mf_AlterAttributeTemporaryMod()
Bscript::BObjectImp * mf_SetAttributeCap()
virtual void refresh_ar()
Bscript::BObjectImp * mf_GetAttributeTemporaryMod()
Bscript::BObjectImp * mf_SetAttributeTemporaryMod()
bool getSkillIdParam(Executor &exec, unsigned param, USKILLID &skillid)
bool check_skill(Core::USKILLID skillid, int difficulty, unsigned short pointvalue)
const short ATTRIBUTE_MIN_TEMP_MOD
Bscript::BObjectImp * mf_GetAttributeCap()
unsigned short default_cap