Support changing variation for drones #1773

This commit is contained in:
blitzmann
2018-10-14 23:26:43 -04:00
parent 20fbda9e7a
commit 7bb44f6473
3 changed files with 47 additions and 1 deletions

View File

@@ -124,6 +124,10 @@ class Drone(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
def dps(self):
return self.damageStats()
def changeType(self, typeID):
self.itemID = typeID
self.init()
def damageStats(self, targetResists=None):
if self.__dps is None:
self.__volley = 0