public class Weapon extends KindOfWeapon
Modifier and Type | Class and Description |
---|---|
static class |
Weapon.Enchantment |
static class |
Weapon.Imbue |
Modifier and Type | Field and Description |
---|---|
float |
ACU |
float |
DLY |
Weapon.Imbue |
imbue |
int |
STR |
MAX, MIN
cursed, cursedKnown, defaultAction, levelKnown, stackable
Constructor and Description |
---|
Weapon() |
Modifier and Type | Method and Description |
---|---|
float |
accuracyFactor(Hero hero) |
int |
damageRoll(Hero hero) |
Weapon |
enchant(Weapon.Enchantment ench) |
void |
fromJson(org.json.JSONObject itemDesc) |
Weapon.Enchantment |
getEnchantment() |
ItemSprite.Glowing |
glowing() |
boolean |
isEnchanted() |
java.lang.String |
name() |
void |
proc(Char attacker,
Char defender,
int damage) |
Item |
random() |
void |
restoreFromBundle(Bundle bundle) |
float |
speedFactor(Hero hero) |
void |
storeInBundle(Bundle bundle) |
java.lang.String |
toString() |
Item |
upgrade(boolean enchant) |
void |
usedForHit() |
actions, activate, doEquip, doUnequip, isEquipped
cast, doDrop, doUnequip, execute
affectLevelObjects, burn, collect, collect, degrade, degrade, desc, detach, detachAll, dontPack, doPickUp, doThrow, emitter, emitterInterval, evoke, execute, freeze, identify, image, imageFile, info, isFliesFastRotating, isFliesStraight, isIdentified, isUpgradable, level, level, pick, poison, price, quantity, quantity, removeItemFrom, status, trueName, updateQuickslot, upgrade, upgrade, virtual, visiblyUpgraded
public int STR
public float ACU
public float DLY
public Weapon.Imbue imbue
public void usedForHit()
public void proc(Char attacker, Char defender, int damage)
proc
in class KindOfWeapon
public void storeInBundle(Bundle bundle)
storeInBundle
in interface Bundlable
storeInBundle
in class Item
public void restoreFromBundle(Bundle bundle)
restoreFromBundle
in interface Bundlable
restoreFromBundle
in class Item
public float accuracyFactor(Hero hero)
accuracyFactor
in class KindOfWeapon
public float speedFactor(Hero hero)
speedFactor
in class KindOfWeapon
public int damageRoll(Hero hero)
damageRoll
in class KindOfWeapon
public Item upgrade(boolean enchant)
public Weapon enchant(Weapon.Enchantment ench)
public boolean isEnchanted()
public ItemSprite.Glowing glowing()
public Weapon.Enchantment getEnchantment()