CMObject, Tickable, CMLibrary, ItemBalanceLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>public class TimsLibrary extends StdLibrary implements ItemBalanceLibrary
idConverterisDebugging, name, serviceClient, tickStatusSTATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET| Constructor | Description |
|---|---|
TimsLibrary() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
balanceItemByLevel(Item I) |
Adjusts the mundane stats of the given armor or
weapon item to reflect its present level.
|
int |
calculateBaseValue(Item I) |
Calculates the base value of this armor or weapon.
|
Item |
enchant(Item I,
int pct) |
Given a percent change, this method MIGHT add an enchantment
or cuse of various levels to the give armor, ammunition,
or weapon piece.
|
protected boolean |
fixRejuvItem(Item I) |
|
protected int[] |
getArmorMaterialPointsArray(int materialCode) |
|
Ability |
getBaseAdjusterAbility(java.util.List<Ability> props) |
|
Ability |
getCombatSpell(boolean malicious) |
|
java.util.List<Ability> |
getCombatSpellSet() |
|
java.util.Map<java.lang.Object,java.lang.Integer> |
getItemLevels(Item I,
java.util.List<Ability> props) |
|
java.util.List<Ability> |
getTimsAdjResCast(Item I) |
Returns a list of all the effects on the given item that
contribute to its power level.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
boolean |
itemFix(Item I,
int lvlOr0,
boolean preferMagic,
java.lang.StringBuffer changes) |
Given an item and a new level or 0, this will adjust the stats of the given item
to reflect the desired level or its existing one.
|
protected int |
levelsFromAbility(Item savedI) |
|
protected double |
timsAttackModifier(int weaponClass) |
|
protected double |
timsBaseAttackModifier(int weaponClass) |
|
int |
timsBaseLevel(Item I) |
Returns the apparent power level of the item
based entirely on basic mundane stats, even if
some stats come from a property.
|
int |
timsBaseLevel(Item I,
Ability adjA) |
|
protected double |
timsDmgModifier(int weaponClass) |
|
java.util.Map<java.lang.String,java.lang.String> |
timsItemAdjustments(Item I,
int level,
int material,
int hands,
int wclass,
int reach,
long worndata) |
Returns a map of key value pairs showing what various combat stats
on the given item SHOULD be given the level and other particulars.
|
int |
timsLevelCalculator(Item I) |
Returns the full power level of the given armor,
or weapon.
|
int |
timsLevelCalculator(Item itemI,
java.util.List<Ability> props) |
Returns the full power level of the given armor,
or weapon.
|
void |
toneDownArmor(Armor A,
Ability adjA) |
Lowers the base armor of the give armor item
based on its level and other characteristics.
|
boolean |
toneDownValue(Item I) |
Lowers the base gold value of the given armor
or weapon item based on its level and other
characteristics.
|
void |
toneDownWeapon(Weapon W,
Ability adjA) |
Lowers the base attack and damage of the give weapon
based on its level and other characteristics.
|
void |
toneUpArmor(Armor A,
Ability adjA) |
|
void |
toneUpWeapon(Weapon W,
Ability adjA) |
|
int |
totalLevels(java.util.Map<java.lang.Object,java.lang.Integer> totalLevels) |
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, initializeClass, name, newInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tickpublic java.lang.String ID()
CMObjectID in interface CMObjectID in class StdLibrarypublic int timsLevelCalculator(Item I)
ItemBalanceLibrarytimsLevelCalculator in interface ItemBalanceLibraryI - the item to get the power level ofprotected double timsDmgModifier(int weaponClass)
protected double timsBaseAttackModifier(int weaponClass)
protected double timsAttackModifier(int weaponClass)
public int timsLevelCalculator(Item itemI, java.util.List<Ability> props)
ItemBalanceLibrarytimsLevelCalculator in interface ItemBalanceLibraryitemI - the item to get the power level ofprops - any power affecting effectsprotected boolean fixRejuvItem(Item I)
public java.util.List<Ability> getTimsAdjResCast(Item I)
ItemBalanceLibrarygetTimsAdjResCast in interface ItemBalanceLibraryI - the item to inspectpublic boolean itemFix(Item I, int lvlOr0, boolean preferMagic, java.lang.StringBuffer changes)
ItemBalanceLibraryitemFix in interface ItemBalanceLibraryI - the item to potentially modifylvlOr0 - 0 to use the existing level, or a level to adjust the item topreferMagic - true to prefer adding magical bonuses, false to stay mundanechanges - null, or a strinbuffer to put changes list intopublic boolean toneDownValue(Item I)
ItemBalanceLibrarytoneDownValue in interface ItemBalanceLibraryI - the armor or weaponpublic void balanceItemByLevel(Item I)
ItemBalanceLibrarybalanceItemByLevel in interface ItemBalanceLibraryI - the item to adjust for balanceprotected int[] getArmorMaterialPointsArray(int materialCode)
public int calculateBaseValue(Item I)
ItemBalanceLibrarycalculateBaseValue in interface ItemBalanceLibraryI - the armor or weaponpublic java.util.Map<java.lang.String,java.lang.String> timsItemAdjustments(Item I, int level, int material, int hands, int wclass, int reach, long worndata)
ItemBalanceLibrarytimsItemAdjustments in interface ItemBalanceLibraryI - the item type to inspectlevel - the level you want the item to bematerial - the material of the itemhands - the number of hands for the item (weapon)wclass - the weapon classreach - the weapon max rangeworndata - the proper worn location bitmappublic void toneDownWeapon(Weapon W, Ability adjA)
ItemBalanceLibrarytoneDownWeapon in interface ItemBalanceLibraryW - the weapon to adjustadjA - any property that also impacts attack/dmgpublic void toneDownArmor(Armor A, Ability adjA)
ItemBalanceLibrarytoneDownArmor in interface ItemBalanceLibraryA - the armor to adjustadjA - any property that also impacts armorpublic java.util.Map<java.lang.Object,java.lang.Integer> getItemLevels(Item I, java.util.List<Ability> props)
public int totalLevels(java.util.Map<java.lang.Object,java.lang.Integer> totalLevels)
public int timsBaseLevel(Item I)
ItemBalanceLibrarytimsBaseLevel in interface ItemBalanceLibraryI - the weapon or armor to inspectprotected int levelsFromAbility(Item savedI)
public java.util.List<Ability> getCombatSpellSet()
public Ability getCombatSpell(boolean malicious)
public Item enchant(Item I, int pct)
ItemBalanceLibraryenchant in interface ItemBalanceLibraryI - the item to possibly enchantpct - the % chance to enchant