Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package client;
- /**
- *
- * @author Chris
- */
- public enum SpiritList {
- BEGINNER(0),
- WARRIOR(100), WARRIOR2(101), WARRIOR3(102),
- MAGE(200), MAGE2(201), MAGE3(202),
- ARCHER(300), ARCHER2(301), ARCHER3(302),
- THIEF(400), THIEF2(401), THIEF3(402),
- PIRATE(500), PIRATE1(501), PIRATE2(502);
- final int spiritid;
- private SpiritList(int id) {
- spiritid = id;
- }
- public int getId() {
- return spiritid;
- }
- public static SpiritList getById(int id) {
- for (SpiritList l : SpiritList.values()) {
- if (l.getId() == id) {
- return l;
- }
- }
- return null;
- }
- public boolean isA(SpiritList basejob) {
- return getId() >= basejob.getId() && getId() / 100 == basejob.getId() / 100;
- }
- /*List of rewards from each class
- * WARRIOR- % HP. Starts at 3, ends at 9.
- * MAGE- %MP. Starts at 3, ends at 9.
- * ARCHER- %HP AND %MP - 1%, 2%, and 3% HP, .5%, 1%, and 1.5% MP
- * THIEF- %MP AND %HP - 1%, 2%, and 3% MP, .5%, 1%, and 1.5% HP
- */
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement