Skip to content

Commit

Permalink
Fix the script to dump crafting recipes for crafting reward changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vornne committed Apr 20, 2013
1 parent 9708b77 commit 66709c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dump_crafting_recipes.py
Expand Up @@ -65,7 +65,9 @@ class ItemInfo:
recipe.resources_default_cost += item[5]
recipe.resource_names.append(item[1])
recipe.average_skill_level = entry[4]
recipe.max_crafting_reward = recipe.resources_default_cost + (recipe.average_skill_level * 100) + (recipe.crafted_item.price / 5)
recipe.max_crafting_reward = (recipe.resources_default_cost +
((recipe.average_skill_level * craft_skill_gold_reward_multiplier) / 100) +
((recipe.crafted_item.price * craft_price_gold_reward_percentage) / 100))
recipe.time = item_craft_times[item_id]
crafting_recipes.append(recipe)

Expand Down

0 comments on commit 66709c7

Please sign in to comment.