Skip to content

Commit

Permalink
fix material cost
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjgit committed Mar 13, 2024
1 parent a6c856b commit 9c1e35e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib/invention/MaterialBank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class MaterialBank {
res.push(`${toTitleCase(type)}: ${qty.toLocaleString()}`);
}

return `${res.join('\n')}`;
return res.join(', ');
}

public values() {
Expand Down
3 changes: 2 additions & 1 deletion src/mahoji/commands/invention.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ export const inventionCommand: OSBMahojiCommand = {
return str;
}
if (options.materials) {
return { content: `You own:\n${user.materialsOwned()}`, ephemeral: true };
const materialsOwned = user.materialsOwned().toString().split(', ').join('\n');
return { content: `You own:\n${materialsOwned}`, ephemeral: true };
}

if (options.group) {
Expand Down
10 changes: 5 additions & 5 deletions src/tasks/minions/monsterActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ async function bonecrusherEffect(user: MUser, loot: Bank, duration: number, mess
multiplier: false
});
messages.push(
`${xpStr} Prayer XP${
`${xpStr} Prayer XP ${
hasSuperior
? `(${inventionBoosts.superiorBonecrusher.xpBoostPercent}% more from Superior bonecrusher, ${
boostMsg ? `, ${boostMsg}` : ''
})`
: ''
? `+${inventionBoosts.superiorBonecrusher.xpBoostPercent}% more from Superior bonecrusher${
boostMsg ? ` (${boostMsg})` : ''
}`
: ' from Gorajan bonecrusher'
}`
);
}
Expand Down

0 comments on commit 9c1e35e

Please sign in to comment.