x2_inc_ws_smith
Main include file for the weapon upgrade smith.
NOTE: This file includes
x2_inc_itemprop.
Constants
Name | Value | Brief Description |
CostOfAcid | 9711 | All elemental damages use this. |
CostOfAttackBonus | 9611 | Ranged |
CostOfEnhancement | 9717 | |
CostOfHaste | 9712 | |
CostOfKeen | 9713 | |
CostOfMighty5 | 9612 | Ranged |
CostOfMighty10 | 9613 | Ranged |
CostOfRegeneration2 | 9716 | |
CostOfSpellResistance | 9715 | |
CostOfTrueSeeing | 9714 | |
CostOfUnlimited3 | 9614 | Ranged |
IP_CONST_WS_ATTACK_BONUS | 19000 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_ENHANCEMENT_BONUS | 19001 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_HASTE | 19002 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_KEEN | 19003 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_MIGHTY_5 | 19008 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_MIGHTY_10 | 19009 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_REGENERATION | 19007 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_SPELLRESISTANCE | 19006 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_TRUESEEING | 19005 | Used to make a "fake" IP_CONST_*. |
IP_CONST_WS_UNLIMITED_3 | 19010 | Used to make a "fake" IP_CONST_*. |
MAX_ATTACK_BONUS | 10 | |
MAX_ENHANCEMENT_BONUS | 10 | |
WeaponToken | 9809 | Token number. |
WS_COST_ACID_PROPERTY | 75000 | Price, all elemental damages use this. |
WS_COST_ATTACK_BONUS | 30000 | Price |
WS_COST_ENHANCEMENT_BONUS | 50000 | Price |
WS_COST_HASTE | 150000 | Price |
WS_COST_KEEN | 50000 | Price |
WS_COST_MIGHTY_5 | 50000 | Price |
WS_COST_MIGHTY_10 | 100000 | Price |
WS_COST_REGENERATION2 | 75000 | Price |
WS_COST_SPELLRESISTANCE | 75000 | Price |
WS_COST_TRUESEEING | 30000 | Price |
WS_COST_UNLIMITED_3 | 100000 | Price |
Functions
Name | Brief Description |
GetGoldValueForService | Internal function. Returns the cost for adding the item property specified. |
GetRightHandWeapon | Returns the object equipped in the right hand weapon slot. |
InflateCost | Internal function. Inflates the cost of adding an enhancement bonus if the current enhancement bonus is greater than 4. |
IsOkToAdd | Function checks against WS_ properties to see if its okay to add a specific item property. |
ReturnAttackBonus | Returns total attack bonus for the item. |
ReturnEnhancementBonus | Returns total enhancement bonus for the item. |
ReturnItemPropertyToUse | Returns the correct itemproperty based upon the specified IP_CONST_* and item. |
SetWeaponToken | Sets the name of the weapon equipped the right hand weapon slot as token WeaponToken. |
wsEnhanceItem | Adds the enhancement to the item and takes the gold cost. |
wsHaveEnoughGoldForCurrentItemProperty | Returns TRUE if you have enough gold to add a previously specified item property. |
wsSetupPrices | Sets all custom tokens for the prices of services. |
See Also
author: Mistress