コード例 #1
0
 def updateDurability(self, durability):
     '''更新物品的耐久度
     @param durability: int 物品的耐久度
     '''
     self.setDurability(durability)
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'durability',
                             durability)
コード例 #2
0
 def updateStarLevel(self,starLevel):
     '''更新物品星级'''
     self._starLevel = starLevel
     dbaccess.updateItemInfo(self._owner.baseInfo.id,'starLevel',starLevel)
     
     
     
コード例 #3
0
 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()
コード例 #4
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()
コード例 #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()
コード例 #6
0
 def updateIsBound(self,isBound):
     '''更新物品绑定状态
     '''
     self.isBound = isBound
     dbaccess.updateItemInfo(self._owner.baseInfo, 'isBound', isBound)
コード例 #7
0
 def updateWorkout(self,count):
     '''更新物品的成长度
     @param count: int 物品的成长度
     '''
     self.workout=count
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'workout', count)
コード例 #8
0
 def updateDurability(self,durability):
     '''更新物品的耐久度
     @param durability: int 物品的耐久度
     '''
     self.setDurability(durability)
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'durability', durability)
コード例 #9
0
 def updateIdentification(self,identification):
     '''更新物品的辨识状态'''
     self._identification = identification
     dbaccess.updateItemInfo(self._owner.baseInfo, 'identification', identification)
     
     
コード例 #10
0
 def updateWorkout(self, count):
     '''更新物品的成长度
     @param count: int 物品的成长度
     '''
     self.workout = count
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'workout', count)
コード例 #11
0
 def updateIdentification(self, identification):
     '''更新物品的辨识状态'''
     self._identification = identification
     dbaccess.updateItemInfo(self._owner.baseInfo, 'identification',
                             identification)
コード例 #12
0
 def updateIsBound(self, isBound):
     '''更新物品绑定状态
     '''
     self.isBound = isBound
     dbaccess.updateItemInfo(self._owner.baseInfo, 'isBound', isBound)
コード例 #13
0
 def updateStarLevel(self, starLevel):
     '''更新物品星级'''
     self._starLevel = starLevel
     dbaccess.updateItemInfo(self._owner.baseInfo.id, 'starLevel',
                             starLevel)