384 lines
7.9 KiB
JavaScript
384 lines
7.9 KiB
JavaScript
let nonRolledIDs = [
|
|
"name",
|
|
"lore",
|
|
"displayName",
|
|
"tier",
|
|
"set",
|
|
"slots",
|
|
"type",
|
|
"material",
|
|
"drop",
|
|
"quest",
|
|
"restrict",
|
|
"nDam",
|
|
"fDam",
|
|
"wDam",
|
|
"aDam",
|
|
"tDam",
|
|
"eDam",
|
|
"atkSpd",
|
|
"hp",
|
|
"fDef",
|
|
"wDef",
|
|
"aDef",
|
|
"tDef",
|
|
"eDef",
|
|
"lvl",
|
|
"classReq",
|
|
"strReq",
|
|
"dexReq",
|
|
"intReq",
|
|
"defReq",
|
|
"agiReq","str",
|
|
"dex",
|
|
"int",
|
|
"agi",
|
|
"def",
|
|
"fixID",
|
|
"category",
|
|
"id",
|
|
"skillpoints",
|
|
"reqs",
|
|
"nDam_",
|
|
"fDam_",
|
|
"wDam_",
|
|
"aDam_",
|
|
"tDam_",
|
|
"eDam_",
|
|
"majorIds"];
|
|
let rolledIDs = [
|
|
"hprPct",
|
|
"mr",
|
|
"sdPct",
|
|
"mdPct",
|
|
"ls",
|
|
"ms",
|
|
"xpb",
|
|
"lb",
|
|
"ref",
|
|
"thorns",
|
|
"expd",
|
|
"spd",
|
|
"atkTier",
|
|
"poison",
|
|
"hpBonus",
|
|
"spRegen",
|
|
"eSteal",
|
|
"hprRaw",
|
|
"sdRaw",
|
|
"mdRaw",
|
|
"fDamPct",
|
|
"wDamPct",
|
|
"aDamPct",
|
|
"tDamPct",
|
|
"eDamPct",
|
|
"fDefPct",
|
|
"wDefPct",
|
|
"aDefPct",
|
|
"tDefPct",
|
|
"eDefPct",
|
|
"spPct1",
|
|
"spRaw1",
|
|
"spPct2",
|
|
"spRaw2",
|
|
"spPct3",
|
|
"spRaw3",
|
|
"spPct4",
|
|
"spRaw4",
|
|
"rainbowRaw",
|
|
"sprint",
|
|
"sprintReg",
|
|
"jh",
|
|
"lq",
|
|
"gXp",
|
|
"gSpd"
|
|
];
|
|
let reversedIDs = [ "spPct1", "spRaw1", "spPct2", "spRaw2", "spPct3", "spRaw3", "spPct4", "spRaw4" ];
|
|
let colorMap = new Map(
|
|
[
|
|
["Normal", "#fff"],
|
|
["Unique", "#ff5"],
|
|
["Rare","#f5f"],
|
|
["Legendary","#5ff"],
|
|
["Fabled","#f55"],
|
|
["Mythic","#a0a"],
|
|
["Crafted","#0aa"],
|
|
["Custom","#0aa"],
|
|
["Set","#5f5"]
|
|
]
|
|
);
|
|
let idPrefixes = {"displayName": "",
|
|
"lvl":"Combat Level Min: ",
|
|
"classReq":"Class Req: ",
|
|
"strReq":"Strength Min: ",
|
|
"dexReq":"Dexterity Min: ",
|
|
"intReq":"Intelligence Min: ",
|
|
"defReq":"Defense Min: ",
|
|
"agiReq":"Agility Min: ",
|
|
"nDam_":"Neutral Damage: ",
|
|
"eDam_":"Earth Damage: ",
|
|
"tDam_":"Thunder Damage: ",
|
|
"wDam_":"Water Damage: ",
|
|
"fDam_":"Fire Damage: ",
|
|
"aDam_":"Air Damage: ",
|
|
"atkSpd":"Attack Speed: ",
|
|
"hp":"Health : ",
|
|
"eDef":"Earth Defense: ",
|
|
"tDef":"Thunder Defense: ",
|
|
"wDef":"Water Defense: ",
|
|
"fDef":"Fire Defense: ",
|
|
"aDef":"Air Defense: ",
|
|
"str":"Strength: ",
|
|
"dex":"Dexterity: ",
|
|
"int":"Intelligence: ",
|
|
"def":"Defense: ","agi":"Agility: ",
|
|
"hpBonus":"Health Bonus: ",
|
|
"hprRaw":"Health Regen Raw: ",
|
|
"hprPct":"Health Regen %: ",
|
|
"sdRaw":"Raw Spell Damage: ",
|
|
"sdPct":"Spell Damage %: ",
|
|
"mdRaw":"Raw Melee Damage: ",
|
|
"mdPct":"Melee Damage %: ",
|
|
"mr":"Mana Regen: ",
|
|
"ms":"Mana Steal: ",
|
|
"ref":"Reflection: ",
|
|
"ls":"Life Steal: ",
|
|
"poison":"Poison: ",
|
|
"thorns":"Thorns: ",
|
|
"expd":"Exploding: ",
|
|
"spd":"Walk Speed Bonus: ",
|
|
"atkTier":"Attack Speed Bonus: ",
|
|
"eDamPct":"Earth Damage %: ",
|
|
"tDamPct":"Thunder Damage %: ",
|
|
"wDamPct":"Water Damage %: ",
|
|
"fDamPct":"Fire Damage %: ",
|
|
"aDamPct":"Air Damage %: ",
|
|
"eDefPct":"Earth Defense %: ",
|
|
"tDefPct":"Thunder Defense %: ",
|
|
"wDefPct":"Water Defense %: ",
|
|
"fDefPct":"Fire Defense %: ",
|
|
"aDefPct":"Air Defense %: ",
|
|
"spPct1":"1st Spell Cost %: ",
|
|
"spRaw1":"1st Spell Cost Raw: ",
|
|
"spPct2":"2nd Spell Cost %: ",
|
|
"spRaw2":"2nd Spell Cost Raw: ",
|
|
"spPct3":"3rd Spell Cost %: ",
|
|
"spRaw3":"3rd Spell Cost Raw: ",
|
|
"spPct4":"4th Spell Cost %: ",
|
|
"spRaw4":"4th Spell Cost Raw: ",
|
|
"rainbowRaw":"Rainbow Spell Damage Raw: ",
|
|
"sprint":"Sprint Bonus: ",
|
|
"sprintReg":"Sprint Regen Bonus: ",
|
|
"jh":"Jump Height: ",
|
|
"xpb":"Combat XP Bonus: ",
|
|
"lb":"Loot Bonus: ",
|
|
"lq":"Loot Quality: ",
|
|
"spRegen":"Soul Point Regen: ",
|
|
"eSteal":"Stealing: ",
|
|
"gXp":"Gathering XP Bonus: ",
|
|
"gSpd":"Gathering Speed Bonus: ",
|
|
"slots":"Powder Slots: ",
|
|
"set":"Set: ",
|
|
"quest":"Quest Req: ",
|
|
"restrict":"",
|
|
"lore": ""
|
|
};
|
|
let idSuffixes = {"displayName": "",
|
|
"lvl":"",
|
|
"classReq":"",
|
|
"strReq":"",
|
|
"dexReq":"",
|
|
"intReq":"",
|
|
"defReq":"",
|
|
"agiReq":"",
|
|
"nDam_":"",
|
|
"eDam_":"",
|
|
"tDam_":"",
|
|
"wDam_":"",
|
|
"fDam_":"",
|
|
"aDam_":"",
|
|
"atkSpd":"",
|
|
"hp":"",
|
|
"eDef":"",
|
|
"tDef":"",
|
|
"wDef":"",
|
|
"fDef":"",
|
|
"aDef":"",
|
|
"str":"",
|
|
"dex":"",
|
|
"int":"",
|
|
"def":"",
|
|
"agi":"",
|
|
"hpBonus":"",
|
|
"hprRaw":"",
|
|
"hprPct":"%",
|
|
"sdRaw":"",
|
|
"sdPct":"%",
|
|
"mdRaw":"",
|
|
"mdPct":"%",
|
|
"mr":"/5s",
|
|
"ms":"/3s",
|
|
"ref":"%",
|
|
"ls":"/3s",
|
|
"poison":"/3s",
|
|
"thorns":"%",
|
|
"expd":"%",
|
|
"spd":"%",
|
|
"atkTier":" tier",
|
|
"eDamPct":"%",
|
|
"tDamPct":"%",
|
|
"wDamPct":"%",
|
|
"fDamPct":"%",
|
|
"aDamPct":"%",
|
|
"eDefPct":"%",
|
|
"tDefPct":"%",
|
|
"wDefPct":"%",
|
|
"fDefPct":"%",
|
|
"aDefPct":"%",
|
|
"spPct1":"%",
|
|
"spRaw1":"",
|
|
"spPct2":"%",
|
|
"spRaw2":"",
|
|
"spPct3":"%",
|
|
"spRaw3":"",
|
|
"spPct4":"%",
|
|
"spRaw4":"",
|
|
"rainbowRaw":"",
|
|
"sprint":"%",
|
|
"sprintReg":"%",
|
|
"jh":"",
|
|
"xpb":"%",
|
|
"lb":"%",
|
|
"lq":"%",
|
|
"spRegen":"%",
|
|
"eSteal":"%",
|
|
"gXp":"%",
|
|
"gSpd":"%",
|
|
"slots":"",
|
|
"set":" set.",
|
|
"quest":"",
|
|
"restrict":"",
|
|
"lore": ""
|
|
};
|
|
|
|
//Used for item IDs and ingredient id field IDs
|
|
//Used for ingredient IDs - name, lvl, tier. As of now, not used.
|
|
/*let ingPrefixes = {"name": "", "lvl": "", "tier": ""};
|
|
let ingSuffixes = {"name": "", "lvl": "", "tier": ""}*/
|
|
//Used for ingredient consumableIDs
|
|
let consumableIDPrefixes = {
|
|
"charges": "Charges: ",
|
|
"dura": "Duration: "
|
|
}
|
|
let consumableIDSuffixes = {
|
|
"charges": "",
|
|
"dura": " sec."
|
|
}
|
|
//Used for ingredient itemIDs
|
|
let itemIDPrefixes = {
|
|
"dura": "Durability: ",
|
|
"strReq": "Strength Min: ",
|
|
"dexReq": "Dexterity Min: ",
|
|
"intReq": "Intelligence Min: ",
|
|
"defReq": "Defense Min: ",
|
|
"agiReq": "Agility Min: "
|
|
}
|
|
|
|
//Used for ingredient posMods IDs
|
|
let posModPrefixes = {
|
|
"left":"Effectiveness Left: ",
|
|
"right":"EFfectiveness Right: ",
|
|
"above":"Effectiveness Above: ",
|
|
"under":"Effectiveness Under: ",
|
|
"touching":"EFfectiveness Touching: ",
|
|
"notTouching":"Effectiveness Not Touching: "
|
|
}
|
|
let posModSuffixes = {
|
|
"left":"%",
|
|
"right":"%",
|
|
"above":"%",
|
|
"under":"%",
|
|
"touching":"%",
|
|
"notTouching":"%"
|
|
}
|
|
|
|
/*
|
|
* Display commands
|
|
*/
|
|
let build_overall_display_commands = [
|
|
"#table",
|
|
"str", "dex", "int", "def", "agi",
|
|
"mr", "ms",
|
|
"hprRaw", "hprPct",
|
|
"sdRaw", "sdPct",
|
|
"mdRaw", "mdPct",
|
|
"ref", "thorns",
|
|
"ls",
|
|
"poison",
|
|
"expd",
|
|
"spd",
|
|
"atkTier",
|
|
"!elemental",
|
|
"fDamPct", "wDamPct", "aDamPct", "tDamPct", "eDamPct",
|
|
"!elemental",
|
|
"spPct1", "spRaw1", "spPct2", "spRaw2", "spPct3", "spRaw3", "spPct4", "spRaw4",
|
|
"rainbowRaw",
|
|
"sprint", "sprintReg",
|
|
"jh",
|
|
"xpb", "lb", "lq",
|
|
"spRegen",
|
|
"eSteal",
|
|
"gXp", "gSpd",
|
|
];
|
|
|
|
let item_display_commands = [
|
|
"#cdiv",
|
|
"displayName",
|
|
//"type", //REPLACE THIS WITH SKIN
|
|
"#ldiv",
|
|
"atkSpd",
|
|
"#ldiv",
|
|
"!elemental",
|
|
"hp",
|
|
"nDam_", "fDam_", "wDam_", "aDam_", "tDam_", "eDam_",
|
|
"fDef", "wDef", "aDef", "tDef", "eDef",
|
|
"!elemental",
|
|
"#ldiv",
|
|
"classReq",
|
|
"lvl",
|
|
"strReq", "dexReq", "intReq", "defReq","agiReq",
|
|
"#ldiv",
|
|
"str", "dex", "int", "def", "agi",
|
|
"#table",
|
|
"str", "dex", "int", "def", "agi", //jank lmao
|
|
"hpBonus",
|
|
"hprRaw", "hprPct",
|
|
"sdRaw", "sdPct",
|
|
"mdRaw", "mdPct",
|
|
"mr", "ms",
|
|
"ref", "thorns",
|
|
"ls",
|
|
"poison",
|
|
"expd",
|
|
"spd",
|
|
"atkTier",
|
|
"!elemental",
|
|
"fDamPct", "wDamPct", "aDamPct", "tDamPct", "eDamPct",
|
|
"fDefPct", "wDefPct", "aDefPct", "tDefPct", "eDefPct",
|
|
"!elemental",
|
|
"spPct1", "spRaw1", "spPct2", "spRaw2", "spPct3", "spRaw3", "spPct4", "spRaw4",
|
|
"rainbowRaw",
|
|
"sprint", "sprintReg",
|
|
"jh",
|
|
"xpb", "lb", "lq",
|
|
"spRegen",
|
|
"eSteal",
|
|
"gXp", "gSpd",
|
|
"#ldiv",
|
|
"majorIds",
|
|
"slots",
|
|
"set",
|
|
"lore",
|
|
"quest",
|
|
"restrict"
|
|
];
|