<gh_stars>1-10
from src.main.beans.items.base_item import BaseItem
from src.main.managers.items.item_manager import ItemManager


class Shield(BaseItem):
    CATEGORY_NAME = ItemManager.SHIELD_CATEGORY_NAME

    _AVERAGE_DEF_BOOST = 5
    _DEF_SPREAD = 1

    def __init__(self, attack=None, defense=None, speed=None, spook_rate=None, spook_power=None):
        BaseItem.__init__(self, attack, defense, speed, spook_rate, spook_power)

        self.PRIMARY_VALUE = self.DEFENSE_BOOST

    def get_formatted_name(self):
        return "Shield (" + self._get_value_with_sign_prefix(self.DEFENSE_BOOST) + ")"
from src.main.beans.items.base_item import BaseItem
from src.main.managers.items.item_manager import ItemManager


class Shield(BaseItem):
    CATEGORY_NAME = ItemManager.SHIELD_CATEGORY_NAME

    _AVERAGE_DEF_BOOST = 5
    _DEF_SPREAD = 1

    def __init__(self, attack=None, defense=None, speed=None, spook_rate=None, spook_power=None):
        BaseItem.__init__(self, attack, defense, speed, spook_rate, spook_power)

        self.PRIMARY_VALUE = self.DEFENSE_BOOST

    def get_formatted_name(self):
        return "Shield (" + self._get_value_with_sign_prefix(self.DEFENSE_BOOST) + ")"