Example #1
0
function b_type($type, $value, $level)
{
    // 1-80
    $level = min(max($level, 1), 80);
    global $green;
    switch ($type) {
        // белые стат
        case 1:
            return '+' . $value . LOCALE_STAT_HEALTH . '<br />';
            # 1 - Health
        # 1 - Health
        case 3:
            return '+' . $value . LOCALE_STAT_AGILITY . '<br />';
            # 3 - Agility
        # 3 - Agility
        case 4:
            return '+' . $value . LOCALE_STAT_STRENGTH . '<br />';
            # 4 - Strength
        # 4 - Strength
        case 5:
            return '+' . $value . LOCALE_STAT_INTELLECT . '<br />';
            # 5 - Intellect
        # 5 - Intellect
        case 6:
            return '+' . $value . LOCALE_STAT_SPIRIT . '<br />';
            # 6 - Spirit
        # 6 - Spirit
        case 7:
            return '+' . $value . LOCALE_STAT_STAMINA . '<br />';
            # 7 - Stamina
            // зеленые статы
        # 7 - Stamina
        // зеленые статы
        case 12:
            $green[] = green_bonus(LOCALE_GBONUS_DEFENCE, $value, $type, $level);
            return;
        case 13:
            $green[] = green_bonus(LOCALE_GBONUS_DODGE, $value, $type, $level);
            return;
        case 14:
            $green[] = green_bonus(LOCALE_GBONUS_PARRY, $value, $type, $level);
            return;
        case 15:
            $green[] = green_bonus(LOCALE_GBONUS_SHIELDBLOCK, $value, $type, $level);
            return;
        case 18:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLHIT_RATING, $value, $type, $level);
            return;
        case 19:
            $green[] = green_bonus(LOCALE_GBONUS_MELEECRIT_RATING, $value, $type, $level);
            return;
        case 20:
            $green[] = green_bonus(LOCALE_GBONUS_RANGEDCRIT_RATING, $value, $type, $level);
            return;
        case 21:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLCRIT_RATING, $value, $type, $level);
            return;
        case 22:
            $green[] = green_bonus(LOCALE_GBONUS_HIT_TAKEN_MELEE_RATING, $value, $type, $level);
            return;
        case 24:
            $green[] = green_bonus(LOCALE_GBONUS_HIT_TAKEN_SPELL_RATING, $value, $type, $level);
            return;
        case 28:
            $green[] = green_bonus(LOCALE_GBONUS_HASTE_MELEE_RATING, $value, $type, $level);
            return;
        case 30:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLHASTE_RATING, $value, $type, $level);
            return;
        case 31:
            $green[] = green_bonus(LOCALE_GBONUS_HIT_RATING, $value, $type, $level);
            return;
        case 32:
            $green[] = green_bonus(LOCALE_GBONUS_CRIT_RATING, $value, $type, $level);
            return;
        case 35:
            $green[] = green_bonus(LOCALE_GBONUS_RESILIENCE_RATING, $value, $type, $level);
            return;
        case 36:
            $green[] = green_bonus(LOCALE_GBONUS_HASTE_RATING, $value, $type, $level);
            return;
        case 37:
            $green[] = green_bonus(LOCALE_GBONUS_EXPERTISE_RATING, $value, $type, $level);
            return;
        case 38:
            $green[] = green_bonus(LOCALE_GBONUS_ATTACKPOWER, $value);
            return;
        case 39:
            $green[] = green_bonus(LOCALE_GBONUS_RANGED_ATTACK_POWER, $value);
            return;
        case 43:
            $green[] = green_bonus(LOCALE_GBONUS_RESTOREMANA, $value);
            return;
        case 44:
            $green[] = green_bonus(LOCALE_GBONUS_ARMORPENETRATION, $value, $type, $level);
            return;
        case 45:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLPOWER, $value);
            return;
        case 46:
            $green[] = green_bonus(LOCALE_GBONUS_HEALTHREGEN, $value);
            return;
        case 47:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLPENETRATION, $value);
            return;
        case 48:
            $green[] = green_bonus(LOCALE_GBONUS_BLOCK, $value);
            return;
        default:
            $green[] = green_bonus(LOCALE_GBONUS_UNKNOWN, $type);
    }
}
Example #2
0
function b_type($type, $value)
{
    global $green;
    switch ($type) {
        // белые статы
        case 3:
            return '+' . $value . LOCALE_STAT_AGILITY . '<br />';
            # 3 - Agility
        # 3 - Agility
        case 4:
            return '+' . $value . LOCALE_STAT_STRENGTH . '<br />';
            # 4 - Strength
        # 4 - Strength
        case 5:
            return '+' . $value . LOCALE_STAT_INTELLECT . '<br />';
            # 5 - Intellect
        # 5 - Intellect
        case 6:
            return '+' . $value . LOCALE_STAT_SPIRIT . '<br />';
            # 6 - Spirit
        # 6 - Spirit
        case 7:
            return '+' . $value . LOCALE_STAT_STAMINA . '<br />';
            # 7 - Stamina
            // зеленые статы
        # 7 - Stamina
        // зеленые статы
        case 12:
            $green[] = green_bonus(LOCALE_GBONUS_DEFENCE, $value);
            return;
        case 13:
            $green[] = green_bonus(LOCALE_GBONUS_DODGE, $value);
            return;
        case 14:
            $green[] = green_bonus(LOCALE_GBONUS_PARRY, $value);
            return;
        case 15:
            $green[] = green_bonus(LOCALE_GBONUS_SHIELDBLOCK, $value);
            return;
        case 18:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLHIT_RATING, $value);
            return;
        case 19:
            $green[] = green_bonus(LOCALE_GBONUS_MELEECRIT_RATING, $value);
            return;
        case 20:
            $green[] = green_bonus(LOCALE_GBONUS_RANGEDCRIT_RATING, $value);
            return;
        case 21:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLCRIT_RATING, $value);
            return;
        case 30:
            $green[] = green_bonus(LOCALE_GBONUS_SPELLHASTE_RATING, $value);
            return;
        case 31:
            $green[] = green_bonus(LOCALE_GBONUS_HIT_RATING, $value);
            return;
        case 32:
            $green[] = green_bonus(LOCALE_GBONUS_CRIT_RATING, $value);
            return;
        case 35:
            $green[] = green_bonus(LOCALE_GBONUS_RESILIENCE_RATING, $value);
            return;
        case 36:
            $green[] = green_bonus(LOCALE_GBONUS_HASTE_RATING, $value);
            return;
        case 37:
            $green[] = green_bonus(LOCALE_GBONUS_EXPERTISE_RATING, $value);
            return;
        default:
            $green[] = green_bonus(LOCALE_GBONUS_UNKNOWN, $value);
            return;
    }
}