// global // var ikrpg var ikrpg = ikrpg || {}; (function() { ikrpg.generator = ikrpg.generator || {}; var generator = ikrpg.generator; // # DBs # \\ (function() { ikrpg.generator.db = ikrpg.generator.db || {}; // ## Skill DB ## \\ (function() { var skillDB = { "Alchemy": ["INT"], "Animal Handling": ["SOC"], "Archery": ["POI"], "Bribery": ["SOC"], "Chymistry": ["INT"], "Climbing": ["AGL"], "Command": ["SOC"], "Craft": ["INT"], "Crossbow": ["POI"], "Cryptography": ["INT"], "Deception": ["SOC"], "Detection": ["PER"], "Disguise": ["INT"], "Driving": ["AGL"], "Escape Artist": ["AGL"], "Etiquette": ["SOC"], "Fell Calling": ["POI"], "Forensic Science": ["INT"], "Forgery": ["AGL", "INT"], "Gambling": ["PER"], "Great Weapon": ["PRW"], "Hand Weapon": ["PRW"], "Heavy Artillery": ["POI"], "Interrogation": ["SOC"], "Intimidation": ["SOC"], "Investigation": ["INT"], "Jumping": ["PHY"], "Lance": ["PRW"], "Law": ["INT"], "Light Artillery": ["POI"], "Lock Picking": ["AGL"], "Lore": ["INT"], "Mechanikal Engineering": ["INT"], "Medicine": ["INT"], "Navigation": ["PER"], "Negotiation": ["SOC"], "Oratory": ["SOC"], "Pickpocket": ["AGL"], "Pistol": ["POI"], "Reiver": ["POI"], "Research": ["INT"], "Riding": ["AGL"], "Rifle": ["POI"], "Rope Use": ["AGL"], "Sailing": ["INT", "STR"], "Seduction": ["SOC"], "Shield": ["PRW"], "Sneak": ["AGL"], "Stormsmithing": ["PER"], "Streetwise": ["PER"], "Survival": ["PER"], "Swimming": ["STR"], "Thrall Crafting": ["INT"], "Thrown Weapon": ["PRW"], "Tracking": ["PER"], "Unarmed Combat": ["PRW"] }; ikrpg.generator.db.skill = skillDB; })(); // ## Spell DB [Done for Core Rules] ## \\ (function() { var spellDB = { "Abuse": undefined, "Admonition": undefined, "Affliction": undefined, "Aggravator": undefined, "Agitation": undefined, "Annihilation": undefined, "Arcane Blast": undefined, "Arcane Bolt": { "cost": 2, "rng": 12, "aoe": "–", "pow": 11, "up": "NO", "off": "YES", "description": "" }, "Arcane Bonds": undefined, "Arcane Strike": { "cost": 1, "rng": 8, "aoe": "–", "pow": 8, "up": "NO", "off": "YES", "description": "" }, "Arcantrik Bolt": { "cost": 2, "rng": 10, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Ashen Cloud": { "cost": 2, "rng": "CTRL", "aoe": 3, "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Ashen Veil": undefined, "Ashes to Ashes": { "cost": 4, "rng": 8, "aoe": "*", "pow": 10, "up": "NO", "off": "YES", "description": "" }, "Aura of Protection": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Awakened Spirit": undefined, "Awareness": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Ayisla's Rebuke": undefined, "Backlash": undefined, "Bad Blood": undefined, "Banishing Ward": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Barrier of Flames": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Battering Ram": { "cost": 2, "rng": 6, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Batten Down the Hatches": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Battle Charged": undefined, "Battle Frost": undefined, "Battle Rage": undefined, "Bestial": undefined, "Beyond Death": undefined, "Black Out": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Blade of Radiance": { "cost": 2, "rng": 10, "aoe": "–", "pow": 10, "up": "NO", "off": "YES", "description": "" }, "Blaze of Glory": undefined, "Blazing Effigy": { "cost": 4, "rng": "SELF", "aoe": "*", "pow": 14, "up": "NO", "off": "NO", "description": "" }, "Bleed": undefined, "Blessing of Health": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Blessing of Morrow": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Blessing of the Devourer": undefined, "Blessings of War": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Blight Blast": undefined, "Blight Bringer": undefined, "Blight Field": undefined, "Blizzard": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Blood Feast": undefined, "Blood Magic: Accurate Strike": undefined, "Blood Magic: Black Poison": undefined, "Blood Magic: Bleeder": undefined, "Blood Magic: Blood Burst": undefined, "Blood Magic: Brain Damage": undefined, "Blood Magic: Brutal Strike": undefined, "Blood Magic: Dispel": undefined, "Blood Magic: Grievous Strike": undefined, "Blood Magic: Heart Stopper": undefined, "Blood Magic: Hobbler": undefined, "Blood Magic: Invigoration": undefined, "Blood Magic: Weekness": undefined, "Blood Mark": undefined, "Blood Rain": undefined, "Blow the Man Down": undefined, "Blur": undefined, "Bone Shaker": undefined, "Brittle Frost": { "cost": 3, "rng": 8, "aoe": "–", "pow": "–", "up": "YES", "off": "YES", "description": "" }, "Boundless Charge": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Broadside": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Bullet Dodger": undefined, "Buoyancy": undefined, "Carnage": undefined, "Carnivore": undefined, "Celerity": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Chain Lightning": { "cost": 3, "rng": 10, "aoe": "–", "pow": 10, "up": "NO", "off": "YES", "description": "" }, "Chasten": undefined, "Chiller": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Cleansing Fire": { "cost": 3, "rng": 8, "aoe": 3, "pow": 14, "up": "NO", "off": "YES", "description": "" }, "Cloak of Fear": undefined, "Cloak of the Predator": undefined, "Cold Blooded": undefined, "Convection": { "cost": 2, "rng": 10, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Crevasse": { "cost": 3, "rng": 8, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Cross-Country": undefined, "Crusader's Call": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Curse of Shadows": undefined, "Dark Fire": undefined, "Dark Persuader": undefined, "Dark Water": undefined, "Daylight": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Deadeye": undefined, "Deadweight": undefined, "Death Field": undefined, "Death Pact": undefined, "Deathly Slumber": undefined, "Deceleration": { "cost": 3, "rng": "SELF", "aoe": "DTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Deep Freeze": { "cost": 3, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Devil's Tongue": undefined, "Dirge of Mists": undefined, "Disruptor": undefined, "Dissolution Bolt": undefined, "Dog Pile": undefined, "Dominate Undead": undefined, "Domination": undefined, "Draconic Blessing": undefined, "Dragon's Blood": undefined, "Dragonsight": undefined, "Earthquake": { "cost": 3, "rng": 10, "aoe": 5, "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Earth's Cradle": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Earthsplitter": { "cost": 4, "rng": 10, "aoe": 3, "pow": 14, "up": "NO", "off": "YES", "description": "" }, "Electrical Blast": { "cost": 3, "rng": 8, "aoe": 3, "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Electrical Charge": undefined, "Electrify": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Electrodynamics": undefined, "Elemental Protection": undefined, "Eliminator": { "cost": 3, "rng": 8, "aoe": 3, "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Entangle": { "cost": 1, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Enthrall Spirit": undefined, "Entropic Force": undefined, "Eruption of Life": undefined, "Eruption of Spines": undefined, "Essence Blast": undefined, "Exorcism": undefined, "Explosivo": undefined, "Extinguisher": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Eye of Menoth": undefined, "Eyes of Truth": { "cost": 2, "rng": "SELF", "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Fail Safe": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Fair Winds": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Feast of Worms": undefined, "Fire for Effect": undefined, "Fire Group": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Fire Starter": { "cost": 1, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "*", "description": "" }, "Flames of Wrath": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Flare": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Flesh Eater": undefined, "Fog of War": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Force Bolt": undefined, "Force Field": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Force Hammer": { "cost": 4, "rng": 10, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Force of Faith": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Forced Evolution": undefined, "Fortify": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Fortune": undefined, "Foxhole": { "cost": 2, "rng": "CTRL", "aoe": 5, "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Freezing Grip": { "cost": 4, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Freezing Mist": { "cost": 4, "rng": "SELF", "aoe": "*", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Frozen Ground": { "cost": 3, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Frostbite": { "cost": 2, "rng": "SP8", "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Fuel the Flames": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Full Throttle": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Fury": undefined, "Gallows": undefined, "Ghost Shroud": undefined, "Ghost Walk": undefined, "Grave Whispers": undefined, "Grind": { "cost": 3, "rng": 10, "aoe": "–", "pow": 14, "up": "NO", "off": "YES", "description": "" }, "Grip of Death": undefined, "Ground Zero": undefined, "Guidance": undefined, "Guided Blade": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Guilded Fire": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Hallowed Avender": undefined, "Hallowed Guardian": undefined, "Hand of Fate": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Hardened Flesh": undefined, "Harvest": undefined, "Heal": { "cost": 4, "rng": "*", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Heightened Reflexes": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Hellfire": undefined, "Hellmouth": undefined, "Hex Blast": { "cost": 3, "rng": 10, "aoe": 3, "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Hex Hammer": undefined, "Hidden Path": undefined, "Hoarfrost": { "cost": 3, "rng": 8, "aoe": 3, "pow": 14, "up": "NO", "off": "YES", "description": "" }, "Hollow": undefined, "Holy Ward": undefined, "Hot Shot": undefined, "Howling Flames": { "cost": 2, "rng": "SP8", "aoe": "–", "pow": 10, "up": "NO", "off": "YES", "description": "" }, "Hunter's Mark": undefined, "Hymn of Battle": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Hymn of Passage": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Hymn of Shielding": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Hyper Awareness": undefined, "Ice Bolt": { "cost": 2, "rng": 10, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Ice Shield": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Icy Grip": { "cost": 2, "rng": 8, "aoe": "–", "pow": "–", "up": "YES", "off": "YES", "description": "" }, "Ignite": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Illusion of Vitality": undefined, "Immolation": { "cost": 2, "rng": 8, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Incite": undefined, "Infernal Machine": undefined, "Inferno": { "cost": 3, "rng": 10, "aoe": 3, "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Influence": { "cost": 1, "rng": 10, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Inhospitable Ground": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Instigate": undefined, "Inviolable Resolve": undefined, "Iron Aggression": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Iron Flesh": undefined, "Jackhammer": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Jaws of Death": undefined, "Jump Start": { "cost": 1, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Killing Ground": undefined, "Killing Tide": undefined, "Lamentation": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Leash": undefined, "Light in the Darkness": { "cost": 1, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Light of Nyrro": undefined, "Lightning Shroud": undefined, "Lightning Storm": undefined, "Lightning Tendrils": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Lightning Tongue": undefined, "Locomotion": { "cost": "1+", "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Mage Sight": undefined, "Magnetic Hold": undefined, "Mark of Lyliss": undefined, "Marked for Death": undefined, "Medicate": undefined, "Mindblow": undefined, "Mirage": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Mist Shroud": undefined, "Mobility": undefined, "Mockery of Life": undefined, "Molten Metal": undefined, "Mortality": undefined, "Murder of Crows": undefined, "Muzzle": undefined, "Mystic Wards": undefined, "Obliteration": { "cost": 4, "rng": 10, "aoe": 4, "pow": 15, "up": "NO", "off": "YES", "description": "" }, "Occultation": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Overmind": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Parasite": undefined, "Parasitic Invigoration": undefined, "Perdition": undefined, "Phantasm": undefined, "Phantom Hunter": undefined, "Pig Pen": undefined, "Playing God": undefined, "Polarity Shield": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Positive Charge": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Powder Keg": undefined, "Power Booster": { "cost": 1, "rng": 5, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Prayer for Guidance": undefined, "Prayer of Guidance": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Primal Shock": undefined, "Protection from Cold": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Protection from Corrosion": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Protection from Electricity": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Protection from Fire": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Protector's Mark": undefined, "Prowess of Lurynsar": undefined, "Psi Blast": undefined, "Psychic Vampire": undefined, "Psychophage": undefined, "Purification": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Quagmire": undefined, "Quickened": undefined, "Raging Winds": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Raise Dead": undefined, "Rampager": undefined, "Rapid Growth": undefined, "Ravager": undefined, "Rawhide": undefined, "Razor Wall": undefined, "Razor Wind": { "cost": 2, "rng": 10, "aoe": "–", "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Realignment": undefined, "Reconstruction": undefined, "Redline": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Refuge": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Respawn": undefined, "Restoration": undefined, "Return Fire": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rift": { "cost": 3, "rng": 8, "aoe": 4, "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Righteous Flames": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rime": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rise in Death": undefined, "Rising Tide": undefined, "Rock Hammer": { "cost": 3, "rng": 10, "aoe": 3, "pow": 14, "up": "NO", "off": "YES", "description": "" }, "Rock Wall": { "cost": 2, "rng": "CTRL", "aoe": "WALL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Roots of the Earth": undefined, "Rune Shot: Accuracy": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Black Penny": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Brutal": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Detonator": { "cost": 3, "rng": "SELF", "aoe": "*", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Disruption": undefined, "Rune Shot: Earth Shaker": { "cost": 3, "rng": "SELF", "aoe": "*", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot Electro Leap": undefined, "Rune Shot: Fire Beacon": undefined, "Rune Shot: Freeze Fire": { "cost": 4, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Heart Stopper": { "cost": 4, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Iron Bolt": undefined, "Rune Shot: Iron Rot": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Molten Shot": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Momentum": { "cost": 4, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Phantom Seeker": { "cost": 3, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Piercer": undefined, "Rune Shot: Shadow Fire": { "cost": 2, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Silencer": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Spell Cracker": { "cost": 3, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Spontaneous Combustion": { "cost": 1, "rng": "SELF", "aoe": "*", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Thunderbolt": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Rune Shot: Trick Shot": { "cost": 2, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Sacraficial Pawn": undefined, "Sanguine Blessing": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Savagery": undefined, "Sea Legs": undefined, "Sea of Fire": { "cost": 4, "rng": "SELF", "aoe": "*", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Shadow Pack": undefined, "Shadow Sight": undefined, "Shatter Storm": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Shield of Faith": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Shock Wave": { "cost": 4, "rng": "SELF", "aoe": "*", "pow": 13, "up": "NO", "off": "NO", "description": "" }, "Short Out": { "cost": 1, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Shrapnel Swarm": undefined, "Snipe": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Solid Ground": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Solovin's Boon": { "cost": 1, "rng": "SELF", "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Somnambulist": undefined, "Soothing Song": undefined, "Soul Mark": undefined, "Soul Slave": undefined, "Soulfire": undefined, "Spirit Fang": undefined, "Spirit Lash": undefined, "Star Crossed": undefined, "Star Fire": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Star-Crossed": undefined, "Staying Winter's Hand": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Stone Form": undefined, "Stone Hold": undefined, "Stone Skin": undefined, "Stone Spray": undefined, "Stone Stance": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Stone Strength": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Storm Tossed": { "cost": 1, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Storm Wall": undefined, "Stranglehold": undefined, "Stygian Abyss": undefined, "Summon Vortex": undefined, "Sunburst": { "cost": 3, "rng": 10, "aoe": 3, "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Sunder Spirit": undefined, "Sunhammer": undefined, "Superiority": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Sure Foot": undefined, "Synergy": undefined, "Telekinesis": { "cost": 2, "rng": 8, "aoe": "–", "pow": "–", "up": "NO", "off": "*", "description": "" }, "Telgesh Mark": undefined, "Temper Metal": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Tempest": { "cost": 4, "rng": 8, "aoe": 4, "pow": 12, "up": "NO", "off": "YES", "description": "" }, "Tide of Steel": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Torment": undefined, "Tornado": { "cost": 4, "rng": 10, "aoe": "–", "pow": 13, "up": "NO", "off": "YES", "description": "" }, "Total Domination": undefined, "Total Spectrum": undefined, "Transference": { "cost": 2, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Triage": { "cost": 2, "rng": "B2B", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "True Path": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "True Sight": { "cost": 2, "rng": "SELF", "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Twister": undefined, "Unease": undefined, "Unminding": undefined, "Unnatural Aggression": undefined, "Unstoppable Force": undefined, "Veil of Mist": undefined, "Venom": undefined, "Vision": { "cost": 2, "rng": 6, "aoe": "–", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Void Curse": undefined, "Voltaic Lock": { "cost": 4, "rng": 10, "aoe": "*", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Voodoo Doll": undefined, "Wall of Fire": { "cost": 2, "rng": "CTRL", "aoe": "WALL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Warpath": undefined, "Watcher": undefined, "Wave of Vivification": undefined, "Weald Hunter": undefined, "White Out": { "cost": 4, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "YES", "off": "NO", "description": "" }, "Wild Aggression": undefined, "Will Breaker": undefined, "Wind Blast": { "cost": 2, "rng": "CTRL", "aoe": 5, "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Wind Ravager": undefined, "Wind Strike": { "cost": 1, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "YES", "description": "" }, "Wind Wall": undefined, "Wings of Air": { "cost": 2, "rng": "SELF", "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Winter Storm": { "cost": 3, "rng": "SELF", "aoe": "CTRL", "pow": "–", "up": "NO", "off": "NO", "description": "" }, "Zephyr": { "cost": 3, "rng": 6, "aoe": "–", "pow": "–", "up": "NO", "off": "NO", "description": "" } }; ikrpg.generator.db.spell = spellDB; })(); // ## Worn Armor DB [Done for Regular Armor] ## \\ TODO: Add Warcaster Armor etc. (function() { var wornArmorDB = { "Alchemist's Leather": { "spd": 0, "def": -1, "arm": 5, "description": "" }, "Armored Great Coat": { "spd": 0, "def": -1, "arm": 5, "description": "" }, "Assault Kommando Armor": { "spd": 0, "def": -2, "arm": 7, "description": "" }, "Bastion Heavy Plate": { "spd": -3, "def": -4, "arm": 10, "description": "" }, "Bog Trog Armor": { "spd": 0, "def": -1, "arm": 6, "description": "" }, "Cataphract Armor": { "spd": -2, "def": -3, "arm": 9, "description": "" }, "Chain Mail": { "spd": 0, "def": -2, "arm": 7, "description": "" }, "Cleanser Armor": { "spd": -1, "def": -3, "arm": 8, "description": "" }, "Crucible Armor": { "spd": -1, "def": -3, "arm": 8, "description": "" }, "Custom Battle Armor": { "spd": 0, "def": -1, "arm": 6, "description": "" }, "Exemplar Plate": { "spd": -2, "def": -3, "arm": 9, "description": "" }, "Full Plate": { "spd": -1, "def": -3, "arm": 8, "description": "" }, "Infantry Armor": { "spd": 0, "def": -2, "arm": 7, "description": "" }, "Leather Armor": { "spd": 0, "def": -1, "arm": 5, "description": "" }, "Man-O-War Armor": { "spd": -3, "def": -3, "arm": 9, "description": "" }, "Nyss Leather Armor": { "spd": 0, "def": -1, "arm": 6, "description": "" }, "Ordic Royal Marine Armor": { "spd": 0, "def": -1, "arm": 6, "description": "" }, "Paingiver Armor": { "spd": 0, "def": 0, "arm": 5, "description": "" }, "Plastron": { "spd": 0, "def": 0, "arm": 2, "description": "" }, "Praetorian Armor": { "spd": 0, "def": -2, "arm": 8, "description": "" }, "Ryssovass Plate": { "spd": -2, "def": -3, "arm": 9, "description": "" }, "Skorne Infantry Armor": { "spd": 0, "def": -1, "arm": 7, "description": "" }, "Storm Knight Armor": { "spd": -2, "def": -3, "arm": 9, "description": "" }, "Stormsmith Armor": { "spd": 0, "def": -1, "arm": 5, "description": "" }, "Tailored Plate": { "spd": 0, "def": -1, "arm": 7, "description": "" }, "Temple Flameguard Armor": { "spd": 0, "def": -1, "arm": 5, "description": "" }, "Tharn Leathers": { "spd": 0, "def": 0, "arm": 4, "description": "" }, "Vassal Armor": { "spd": 0, "def": -2, "arm": 7, "description": "" }, "Winter Guard Armor": { "spd": 0, "def": -2, "arm": 7, "description": "" } }; ikrpg.generator.db.wornArmor = wornArmorDB; })(); // ## Melee Weapon DB [Done for Core Rules] ## \\ (function() { var meleeWeaponDB = { "Ancestral Guardian Stone Weapon": undefined, "Annihilator Blade": undefined, "Assassin's Blade": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "+2 backstrike" }, "Axe": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 3, "notes": "" }, "Axe, Great": { "skill": "Great Weapon", "mat-mod": 0, "pow": 6, "notes": "Crit: +1 die dmg" }, "Axe, Horseman's": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 3, "notes": "reach, mounted: at-mod 0, POW 5, +2 charge at" }, "Axe, Ice": undefined, "Axe, Riding": undefined, "Axe, Tharn": undefined, "Az'Tal": undefined, "Barbed Whip": undefined, "Battle Hammer": undefined, "Bayonet": { "skill": "Great Weapon", "mat-mod": -1, "pow": 3, "notes": "reach, for Rifles, +2 charge at" }, "Blackclad Voulge": undefined, "Blast Shield": undefined, "Blasting Lance": undefined, "Blasting Pike": { "skill": "Great Weapon", "mat-mod": -2, "pow": 7, "notes": "reach, Crit: Knockdown" }, "Blazing Sword": undefined, "Blessed Lance": undefined, "Bloodtracker Fighting Claw": undefined, "Caspian Battleblade": { "skill": "Great Weapon", "mat-mod": 0, "pow": 6, "notes": "1-H: mat-mod -1, POW 4" }, "Cat's Paw": undefined, "Cleft Spear": undefined, "Cleft Sword": undefined, "Cloak, Weighted": undefined, "Clockwork Injector": undefined, "Club": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 2, "notes": "Crit: Knockout chance" }, "Club, Banded": { "skill": "Great Weapon", "mat-mod": -1, "pow": 4, "notes": "Crit: Knockout chance" }, "Consecrated Halbert": undefined, "Cutlass": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "" }, "Dagger": { "skill": "Hand Weapon", "mat-mod": 1, "pow": 1, "notes": "" }, "Dagger, Poisoner's": undefined, "Deadblow Hammer": undefined, "Dueling Buckler": undefined, "Durkin Bar": undefined, "Electro Lance": undefined, "Entrenching Tool, Military": undefined, "Fellblade": undefined, "Fighting Claws, Pair": undefined, "Firebrand": undefined, "Flail": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "ignore shields" }, "Flail, Two-Handed": { "skill": "Great Weapon", "mat-mod": -2, "pow": 6, "notes": "reach, ignore shields, Crit: p.255" }, "Flame Spear": undefined, "Gaff Spear": undefined, "Gaff, Hand": undefined, "Gaff, Pole": undefined, "Garrote": undefined, "Garrote, Clockwork": undefined, "Halbert": { "skill": "Great Weapon", "mat-mod": 0, "pow": 5, "notes": "reach, +2 charge at, 1-H: at-mod -1, POW 4" }, "Hand Pick": undefined, "Hooked Great Sword": undefined, "Ice Axe": undefined, "Ice Maul": undefined, "Ilena's Chain-Axe": undefined, "Katara, Pair": undefined, "Knuckledriver": undefined, "Knuckledusters": { "skill": "Unarmed Combat", "mat-mod": 0, "pow": 1, "notes": "better knockouts" }, "Kolas Club": undefined, "Kopis": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 3, "notes": "+2 charge at, Crit: 1 feat for +1 die dmg" }, "Lacerator": undefined, "Lance": { "skill": "Lance", "mat-mod": 0, "pow": 8, "notes": "reach" }, "Mace": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "Crit: Knockout chance" }, "Man Catcher": undefined, "Maul": { "skill": "Great Weapon", "mat-mod": 0, "pow": 6, "notes": "Crit: 1 feat slam d3" }, "Mechanoflail": undefined, "FMF Nyss Claymore": { "skill": "Great Weapon", "mat-mod": 0, "pow": 6, "notes": "1 feat: boost at" }, "IKU Nyss Claymore": undefined, "Nyss Great Sword": undefined, "Ogrun Warcleaver": { "skill": "Great Weapon", "mat-mod": -1, "pow": 6, "notes": "reach, +2 charge at" }, "Orgoth Staff": undefined, "Pen, Blade": undefined, "Pen, Poison": undefined, "Pickaxe": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "special: p. 257" }, "Pike": undefined, "Railman's Adze": undefined, "Rapier": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 2, "notes": "1 feat boost at and dmg" }, "Reclaimant Torch": undefined, "Relic Blade": undefined, "Retractable Lance": undefined, "Rynnish Fan": undefined, "Sacral Blade": undefined, "Shield": { "skill": "Shield", "mat-mod": 0, "pow": 0, "notes": "" }, "Shield, Combat": { "skill": "Shield", "mat-mod": -1, "pow": 3, "notes": "" }, "Shield, Karax": undefined, "Spear": { "skill": "Great Weapon", "mat-mod": -1, "pow": 5, "notes": "reach, +2 charge at, 1-H: POW 4" }, "Spear, Cavalry": undefined, "Spear, War": undefined, "Spike Mail": undefined, "Springblade": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 1, "notes": "draw without quick action" }, "Staff": { "skill": "Great Weapon", "mat-mod": 0, "pow": 3, "notes": "reach, 1 feat: trip at" }, "Staff, Battle": { "skill": "Great Weapon", "mat-mod": 0, "pow": 4, "notes": "reach, 1 feat: trip at, Crit: Knockout chance" }, "Stone Great Sword": undefined, "Stormcaller and Lightning Rod": undefined, "Sword": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 3, "notes": "" }, "Sword Cane": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 0, "notes": "drawn POW 2" }, "Sword, Dress": undefined, "Sword, Great": { "skill": "Great Weapon", "mat-mod": 0, "pow": 6, "notes": "reach" }, "Sword, Praetorian, Pair": undefined, "Telescoping Staff": undefined, "Tobresh": undefined, "Tournament Foil": undefined, "Trench Knife": { "skill": "Hand Weapon", "mat-mod": 0, "pow": 2, "notes": "alt. Unarmed Combat" }, "Trench Sword": { "skill": "Hand Weapon", "mat-mod": -1, "pow": 4, "notes": "alt. Unarmed Combat" }, "Trollkin Rune Axe": undefined, "Voltaic Halbert": undefined, "War Hammer": { "skill": "Great Weapon", "mat-mod": -1, "pow": 5, "notes": "Crit: Knockout chance" } }; ikrpg.generator.db.meleeWeapon = meleeWeaponDB; })(); // ## Ranged Weapon DB [Done for Core Rules] ## \\ (function() { var rangedWeaponDB = { "Arcus": undefined, "Assault Kommando Flamethrower": undefined, "Axe, Throwing": { "rng": 6, "skill": "Thrown Weapon", "pow": 3, "rat-mod": 0, "notes": "add STR to POW", "ammo": "" }, "Blowtorch": undefined, "Blunderbuss": { "rng": 8, "skill": "Rifle", "pow": 12, "rat-mod": -1, "notes": "1-H: RAT -2", "ammo": "1" }, "Bola": { "rng": 8, "skill": "Thrown Weapon", "pow": 0, "rat-mod": -2, "notes": "add STR to POW", "ammo": "" }, "Bomb Lance": undefined, "Bombardier Grenade Cannon": undefined, "Bow": { "rng": 10, "skill": "Archery", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "1" }, "Bow, Great": { "rng": 10, "skill": "Archery", "pow": 12, "rat-mod": 0, "notes": "", "ammo": "1" }, "Bow, Nyss": { "rng": 12, "skill": "Archery", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "1" }, "Bow, Tharn": undefined, "Cannon, Royal Weight": undefined, "Cannon-Shield": { "rng": 8, "skill": "Rifle", "pow": 12, "rat-mod": -2, "notes": "", "ammo": "1" }, "Carbine": { "rng": 10, "skill": "Rifle", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "5" }, "Chain Gun": undefined, "Crossbow": { "rng": 10, "skill": "Crossbow", "pow": 12, "rat-mod": 0, "notes": "1-H: RAT -2", "ammo": "1" }, "Crossbow, Dual": undefined, "Crossbow, Lawbringer": undefined, "Crossbow, Repeating": { "rng": 10, "skill": "Crossbow", "pow": 10, "rat-mod": -1, "notes": "", "ammo": "6" }, "Crucible Arms Model 603": undefined, "Deck Gun": undefined, "Dual Magelock": undefined, "Dueling Pistols": undefined, "Duelling Pistols": undefined, "Efaarit Hunting Rifle": undefined, "Execrator Pistol": undefined, "Explosive Cufflinks": undefined, "Farrow Pig Iron": undefined, "Farrow Razorback": undefined, "Field Gun": undefined, "Fire Bomb": undefined, "Flare Pistol": undefined, "Flayer Cannon": undefined, "Grenade, Concussion": { "rng": 8, "skill": "Thrown Weapon", "pow": "", "rat-mod": 0, "notes": "AOE 3", "ammo": "" }, "Grenade, Explosive": { "rng": 8, "skill": "Thrown Weapon", "pow": 12, "rat-mod": 0, "notes": "AOE 3", "ammo": "" }, "Grenade, Smoke": { "rng": 8, "skill": "Thrown Weapon", "pow": "", "rat-mod": 0, "notes": "AOE 3", "ammo": "" }, "Grenade, Strangle Gas": { "rng": 8, "skill": "Thrown Weapon", "pow": "", "rat-mod": 0, "notes": "AOE 3", "ammo": "" }, "Gun Axe": { "rng": 8, "skill": "Rifle", "pow": 12, "rat-mod": -1, "notes": "", "ammo": "1" }, "Hand Cannon": { "rng": 12, "skill": "Pistol", "pow": 12, "rat-mod": 0, "notes": "", "ammo": "1" }, "Hand Cannon, Dual": { "rng": 12, "skill": "Pistol", "pow": 12, "rat-mod": 0, "notes": "", "ammo": "2" }, "Harpoon Gun": { "rng": 10, "skill": "Rifle", "pow": 12, "rat-mod": -2, "notes": "", "ammo": "1" }, "Incindus": undefined, "Injection Pistol": undefined, "Javelin": { "rng": 8, "skill": "Thrown Weapon", "pow": 3, "rat-mod": 0, "notes": "add STR to POW", "ammo": "" }, "Knife, Throwing": { "rng": 6, "skill": "Thrown Weapon", "pow": 2, "rat-mod": 0, "notes": "add STR to POW", "ammo": "" }, "Light Cannon": undefined, "Linethrower": undefined, "Man-O-War Axe Cannon": undefined, "Man-O-War Shield Cannon": undefined, "Mini-Slugger": undefined, "Mortar": undefined, "Ogrun Battle Cannon": { "rng": 12, "skill": "Rifle", "pow": 12, "rat-mod": -1, "notes": "AOE 3, 1-H: RAT -2", "ammo": "1" }, "Pen, Grenade": undefined, "Pen, Shot": undefined, "Pistol": { "rng": 8, "skill": "Pistol", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "1" }, "Pistol, Collapsible": undefined, "Pistol, Holdout": { "rng": 4, "skill": "Pistol", "pow": 8, "rat-mod": 1, "notes": "", "ammo": "1" }, "Pistol, Magelock": { "rng": 10, "skill": "Pistol", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "1" }, "Pistol, Repeating": { "rng": 8, "skill": "Pistol", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "5" }, "Purifier": undefined, "Quad-Iron": { "rng": 10, "skill": "Pistol", "pow": 10, "rat-mod": -1, "notes": "", "ammo": "4" }, "Radcliffe Carbine": { "rng": 13, "skill": "Rifle", "pow": 11, "rat-mod": 0, "notes": "1-H: RAT -2", "ammo": "5" }, "Radcliffe Firestorm": undefined, "Reiver": undefined, "Rifle": undefined, "Rifle, Collapsible": undefined, "Rifle, Heavy": { "rng": 14, "skill": "Rifle", "pow": 12, "rat-mod": 0, "notes": "", "ammo": "1" }, "Rifle, Long": { "rng": 14, "skill": "Rifle", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "1" }, "Rifle, Magelock": { "rng": 14, "skill": "Rifle", "pow": 10, "rat-mod": 0, "notes": "1-H: RAT -2", "ammo": "1" }, "Rifle, Military": { "rng": 10, "skill": "Rifle", "pow": 11, "rat-mod": 0, "notes": "", "ammo": "1" }, "Rilfe, Repeating": { "rng": 14, "skill": "Rifle", "pow": 10, "rat-mod": 0, "notes": "", "ammo": "5" }, "Rockbreaker Spray": undefined, "Rocket Tube": undefined, "Rynnish Walking Stick": { "rng": 8, "skill": "Rifle", "pow": 10, "rat-mod": 0, "notes": "1-H: RAT -2", "ammo": "1" }, "Scattergun": { "rng": 8, "skill": "Rifle", "pow": 12, "rat-mod": 0, "notes": "SP8, 1-H: RAT -2", "ammo": "1" }, "Skyhammer": undefined, "Sling": { "rng": 10, "skill": "Thrown Weapon", "pow": 8, "rat-mod": -2, "notes": "", "ammo": "1" }, "Slug Gun": { "rng": 4, "skill": "Pistol", "pow": 14, "rat-mod": -1, "notes": "1-H: RAT -2", "ammo": "1" }, "Slugger": undefined, "Snare Gun": undefined, "Sword-Cannon, Heavy": { "rng": 10, "skill": "Rifle", "pow": 12, "rat-mod": -1, "notes": "", "ammo": "1" }, "Sword-Cannon, Repeating": { "rng": 10, "skill": "Rifle", "pow": 10, "rat-mod": -1, "notes": "", "ammo": "5" }, "Vislovski Carbine": undefined, "War Spear": undefined }; ikrpg.generator.db.rangedWeapon = rangedWeaponDB; })(); })(); // # Fill character sheet input fields with DB data # \\ (function() { // ## Fill spell data on title change ## \\ (function() { var db = ikrpg.generator.db.spell; $(".character-sheet .spell .title").change(function(event) { var input = $(event.target); var title = input.val(); var spell = input.parent(); var spellData = db[title]; if(spellData) { spell.find(".cost").val(spellData["cost"]); spell.find(".rng").val(spellData["rng"]); spell.find(".aoe").val(spellData["aoe"]); spell.find(".pow").val(spellData["pow"]); spell.find(".up").val(spellData["up"]); spell.find(".off").val(spellData["off"]); spell.find(".description").val(spellData["description"]); } }); })(); // ## Skill changes ## \\ (function() { var db = ikrpg.generator.db.skill; // ### Fill skill data on title change ### \\ (function() { $(".character-sheet .skill .title").change(function(event) { var input = $(event.target); var title = input.val(); var skill = input.parent(); var skillBaseName = title.replace(/(\(.*\))+/g, "").replace(/\s+$/, ""); var skillData = db[skillBaseName]; if(skillData && skillData.length > 0) { var stat = skillData[0]; var lowerStat = stat.toLowerCase(); var statValue = $(".character-sheet #"+lowerStat).val(); if(statValue) { skill.find(".stat").val(lowerStat); skill.find(".base").val(statValue); skill.find(".lvl").val(0); skill.find(".sum").val(statValue); if(skillData.length > 1) { var stat = skillData[1]; var lowerStat = stat.toLowerCase(); var statValue = $(".character-sheet #"+lowerStat).val(); if(statValue) { function findNextEmptySkill(currentSkill) { var nextSkill = currentSkill.next(".skill"); if(nextSkill) { if(nextSkill.find(".title").val() == "") { return nextSkill; } else { return findNextEmptySkill(nextSkill); } } else { return null; } } var nextEmptySkill = findNextEmptySkill(skill); if(nextEmptySkill) { nextEmptySkill.find(".title").val(title); nextEmptySkill.find(".stat").val(lowerStat); nextEmptySkill.find(".base").val(statValue); nextEmptySkill.find(".lvl").val(0); nextEmptySkill.find(".sum").val(statValue); } } } } else if(stat == "SOC") { skill.find(".stat").val("soc"); skill.find(".base").val("*"); skill.find(".lvl").val(0); skill.find(".sum").val("*"); } } }); })(); // ### Recompute sum on skill level change ### \\ (function() { $(".character-sheet .skill .lvl").change(function(event) { var input = $(event.target); var skill = input.parent(); var lvlValue = parseInt(input.val()); var baseValue = parseInt(skill.find(".base").val()); if((lvlValue || lvlValue == 0) && (baseValue || baseValue == 0)) { var sum = skill.find(".sum"); sum.val(lvlValue + baseValue); sum.trigger("change"); } }); })(); // ### Recompute sum on parent set value change ### \\ (function() { $(".character-sheet .skill .base").change(function(event) { var input = $(event.target); var skill = input.parent(); var baseValue = parseInt(input.val()); var lvlValue = parseInt(skill.find(".lvl").val()); if((lvlValue || lvlValue == 0) && (baseValue || baseValue == 0)) { var sum = skill.find(".sum"); sum.val(lvlValue + baseValue); sum.trigger("change"); } }); })(); })(); // ## Stat changes ## \\ (function() { // ### Update skill parent set value on stat change ### \\ (function() { $(".character-sheet .stat").change(function(event) { var input = $(event.target); var stat = input.attr("id"); $('.character-sheet .skill .stat[value="'+stat+'"]').each(function(index, s) { var skill = $(s).parent(); var base = skill.find(".base"); base.val(input.val()); base.trigger("change"); }); }); })(); // ### Update Willpower on PHY or INT change ### \\ (function() { $(".character-sheet #phy, .character-sheet #int").change(function(event) { var phyInput = $(".character-sheet #phy"); var intInput = $(".character-sheet #int"); var phy = parseInt(phyInput.val()); var int = parseInt(intInput.val()); if((phy || phy == 0) && (int || int == 0)) { $(".character-sheet #wil").val(phy + int); } }); })(); // ### Update SPD on computed SPD change ### \\ (function() { $(".character-sheet #computed-spd").change(function(event) { var input = $(event.target); var computedSpd = parseInt(input.val()) || 0; var spdMod = parseInt($(".character-sheet #wornarmor1 .spd").val()) || 0; $(".character-sheet #spd").val(computedSpd - spdMod); }) })(); })(); // ## Update page value on ability change ## \\ (function() { var db = ikrpg.index.data; $(".character-sheet .ability").change(function(event) { var input = $(event.target); var title = input.val(); var ability = input.parent(); var entry = $.grep(db, function(e) { return e["name"] == title; }); if(entry && entry.length > 0) { var page = entry[0]["page"]; ability.find(".page").val(page); } }); })(); // ## Ranged Weapons ## \\ (function() { var db = ikrpg.generator.db.rangedWeapon; // ### Update on name change ### \\ (function() { $(".character-sheet #rat1 .name, .character-sheet #rat2 .name").change(function(event) { var input = $(event.target); var title = input.val(); var rangedWeapon = input.parent(); // remove previously remembered skill and rat mod rangedWeapon.find(".skill").val(""); rangedWeapon.find(".ratmod").val(""); var rangedWeaponData = db[title]; if(rangedWeaponData) { rangedWeapon.find(".rng").val(rangedWeaponData["rng"]); rangedWeapon.find(".pow").val(rangedWeaponData["pow"]); rangedWeapon.find(".notes").val(rangedWeaponData["notes"]); rangedWeapon.find(".ammo").val(rangedWeaponData["ammo"]); rangedWeapon.find(".ratmod").val(rangedWeaponData["rat-mod"]); var skillName = rangedWeaponData["skill"]; var skills = $.grep($(".character-sheet .skill .title"), function(input) { return $(input).val() == skillName; }); var skillDB = ikrpg.generator.db.skill; var statNames = skillDB[skillName]; if(skills && skills.length > 0) { var skill = $(skills[0]); var lvl = parseInt(skill.parent().find(".lvl").val()) || 0; if(statNames && statNames.length > 0) { var statName = statNames[0].toLowerCase(); var stat = parseInt($(".character-sheet #"+statName).val()) || 0; var ratMod = parseInt(rangedWeaponData["rat-mod"]); rangedWeapon.find(".rat").val(stat + lvl + ratMod); } else { rangedWeapon.find(".rat").val(""); } rangedWeapon.find(".skill").val(skillName); } else { rangedWeapon.find(".skill").val(""); rangedWeapon.find(".rat").val(""); } } }); })(); // ### Update RAT on skill lvl or sum change ### \\ (function() { $(".character-sheet .skill .lvl, .character-sheet .skill .sum").change(function(event) { var input = $(event.target); var skill = input.parent(); var title = skill.find(".title").val(); var base = parseInt(skill.find(".base").val()) || 0; var lvl = parseInt(skill.find(".lvl").val()) || 0; var rangedWeaponSkills = $(".character-sheet #rat1 .skill[value='"+title+"'], .character-sheet #rat2 .skill[value='"+title+"']"); rangedWeaponSkills.each(function(index, rangedWeaponSkill) { var rangedWeapon = $(rangedWeaponSkill).parent(); var ratMod = parseInt(rangedWeapon.find(".ratmod").val()) || 0; rangedWeapon.find(".rat").val(base + lvl + ratMod); }); }); })(); })(); // ## Melee Weapons ## \\ (function() { var db = ikrpg.generator.db.meleeWeapon; // ### Update on name change ### \\ (function() { $(".character-sheet #mat1 .name, .character-sheet #mat2 .name").change(function(event) { var input = $(event.target); var name = input.val(); var meleeWeapon = input.parent(); // remove previously remembered skill, rat mod, and pow meleeWeapon.find(".skill").val(""); meleeWeapon.find(".matmod").val(""); meleeWeapon.find(".pow").val(""); var meleeWeaponData = db[name]; if(meleeWeaponData) { meleeWeapon.find(".notes").val(meleeWeaponData["notes"]); meleeWeapon.find(".skill").val(meleeWeaponData["skill"]); meleeWeapon.find(".matmod").val(meleeWeaponData["mat-mod"]); meleeWeapon.find(".pow").val(meleeWeaponData["pow"]); var skillName = meleeWeaponData["skill"]; var skills = $.grep($(".character-sheet .skill .title"), function(input) { return $(input).val() == skillName; }); if(skills && skills.length > 0) { var skill = $(skills[0]).parent(); var sum = parseInt(skill.find(".sum").val()) || 0; var matMod = parseInt(meleeWeaponData["mat-mod"]); meleeWeapon.find(".mat").val(sum + matMod); } else { meleeWeapon.find(".mat").val(""); } var str = parseInt($(".character-sheet #str").val()) || 0; if(str || str == 0) { var pow = parseInt(meleeWeaponData["pow"]); meleeWeapon.find(".ps").val(pow + str); } else { meleeWeapon.find(".ps").val(""); } } }); })(); // ### Update MAT on skill lvl or sum change ### \\ (function() { $(".character-sheet .skill .lvl, .character-sheet .skill .sum").change(function(event) { var input = $(event.target); var skill = input.parent(); var title = skill.find(".title").val(); var base = parseInt(skill.find(".base").val()) || 0; var lvl = parseInt(skill.find(".lvl").val()) || 0; var meleeWeaponSkills = $(".character-sheet #mat1 .skill[value='"+title+"'], .character-sheet #mat2 .skill[value='"+title+"']"); meleeWeaponSkills.each(function(index, meleeWeaponSkill) { var meleeWeapon = $(meleeWeaponSkill).parent(); var matMod = parseInt(meleeWeapon.find(".matmod").val()) || 0; meleeWeapon.find(".mat").val(base + lvl + matMod); }); }); })(); // ### Update P+S on STR change ### \\ (function() { $(".character-sheet #str").change(function(event) { var input = $(event.target); var str = parseInt(input.val()); $(".character-sheet #mat1, .character-sheet #mat2").each(function(index, mat) { var name = $(mat).find(".name").val(); if(name) { var pow = parseInt($(mat).find(".pow").val()) || 0; $(mat).find(".ps").val(pow + str); } }); }); })(); })(); // ## Computed Values (DEF, ARM, INI, CMD) ## \\ (function() { // ### Update total DEF ### \\ (function() { $(".character-sheet #computed-spd, .character-sheet #agl, .character-sheet #per, .character-sheet #defracialmodifier, .character-sheet #defequipmentmodifiers").change(function() { var spd = parseInt($(".character-sheet #computed-spd").val()) || 0; var agl = parseInt($(".character-sheet #agl").val()) || 0; var per = parseInt($(".character-sheet #per").val()) || 0; var defracialmodifier = parseInt($(".character-sheet #defracialmodifier").val()) || 0; var defequipmentmodifiers = parseInt($(".character-sheet #defequipmentmodifiers").val()) || 0; if((spd || spd == 0) && (agl || agl == 0) && (per || per == 0) && (defracialmodifier || defracialmodifier == 0) && (defequipmentmodifiers || defequipmentmodifiers == 0)) { $(".character-sheet #def").val(spd + agl + per + defracialmodifier + defequipmentmodifiers); } }); })(); // ### Update total ARM ### \\ (function() { $(".character-sheet #phy, .character-sheet #armshieldmodifier, .character-sheet #armarmormodifiers, .character-sheet #armothermodifiers").change(function() { var phy = parseInt($(".character-sheet #phy").val()) || 0; var armshieldmodifier = parseInt($(".character-sheet #armshieldmodifier").val()) || 0; var armarmormodifiers = parseInt($(".character-sheet #armarmormodifiers").val()) || 0; var armothermodifiers = parseInt($(".character-sheet #armothermodifiers").val()) || 0; if((phy || phy == 0) && (armshieldmodifier || armshieldmodifier == 0) && (armarmormodifiers || armarmormodifiers == 0) && (armothermodifiers || armothermodifiers == 0)) { $(".character-sheet #arm").val(phy + armshieldmodifier + armarmormodifiers + armothermodifiers); } }); })(); // ### Update ARM shield modifier on Shield skill change ### \\ (function() { $(".character-sheet .skill .lvl").change(function(event) { var input = $(event.target); var lvl = input.val(); var skill = input.parent(); var name = skill.find(".title").val(); if(name == "Shield") { var mod = $(".character-sheet #armshieldmodifier"); mod.val(lvl); mod.trigger("change"); } }); })(); // ### Update total INI ### \\ (function() { $(".character-sheet #computed-spd, .character-sheet #prw, .character-sheet #per, .character-sheet #iniequipmentmodifiers, .character-sheet #iniadditionalmodifiers").change(function() { var spd = parseInt($(".character-sheet #computed-spd").val()) || 0; var prw = parseInt($(".character-sheet #prw").val()) || 0; var per = parseInt($(".character-sheet #per").val()) || 0; var iniequipmentmodifiers = parseInt($(".character-sheet #iniequipmentmodifiers").val()) || 0; var iniadditionalmodifiers = parseInt($(".character-sheet #iniadditionalmodifiers").val()) || 0; if((spd || spd == 0) && (prw || prw == 0) && (per || per == 0) && (iniequipmentmodifiers || iniequipmentmodifiers == 0) && (iniadditionalmodifiers || iniadditionalmodifiers == 0)) { $(".character-sheet #ini").val(spd + prw + per + iniequipmentmodifiers + iniadditionalmodifiers); } }); })(); // ### Update total CMD ### \\ (function() { $(".character-sheet #int, .character-sheet #cmdcommandskill, .character-sheet #cmdabilitymodifier").change(function() { var int = parseInt($(".character-sheet #int").val()) || 0; var cmdcommandskill = parseInt($(".character-sheet #cmdcommandskill").val()) || 0; var cmdabilitymodifier = parseInt($(".character-sheet #cmdabilitymodifier").val()) || 0; if((int || int == 0) && (cmdcommandskill || cmdcommandskill == 0) && (cmdabilitymodifier || cmdabilitymodifier == 0)) { $(".character-sheet #cmd").val(int + cmdcommandskill + cmdabilitymodifier); } }); })(); // ### Update CMD command skill on Command skill change ### \\ (function() { $(".character-sheet .skill .lvl").change(function(event) { var input = $(event.target); var lvl = input.val(); var skill = input.parent(); var name = skill.find(".title").val(); if(name == "Command") { var mod = $(".character-sheet #cmdcommandskill"); mod.val(lvl); mod.trigger("change"); } }); })(); })(); // ## Worn Armor changes ## \\ (function() { var db = ikrpg.generator.db.wornArmor; // ### Name changes ### \\ (function() { $(".character-sheet .wornarmor .name").change(function(event) { var input = $(event.target); var name = input.val(); var wornArmor = input.parent(); var wornArmorData = db[name]; if(wornArmorData) { wornArmor.find(".description").val(wornArmorData["description"]); wornArmor.find(".spd").val(wornArmorData["spd"]); wornArmor.find(".def").val(wornArmorData["def"]); wornArmor.find(".arm").val(wornArmorData["arm"]); wornArmor.find(".spd").trigger("change"); wornArmor.find(".def").trigger("change"); wornArmor.find(".arm").trigger("change"); } }); })(); // ### wornarmor1 changes ### \\ (function() { // #### wornarmor1 SPD change #### \\ (function() { $(".character-sheet #wornarmor1 .spd").change(function(event) { var input = $(event.target); var spdMalus = input.val(); if(spdMalus == "") { spdMalus = 0; } var spd = parseInt($(".character-sheet #spd").val()); $(".character-sheet #computed-spd").val(spd + parseInt(spdMalus)); }); })(); // #### wornarmor1 DEF change #### \\ (function() { $(".character-sheet #wornarmor1 .def").change(function(event) { var input = $(event.target); var defMalus = input.val(); if(defMalus == "") { defMalus = 0; } var mods = $(".character-sheet #defequipmentmodifiers"); mods.val(defMalus); mods.trigger("change"); }); })(); // #### wornarmor1 ARM change #### \\ (function() { $(".character-sheet #wornarmor1 .arm").change(function(event) { var input = $(event.target); var armBonus = input.val(); if(armBonus == "") { armBonus = 0; } var mods = $(".character-sheet #armarmormodifiers"); mods.val(armBonus); mods.trigger("change"); }); })(); })(); })(); })(); // # Character Generator Data DSL # \\ (function() { // ## Character Generator Control Structures ## \\ function HeroNumber(key, value) { this.key = key; this.value = value; this.html = function() { var str = ''; str += '