32 lines
731 B
Plaintext
32 lines
731 B
Plaintext
#include "inc_baseitem"
|
|
/*
|
|
int isArcane(object oItem)
|
|
{
|
|
int iTyp = GetBaseItemType(oItem);
|
|
if (
|
|
(iTyp == BASE_ITEM_MAGICROD ) ||
|
|
(iTyp == BASE_ITEM_MAGICSTAFF ) ||
|
|
(iTyp == BASE_ITEM_MAGICWAND ) ||
|
|
(iTyp == BASE_ITEM_BLANK_WAND ) ||
|
|
(iTyp == BASE_ITEM_BLANK_SCROLL ) ||
|
|
(iTyp == BASE_ITEM_BLANK_POTION )
|
|
) return TRUE;
|
|
else return FALSE;
|
|
}
|
|
*/
|
|
int StartingConditional()
|
|
{
|
|
object oItem = GetLocalObject(GetPCSpeaker(), "MODIFY_ITEM");
|
|
|
|
if (
|
|
isArmor(oItem) ||
|
|
isWearable(oItem) ||
|
|
isGauntlet(oItem) ||
|
|
isMelee(oItem) ||
|
|
isRanged(oItem) ||
|
|
isArcane(oItem)
|
|
) return TRUE;
|
|
else return FALSE;
|
|
|
|
}
|