You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The maker cost calculation in server.MakerItemFactory is wrong.
Reported by "i hate c++" on Discord #bug-report:
i don't have a github account, but the maker cost estimation is extremely wrong. this is the real formula present in CUIItemMaker::GetTotalCostToMake
MakerItemFactory.getItemCreateEntry
// THEY DECIDED FOR SOME BIZARRE PATTERN ON THE FEE THING, ALMOST RANDOMIZED.
// Turns out, it isn't random at all, and very simple. - ihatecpp
int cost_multiplier = 1;
if (stimulantid != -1) cost_multiplier += 5;
if (!reagentids.isEmpty()) {
int total_gem_levels = 0;
for (Entry<Integer, Short> r : reagentids.entrySet()) {
total_gem_levels += (r.getKey() % 10) + 1;
}
cost_multiplier += 3 * total_gem_levels;
}
int additional_cost = (int) makerEntry.cost / 10 * cost_multiplier;
if (additional_cost > 0) makerEntry.addCost(additional_cost);
it's 110% of the cost from ItemMake.img, plus 10% per "crafting multiplier" where a catalyst/stimulator is 5, and each gem level is 3
To Reproduce
Steps to reproduce the behavior:
Get maker skill
Make something with the maker skill
The mesos shown in the maker UI will not match the mesos that were actually deducted.
Expected behavior
The mesos shown in the maker UI should equal what is deducted.
The text was updated successfully, but these errors were encountered:
Describe the bug
The maker cost calculation in
server.MakerItemFactory
is wrong.Reported by "i hate c++" on Discord #bug-report:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The mesos shown in the maker UI should equal what is deducted.
The text was updated successfully, but these errors were encountered: