x2_inc_ws_smith

Main include file for the weapon upgrade smith.

NOTE: This file includes x2_inc_itemprop.

Constants

NameValueBrief Description
CostOfAcid9711All elemental damages use this.
CostOfAttackBonus9611Ranged
CostOfEnhancement9717
CostOfHaste9712
CostOfKeen9713
CostOfMighty59612Ranged
CostOfMighty109613Ranged
CostOfRegeneration29716
CostOfSpellResistance9715
CostOfTrueSeeing9714
CostOfUnlimited39614Ranged
IP_CONST_WS_ATTACK_BONUS19000Used to make a "fake" IP_CONST_*.
IP_CONST_WS_ENHANCEMENT_BONUS19001Used to make a "fake" IP_CONST_*.
IP_CONST_WS_HASTE19002Used to make a "fake" IP_CONST_*.
IP_CONST_WS_KEEN19003Used to make a "fake" IP_CONST_*.
IP_CONST_WS_MIGHTY_519008Used to make a "fake" IP_CONST_*.
IP_CONST_WS_MIGHTY_1019009Used to make a "fake" IP_CONST_*.
IP_CONST_WS_REGENERATION19007Used to make a "fake" IP_CONST_*.
IP_CONST_WS_SPELLRESISTANCE19006Used to make a "fake" IP_CONST_*.
IP_CONST_WS_TRUESEEING19005Used to make a "fake" IP_CONST_*.
IP_CONST_WS_UNLIMITED_319010Used to make a "fake" IP_CONST_*.
MAX_ATTACK_BONUS10
MAX_ENHANCEMENT_BONUS10
WeaponToken9809Token number.
WS_COST_ACID_PROPERTY75000Price, all elemental damages use this.
WS_COST_ATTACK_BONUS30000Price
WS_COST_ENHANCEMENT_BONUS50000Price
WS_COST_HASTE150000Price
WS_COST_KEEN50000Price
WS_COST_MIGHTY_550000Price
WS_COST_MIGHTY_10100000Price
WS_COST_REGENERATION275000Price
WS_COST_SPELLRESISTANCE75000Price
WS_COST_TRUESEEING30000Price
WS_COST_UNLIMITED_3100000Price

Functions

NameBrief Description
GetGoldValueForServiceInternal function. Returns the cost for adding the item property specified.
GetRightHandWeaponReturns the object equipped in the right hand weapon slot.
InflateCostInternal function. Inflates the cost of adding an enhancement bonus if the current enhancement bonus is greater than 4.
IsOkToAddFunction checks against WS_ properties to see if its okay to add a specific item property.
ReturnAttackBonusReturns total attack bonus for the item.
ReturnEnhancementBonusReturns total enhancement bonus for the item.
ReturnItemPropertyToUseReturns the correct itemproperty based upon the specified IP_CONST_* and item.
SetWeaponTokenSets the name of the weapon equipped the right hand weapon slot as token WeaponToken.
wsEnhanceItemAdds the enhancement to the item and takes the gold cost.
wsHaveEnoughGoldForCurrentItemPropertyReturns TRUE if you have enough gold to add a previously specified item property.
wsSetupPricesSets all custom tokens for the prices of services.

See Also

constants:  IP_CONST_DAMAGETYPE*
categories:  ItemCreation Functions | Item Properties Functions

  author: Mistress