Skip to content

Commit

Permalink
man i love missing things
Browse files Browse the repository at this point in the history
  • Loading branch information
medsal15 committed Dec 6, 2023
1 parent 102366c commit fcb0649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/moreutils.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ function get_tree_drops(tree, amount) {
function get_type_drops(type = player.xp.type, chance_multiplier = D.dOne) {
if (!can_drop(type) || D.lte(chance_multiplier, 0)) return [];

const items = (inChallenge('b', 52) || hasChallenge('b', 52)) ? layers.cas.items.items(type) : layers.lo.items['*'].items(type),
const items = ((inChallenge('b', 52) || hasChallenge('b', 52)) && !tmp.cas.deactivated) ? layers.cas.items.items(type) : layers.lo.items['*'].items(type),
/** @type {{[item_id: string]: Decimal}} */
results = {},
/** @type {[string, Decimal][]} */
Expand Down Expand Up @@ -459,7 +459,7 @@ function get_type_drops(type = player.xp.type, chance_multiplier = D.dOne) {
results[item] = results[item].times(gain_mult);
});

if (inChallenge('b', 52) || hasChallenge('b', 52)) {
if ((inChallenge('b', 52) || hasChallenge('b', 52)) && !tmp.cas.deactivated) {
// Roll for tokens
const chance = tmp.cas.token.chance.times(chance_multiplier);

Expand Down

0 comments on commit fcb0649

Please sign in to comment.