nmmo.systems.item module#
- class nmmo.systems.item.Ammunition(realm, level, **kwargs)#
-
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- fire(entity) int #
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- property signature#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Armor(realm, level, **kwargs)#
Bases:
Equipment
,ABC
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Arrow(realm, level, **kwargs)#
Bases:
Ammunition
- ITEM_TYPE_ID = 14#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- property damage#
- destroy()#
- equip(entity, equip_slot)#
- fire(entity) int #
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- property signature#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Axe(realm, level, **kwargs)#
Bases:
Tool
- ITEM_TYPE_ID = 11#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Bottom(realm, level, **kwargs)#
Bases:
Armor
- ITEM_TYPE_ID = 4#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Bow(realm, level, **kwargs)#
Bases:
Weapon
- ITEM_TYPE_ID = 6#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Chisel(realm, level, **kwargs)#
Bases:
Tool
- ITEM_TYPE_ID = 12#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Consumable(realm, level, capacity=0, melee_attack=0, range_attack=0, mage_attack=0, melee_defense=0, range_defense=0, mage_defense=0, health_restore=0, resource_restore=0)#
Bases:
Item
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- destroy()#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- use(entity) bool #
- class nmmo.systems.item.Equipment(realm, level, capacity=0, melee_attack=0, range_attack=0, mage_attack=0, melee_defense=0, range_defense=0, mage_defense=0, health_restore=0, resource_restore=0)#
Bases:
Item
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Gloves(realm, level, **kwargs)#
Bases:
Tool
- ITEM_TYPE_ID = 9#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Hat(realm, level, **kwargs)#
Bases:
Armor
- ITEM_TYPE_ID = 2#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Item(realm, level, capacity=0, melee_attack=0, range_attack=0, mage_attack=0, melee_defense=0, range_defense=0, mage_defense=0, health_restore=0, resource_restore=0)#
Bases:
Subclass
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- destroy()#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- use(entity) bool #
- class nmmo.systems.item.Pickaxe(realm, level, **kwargs)#
Bases:
Tool
- ITEM_TYPE_ID = 10#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Potion(realm, level, **kwargs)#
Bases:
Consumable
- ITEM_TYPE_ID = 17#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- destroy()#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- use(entity) bool #
- class nmmo.systems.item.Ration(realm, level, **kwargs)#
Bases:
Consumable
- ITEM_TYPE_ID = 16#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- destroy()#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- use(entity) bool #
- class nmmo.systems.item.Rod(realm, level, **kwargs)#
Bases:
Tool
- ITEM_TYPE_ID = 8#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Runes(realm, level, **kwargs)#
Bases:
Ammunition
- ITEM_TYPE_ID = 15#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- property damage#
- destroy()#
- equip(entity, equip_slot)#
- fire(entity) int #
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- property signature#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Spear(realm, level, **kwargs)#
Bases:
Weapon
- ITEM_TYPE_ID = 5#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Tool(realm, level, **kwargs)#
Bases:
Equipment
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Top(realm, level, **kwargs)#
Bases:
Armor
- ITEM_TYPE_ID = 3#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
Register a virtual subclass of an ABC.
Returns the subclass, to allow usage as a class decorator.
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Wand(realm, level, **kwargs)#
Bases:
Weapon
- ITEM_TYPE_ID = 7#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Weapon(realm, level, **kwargs)#
Bases:
Equipment
- ITEM_TYPE_ID = None#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- destroy()#
- equip(entity, equip_slot)#
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#
- class nmmo.systems.item.Whetstone(realm, level, **kwargs)#
Bases:
Ammunition
- ITEM_TYPE_ID = 13#
- Limits()#
- Query = namespace(table=<function <lambda>>, by_id=<function <lambda>>, owned_by=<function <lambda>>, for_sale=<function <lambda>>)#
- State = namespace(attr_name_to_col={'id': 0, 'type_id': 1, 'owner_id': 2, 'level': 3, 'capacity': 4, 'quantity': 5, 'melee_attack': 6, 'range_attack': 7, 'mage_attack': 8, 'melee_defense': 9, 'range_defense': 10, 'mage_defense': 11, 'health_restore': 12, 'resource_restore': 13, 'equipped': 14, 'listed_price': 15}, num_attributes=16, table=<function SerializedState.subclass.<locals>.Subclass.<lambda>>)#
- property color#
- property damage#
- destroy()#
- equip(entity, equip_slot)#
- fire(entity) int #
- static item_class(type_id: int)#
- level_gt(entity)#
- property packet#
- classmethod parse_array(data) SimpleNamespace #
- static register(item_type)#
- property signature#
- static subclass(name: str, attributes: List[str])#
- unequip(equip_slot)#
- use(entity)#