monster quest unstable field fixes
This commit is contained in:
@@ -170,6 +170,8 @@ def get_goal_monsters(db, goal, errors):
|
|||||||
for name in names:
|
for name in names:
|
||||||
if name == "all large monsters":
|
if name == "all large monsters":
|
||||||
continue
|
continue
|
||||||
|
elif name == "monster":
|
||||||
|
continue
|
||||||
m = db.get_monster_by_name(name)
|
m = db.get_monster_by_name(name)
|
||||||
if m is None and name.endswith("s"):
|
if m is None and name.endswith("s"):
|
||||||
name2 = name.rstrip("s")
|
name2 = name.rstrip("s")
|
||||||
|
|||||||
BIN
db/mh4u.db
BIN
db/mh4u.db
Binary file not shown.
@@ -737,7 +737,7 @@ class ItemRewards(object):
|
|||||||
# quests, so skip the unstable monsters for single monster
|
# quests, so skip the unstable monsters for single monster
|
||||||
# quests.
|
# quests.
|
||||||
unstable = (m["unstable"] == "yes")
|
unstable = (m["unstable"] == "yes")
|
||||||
if unstable and not q.is_multi_monster():
|
if unstable:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
hunt_item = self.get_hunt_item(mid, quest_item.quest.rank)
|
hunt_item = self.get_hunt_item(mid, quest_item.quest.rank)
|
||||||
@@ -838,7 +838,7 @@ class ItemRewards(object):
|
|||||||
for m in quest_monsters:
|
for m in quest_monsters:
|
||||||
mid = m["monster_id"]
|
mid = m["monster_id"]
|
||||||
hunt_item = self.get_hunt_item(mid, quest_item.quest.rank)
|
hunt_item = self.get_hunt_item(mid, quest_item.quest.rank)
|
||||||
if hunt_item is None:
|
if hunt_item is None or m["unstable"] == "yes":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
kill_ev[0] += hunt_item.expected_value(STRAT_KILL)
|
kill_ev[0] += hunt_item.expected_value(STRAT_KILL)
|
||||||
|
|||||||
Reference in New Issue
Block a user