mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-13 08:15:20 +07:00
Committing additional schemas
This commit is contained in:
parent
7e7dfa0213
commit
8aafd22da5
17
core/src/main/java/com/riiablo/table/schema/Armor.java
Normal file
17
core/src/main/java/com/riiablo/table/schema/Armor.java
Normal file
@ -0,0 +1,17 @@
|
||||
package com.riiablo.table.schema;
|
||||
|
||||
import com.riiablo.table.annotation.Schema;
|
||||
|
||||
@Schema
|
||||
@SuppressWarnings("unused")
|
||||
public class Armor extends ItemEntry {
|
||||
public int Torso;
|
||||
public int Legs;
|
||||
public int rArm;
|
||||
public int lArm;
|
||||
public int lSPad;
|
||||
public int rSPad;
|
||||
public int reqstr;
|
||||
public int durability;
|
||||
public int block;
|
||||
}
|
151
core/src/main/java/com/riiablo/table/schema/ItemEntry.java
Normal file
151
core/src/main/java/com/riiablo/table/schema/ItemEntry.java
Normal file
@ -0,0 +1,151 @@
|
||||
package com.riiablo.table.schema;
|
||||
|
||||
import com.riiablo.table.annotation.Format;
|
||||
import com.riiablo.table.annotation.PrimaryKey;
|
||||
|
||||
public class ItemEntry {
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@PrimaryKey
|
||||
public String code;
|
||||
public String name;
|
||||
public String namestr;
|
||||
public boolean compactsave;
|
||||
public int version;
|
||||
public String alternateGfx;
|
||||
public String type;
|
||||
public String type2;
|
||||
public int component;
|
||||
public String flippyfile;
|
||||
public String invfile;
|
||||
public String uniqueinvfile;
|
||||
public String setinvfile;
|
||||
public int Transform;
|
||||
public int InvTrans;
|
||||
public int invwidth;
|
||||
public int invheight;
|
||||
public String dropsound;
|
||||
public int dropsfxframe;
|
||||
public boolean stackable;
|
||||
public int minstack;
|
||||
public int maxstack;
|
||||
public int spawnstack;
|
||||
public boolean useable;
|
||||
public String usesound;
|
||||
public int quest;
|
||||
public boolean nodurability;
|
||||
public int level;
|
||||
public int levelreq;
|
||||
public int mindam;
|
||||
public int maxdam;
|
||||
public int speed;
|
||||
public int gemsockets;
|
||||
public int gemapplytype;
|
||||
public boolean PermStoreItem;
|
||||
public boolean multibuy;
|
||||
|
||||
@Format(
|
||||
format = "Charsi%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int charsi[];
|
||||
|
||||
@Format(
|
||||
format = "Gheed%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int gheed[];
|
||||
|
||||
@Format(
|
||||
format = "Akara%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int akara[];
|
||||
|
||||
@Format(
|
||||
format = "Fara%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int fara[];
|
||||
|
||||
@Format(
|
||||
format = "Lysander%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int lysander[];
|
||||
|
||||
@Format(
|
||||
format = "Drognan%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int drognan[];
|
||||
|
||||
/**
|
||||
* FIXME: Hratli mislabeled within tables as Hralti in many places -- may require custom code per sheet
|
||||
* NOTE: This is the only discrepancy between these columns
|
||||
* weapons: HraltiMin HraltiMax HraltiMagicMin HraltiMagicMax HratliMagicLvl
|
||||
* armor: HraltiMin HraltiMax HraltiMagicMin HraltiMagicMax HratliMagicLvl
|
||||
* misc: HraltiMin HraltiMax HraltiMagicMin HraltiMagicMax HraltiMagicLvl
|
||||
*
|
||||
*/
|
||||
@Format(
|
||||
format = "Hralti%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int hratli[];
|
||||
|
||||
@Format(
|
||||
format = "Alkor%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int alkor[];
|
||||
|
||||
@Format(
|
||||
format = "Ormus%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int ormus[];
|
||||
|
||||
@Format(format = "Elzix%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int elzix[];
|
||||
|
||||
@Format(format = "Asheara%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int asheara[];
|
||||
|
||||
@Format(
|
||||
format = "Halbu%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int halbu[];
|
||||
|
||||
@Format(
|
||||
format = "Jamella%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int jamella[];
|
||||
|
||||
@Format(
|
||||
format = "Malah%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int malah[];
|
||||
|
||||
@Format(
|
||||
format = "Larzuk%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int larzuk[];
|
||||
|
||||
@Format(
|
||||
format = "Drehya%s",
|
||||
values = {"Min", "Max", "MagicMin", "MagicMax", "MagicLvl"},
|
||||
endIndex = 5)
|
||||
public int drehya[];
|
||||
}
|
11
core/src/main/java/com/riiablo/table/schema/Misc.java
Normal file
11
core/src/main/java/com/riiablo/table/schema/Misc.java
Normal file
@ -0,0 +1,11 @@
|
||||
package com.riiablo.table.schema;
|
||||
|
||||
import com.riiablo.table.annotation.Schema;
|
||||
|
||||
@Schema
|
||||
@SuppressWarnings("unused")
|
||||
public class Misc extends ItemEntry {
|
||||
public int pSpell;
|
||||
public int spelldesc;
|
||||
public String spelldescstr;
|
||||
}
|
105
core/src/main/java/com/riiablo/table/schema/MonStats2.java
Normal file
105
core/src/main/java/com/riiablo/table/schema/MonStats2.java
Normal file
@ -0,0 +1,105 @@
|
||||
package com.riiablo.table.schema;
|
||||
|
||||
import com.riiablo.table.annotation.Format;
|
||||
import com.riiablo.table.annotation.PrimaryKey;
|
||||
import com.riiablo.table.annotation.Schema;
|
||||
|
||||
@Schema
|
||||
@SuppressWarnings("unused")
|
||||
public class MonStats2 {
|
||||
@Override
|
||||
public String toString() {
|
||||
return Id;
|
||||
}
|
||||
|
||||
@PrimaryKey
|
||||
public String Id;
|
||||
public int Height;
|
||||
public int OverlayHeight;
|
||||
public int pixHeight;
|
||||
public int SizeX;
|
||||
public int SizeY;
|
||||
public int spawnCol;
|
||||
public int MeleeRng;
|
||||
public String BaseW;
|
||||
public int HitClass;
|
||||
|
||||
@Format(format = "%sv", endIndex = 16, values = {
|
||||
"HD", "TR", "LG", "RA", "LA", "RH", "LH", "SH", "S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8"
|
||||
})
|
||||
public String ComponentV[];
|
||||
|
||||
@Format(endIndex = 16, values = {
|
||||
"HD", "TR", "LG", "RA", "LA", "RH", "LH", "SH", "S1", "S2", "S3", "S4", "S5", "S6", "S7", "S8"
|
||||
})
|
||||
public boolean Components[];
|
||||
|
||||
public int TotalPieces;
|
||||
|
||||
@Format(format = "m%s", endIndex = 16, values = {
|
||||
"DT", "NU", "WL", "GH", "A1", "A2", "BL", "SC", "S1", "S2", "S3", "S4", "DD", "KB", "SQ", "RN"
|
||||
})
|
||||
public boolean mMode[];
|
||||
|
||||
@Format(format = "d%s", endIndex = 16, values = {
|
||||
"DT", "NU", "WL", "GH", "A1", "A2", "BL", "SC", "S1", "S2", "S3", "S4", "DD", "KB", "SQ", "RN"
|
||||
})
|
||||
public int dMode[];
|
||||
|
||||
@Format(format = "%smv", endIndex = 16, values = {
|
||||
"DT", "NU", "WL", "GH", "A1", "A2", "BL", "SC", "S1", "S2", "S3", "S4", "DD", "KB", "SQ", "RN"
|
||||
})
|
||||
public boolean Modemv[];
|
||||
|
||||
//public int A1mv;
|
||||
//public int A2mv;
|
||||
//public int SCmv;
|
||||
//public int S1mv;
|
||||
//public int S2mv;
|
||||
//public int S3mv;
|
||||
//public int S4mv;
|
||||
public boolean noGfxHitTest;
|
||||
public int htTop;
|
||||
public int htLeft;
|
||||
public int htWidth;
|
||||
public int htHeight;
|
||||
public int restore;
|
||||
public int automapCel;
|
||||
public boolean noMap;
|
||||
public boolean noOvly;
|
||||
public boolean isSel;
|
||||
public boolean alSel;
|
||||
public boolean noSel;
|
||||
public boolean shiftSel;
|
||||
public boolean corpseSel;
|
||||
public boolean isAtt;
|
||||
public boolean revive;
|
||||
public boolean critter;
|
||||
public boolean small;
|
||||
public boolean large;
|
||||
public boolean soft;
|
||||
public boolean inert;
|
||||
public boolean objCol;
|
||||
public boolean deadCol;
|
||||
public boolean unflatDead;
|
||||
public boolean Shadow;
|
||||
public boolean noUniqueShift;
|
||||
public boolean compositeDeath;
|
||||
public int localBlood;
|
||||
public int Bleed;
|
||||
public int Light;
|
||||
|
||||
@Format(format = "light-%s", values = {"r", "g", "b"}, endIndex = 3)
|
||||
public int light[];
|
||||
|
||||
@Format(format = "Utrans%s", values = {"", "(N)", "(H)"}, endIndex = 3)
|
||||
public int Utrans[];
|
||||
|
||||
public String Heart;
|
||||
public String BodyPart;
|
||||
public int InfernoLen;
|
||||
public int InfernoAnim;
|
||||
public int InfernoRollback;
|
||||
public String ResurrectMode;
|
||||
public String ResurrectSkill;
|
||||
}
|
31
core/src/main/java/com/riiablo/table/schema/Weapons.java
Normal file
31
core/src/main/java/com/riiablo/table/schema/Weapons.java
Normal file
@ -0,0 +1,31 @@
|
||||
package com.riiablo.table.schema;
|
||||
|
||||
import com.riiablo.table.annotation.Format;
|
||||
import com.riiablo.table.annotation.Schema;
|
||||
|
||||
@Schema
|
||||
@SuppressWarnings("unused")
|
||||
public class Weapons extends ItemEntry {
|
||||
public String wclass;
|
||||
|
||||
@Format(format = "2handedwclass")
|
||||
public String _2handedwclass;
|
||||
|
||||
@Format(format = "1or2handed")
|
||||
public boolean _1or2handed;
|
||||
|
||||
@Format(format = "2handed")
|
||||
public boolean _2handed;
|
||||
|
||||
@Format(format = "2handmindam")
|
||||
public int _2handmindam;
|
||||
|
||||
@Format(format = "2handmaxdam")
|
||||
public int _2handmaxdam;
|
||||
|
||||
public int minmisdam;
|
||||
public int maxmisdam;
|
||||
public int reqstr;
|
||||
public int reqdex;
|
||||
public int durability;
|
||||
}
|
Loading…
Reference in New Issue
Block a user