MediaWiki:EQOAConfig.js: Difference between revisions

From EQOA Sandstorm Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
window.EQOA_CONFIG.features = {
window.EQOA_CONFIG.features = {
     characterBuilderCalculatedHP: true,
     characterBuilderCalculatedHP: true,
     characterBuilderCalculatedPOW: false
     characterBuilderCalculatedPOW: true
};
};


window.EQOA_CONFIG.characterBuilderFormulas = {
window.EQOA_CONFIG.characterBuilderVitals = {
     hpClassMod: {
     level60Base: {
         WAR: 20,
         HP: {
         Warrior: 20,
            Human: {
                WAR: 1860,
                MAG: 960,
                RGE: 1320
            },
            Barbarian: {
                SHA: 1200
            }
         },


         RAN: 16,
         POW: {
        Ranger: 16,
            Human: {
 
                WAR: 2385,
        PAL: 20,
                MAG: 2385,
        Paladin: 20,
                RGE: 2385
 
            },
        SK: 20,
            Barbarian: {
        ShadowKnight: 20,
                SHA: 2370
        Shadowknight: 20,
            }
 
         }
        MNK: 14,
        Monk: 14,
 
        RGE: 12,
        Rogue: 12,
 
        BRD: 14,
        Bard: 14,
 
        CL: 13,
        Cleric: 13,
 
        DRD: 12,
        Druid: 12,
 
        SHA: 11,
        Shaman: 11,
 
        WIZ: 5,
        Wizard: 5,
 
        NEC: 5,
        Necromancer: 5,
 
        MAG: 5,
        Magician: 5,
 
        ENC: 5,
         Enchanter: 5
    },
 
    calculateHP: function (classNameOrCode, level, stamina, itemHP) {
        var classMod = this.hpClassMod[classNameOrCode] || 0;
 
        level = parseInt(level, 10) || 1;
        stamina = parseInt(stamina, 10) || 0;
        itemHP = parseInt(itemHP, 10) || 0;
 
        return (level * classMod) + (level * Math.floor(stamina / 11)) + itemHP;
     }
     }
};
};

Revision as of 02:27, 17 May 2026

window.EQOA_CONFIG = window.EQOA_CONFIG || {};

window.EQOA_CONFIG.features = {
    characterBuilderCalculatedHP: true,
    characterBuilderCalculatedPOW: true
};

window.EQOA_CONFIG.characterBuilderVitals = {
    level60Base: {
        HP: {
            Human: {
                WAR: 1860,
                MAG: 960,
                RGE: 1320
            },
            Barbarian: {
                SHA: 1200
            }
        },

        POW: {
            Human: {
                WAR: 2385,
                MAG: 2385,
                RGE: 2385
            },
            Barbarian: {
                SHA: 2370
            }
        }
    }
};