v2018.03.31

- fixed wishing wells giving too much loot
- fixed NS concert effect quickbuilds spawning
This commit is contained in:
lcdr
2018-03-31 13:58:00 +02:00
parent bf57209eb4
commit f3826587e6
19 changed files with 141 additions and 28 deletions

View File

@@ -192,7 +192,7 @@ class Init:
# actually persistent stuff
self.root.activity_rewards = BTrees.IOBTree.BTree()
for object_template, loot_matrix_index, currency_index in self.cdclient.execute("select objectTemplate, LootMatrixIndex, CurrencyIndex from ActivityRewards"):
for object_template, activity_rating, loot_matrix_index, currency_index in self.cdclient.execute("select objectTemplate, activityRating, LootMatrixIndex, CurrencyIndex from ActivityRewards"):
# doesn't currently account for activity ratings
if loot_matrix_index is not None:
loot = loot_matrix.get(loot_matrix_index)
@@ -204,9 +204,10 @@ class Init:
minvalue = None
maxvalue = None
self.root.activity_rewards[object_template] = loot, minvalue, maxvalue
self.root.activity_rewards.setdefault(object_template, []).append((activity_rating, (loot, minvalue, maxvalue)))
for key, value in self.root.activity_rewards.items():
value.sort(key=lambda x: x[0])
item_type_fixes = {
3513: ItemType.RightHand, # NPC Sky Lane Helmet