|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.lib.classes.random.ArmorEnchanter
Knows how to produce magical armor of a given level by picking a base armor type and adding enchantments.
Field Summary | |
static int |
DEFAULT_CURSE_CHANCE
The default chance that a randomly generated level-1 armor will have a cursed enchantment. |
Constructor Summary | |
ArmorEnchanter()
|
Method Summary | |
static GameObject |
generateArmor(int level)
Creates a armor (possibly cursed) of the passed level. |
static GameObject |
generateArmor(int level,
int curseChance)
Creates a armor (possibly cursed) of the passed level. |
static void |
main(java.lang.String[] args)
Tests the enchanter functions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_CURSE_CHANCE
Constructor Detail |
public ArmorEnchanter()
Method Detail |
public static GameObject generateArmor(int level)
level
- the level of item to generatepublic static GameObject generateArmor(int level, int curseChance)
level
- the level of armor to generate (1-20)curseChance
- the chance the item will have a cursed
enchantment on it instead of a normal enchantment (1-100)public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |