Esempio n. 1
0
 def updateDurability(self, durability):
     '''更新物品的耐久度
     @param durability: int 物品的耐久度
     '''
     self.setDurability(durability)
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'durability',
                             durability)
 def updateStarLevel(self,starLevel):
     '''更新物品星级'''
     self._starLevel = starLevel
     dbaccess.updateItemInfo(self._owner.baseInfo.id,'starLevel',starLevel)
     
     
     
 def updateStack(self,stack,tag=0):
     '''更新物品层叠数'''
     self._stack = stack
     if stack>0:
         dbaccess.updateItemInfo(self._owner.baseInfo.id, 'stack', stack)
     else:
         if tag==0:
             self._owner.destroyItemInDB()
 def updateStrengthen(self,count):
     '''更新物品的强化
     @param count: int 强化等级
     '''
     if self.strengthen!=count:
         self.strengthen = count
         result=dbaccess.updateItemInfo(self._owner.baseInfo.id, 'strengthen', count)
         if not result:
             log.err(u'强化后更改数据库数据的时候错误 item.attribute.updateStrengthen(count=%s)物品id=%s'%(count,self._owner.baseInfo.id))
         else:
             self._owner.updateFJ()
Esempio n. 5
0
 def updateStrengthen(self, count):
     '''更新物品的强化
     @param count: int 强化等级
     '''
     if self.strengthen != count:
         self.strengthen = count
         result = dbaccess.updateItemInfo(self._owner.baseInfo.id,
                                          'strengthen', count)
         if not result:
             log.err(
                 u'强化后更改数据库数据的时候错误 item.attribute.updateStrengthen(count=%s)物品id=%s'
                 % (count, self._owner.baseInfo.id))
         else:
             self._owner.updateFJ()
 def updateIsBound(self,isBound):
     '''更新物品绑定状态
     '''
     self.isBound = isBound
     dbaccess.updateItemInfo(self._owner.baseInfo, 'isBound', isBound)
 def updateWorkout(self,count):
     '''更新物品的成长度
     @param count: int 物品的成长度
     '''
     self.workout=count
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'workout', count)
 def updateDurability(self,durability):
     '''更新物品的耐久度
     @param durability: int 物品的耐久度
     '''
     self.setDurability(durability)
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'durability', durability)
 def updateIdentification(self,identification):
     '''更新物品的辨识状态'''
     self._identification = identification
     dbaccess.updateItemInfo(self._owner.baseInfo, 'identification', identification)
     
     
Esempio n. 10
0
 def updateWorkout(self, count):
     '''更新物品的成长度
     @param count: int 物品的成长度
     '''
     self.workout = count
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'workout', count)
Esempio n. 11
0
 def updateIdentification(self, identification):
     '''更新物品的辨识状态'''
     self._identification = identification
     dbaccess.updateItemInfo(self._owner.baseInfo, 'identification',
                             identification)
Esempio n. 12
0
 def updateIsBound(self, isBound):
     '''更新物品绑定状态
     '''
     self.isBound = isBound
     dbaccess.updateItemInfo(self._owner.baseInfo, 'isBound', isBound)
Esempio n. 13
0
 def updateStarLevel(self, starLevel):
     '''更新物品星级'''
     self._starLevel = starLevel
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'starLevel',
                             starLevel)