//
// Attribute related functions
//

const ATTRIBUTE_LOCK_UP     := 0;
const ATTRIBUTE_LOCK_DOWN   := 1;
const ATTRIBUTE_LOCK_LOCKED := 2;

const ATTRIBUTE_MAX_BASE := 60000;

// To-Fix: Uses a skillid - should take in an attribute name.
CheckSkill( character, skillid, difficulty, points );

AlterAttributeTemporaryMod( character, attrname, delta_tenths );

GetAttributeName( alias_name );

GetAttribute( character, attrname );
GetAttributeBaseValue( character, attrname );
GetAttributeIntrinsicMod( character, attrname );
GetAttributeTemporaryMod( character, attrname );

GetAttributeLock( character, attrname );
SetAttributeLock( character, attrname, lockstate );

GetAttributeDefaultCap ( attrname );
GetAttributeCap( character, attrname );
SetAttributeCap( character, attrname, capvalue );

SetAttributeBaseValue( character, attrname, basevalue_tenths ); // obsoletes SetRawSkill
SetAttributeTemporaryMod( character, attrname, tempmod_tenths ); // obsoletes mob.strength_mod etc


BaseSkillToRawSkill( baseskill );
RawSkillToBaseSkill( rawskill );