Exemplo n.º 1
0
 def __init__(self, owner, idInPack=0, stack=1):
     '''
     Constructor
     '''
     Component.__init__(self, owner)
     self._idInPack = idInPack  #物品在包裹中的id
     self._stack = stack  #可叠加数:'-1:不可叠加1~999:可叠加的数值
 def __init__(self,
              owner,
              durability=-1,
              isBound=0,
              identification=1,
              strengthen=0,
              workout=0):
     '''初始化物品附加属性
     @param selfExtraAttributeId: []int list 物品自身附加属性
     @param dropExtraAttributeId: []int list 物品掉落时的附加属性 
     @param durability: int 物品的耐久度
     @param identification: int 物品的辨识状态   0:未辨识  1:辨识 
     '''
     Component.__init__(self, owner)
     self.durability = durability  #当前耐久
     self.isBound = isBound
     self._identification = identification
     self.strengthen = strengthen  #强化等级
     self.workout = workout  #成长度
     self.extPhysicalAttack = 0  #附加物理攻击力
     self.extPhysicalDefense = 0  #附加物理防御力
     self.extMagicAttack = 0  #附加魔法攻击力
     self.extMagicDefense = 0  #附加魔法防御力
     self.extSpeedAdditional = 0  #附加攻速
     self.extHpAdditional = 0  #附加最大血量
Exemplo n.º 3
0
 def __init__(self,owner,idInPack=0,stack=1):
     '''
     Constructor
     '''
     Component.__init__(self,owner)
     self._idInPack = idInPack #物品在包裹中的id
     self._stack = stack #可叠加数:'-1:不可叠加1~999:可叠加的数值
Exemplo n.º 4
0
 def __init__(self, owner, bid, basename):
     '''
     创建基本信息对象
     @param id: owner的id
     @param name: 基本名称
     '''
     Component.__init__(self, owner)
     self.id = bid  # owner的id
     self._baseName = basename  # 基本名字
Exemplo n.º 5
0
 def __init__(self, owner, bid, basename):
     """
     创建基本信息对象
     @param id: owner的id
     @param name: 基本名称
     """
     Component.__init__(self, owner)
     self.id = bid  # owner的id
     self._baseName = basename  # 基本名字
Exemplo n.º 6
0
 def __init__(self, owner):
     '''初始化
     @param slot_1: int 插槽1的宝石ID
     @param slot_2: int 插槽1的宝石ID
     @param slot_3: int 插槽1的宝石ID
     @param slot_4: int 插槽1的宝石ID
     '''
     Component.__init__(self, owner)
     self.slot_1 = 0
     self.slot_2 = 0
     self.slot_3 = 0
     self.slot_4 = 0
 def __init__(self,owner):
     '''初始化
     @param slot_1: int 插槽1的宝石ID
     @param slot_2: int 插槽1的宝石ID
     @param slot_3: int 插槽1的宝石ID
     @param slot_4: int 插槽1的宝石ID
     '''
     Component.__init__(self, owner)
     self.slot_1 = 0
     self.slot_2 = 0
     self.slot_3 = 0
     self.slot_4 = 0
 def __init__(self,owner,durability=-1,isBound=0,identification=1,strengthen=0,workout=0):
     '''初始化物品附加属性
     @param selfExtraAttributeId: []int list 物品自身附加属性
     @param dropExtraAttributeId: []int list 物品掉落时的附加属性 
     @param durability: int 物品的耐久度
     @param identification: int 物品的辨识状态   0:未辨识  1:辨识 
     '''
     Component.__init__(self,owner)
     self.durability = durability #当前耐久
     self.isBound = isBound
     self._identification = identification
     self.strengthen=strengthen #强化等级
     self.workout=workout #成长度
     self.extPhysicalAttack=0 #附加物理攻击力
     self.extPhysicalDefense=0 #附加物理防御力
     self.extMagicAttack=0 #附加魔法攻击力
     self.extMagicDefense=0 #附加魔法防御力
     self.extSpeedAdditional=0#附加攻速
     self.extHpAdditional=0#附加最大血量