Skip to content

Commit

Permalink
more bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
medsal15 committed Dec 13, 2023
1 parent cc1d016 commit 3d22a55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/layers/side/casino.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ addLayer('cas', {
if (!item_id || item_id == '*') return;

const item = tmp.lo.items[item_id];
if (!(item.unlocked ?? true)) return;
if (!(item.unlocked ?? true) && !(inChallenge('b', 52) && item_id in player.cas.swaps.challenge)) return;

if (inChallenge('b', 52)) {
if (!(item_id in player.cas.swaps.challenge)) return;
Expand Down Expand Up @@ -277,6 +277,7 @@ addLayer('cas', {
return `<h3>${capitalize((side == 'left' ? item() : target()).name)}</h3><br><br>${capitalize(mode_text)}`;
},
unlocked() {
//if (mode() == 'challenge' && item_id in player.cas.swaps.challenge) return true;
if (!(item().unlocked ?? true) && !(item_id in player.cas.swaps[mode()])) return false;

if (inChallenge('b', 52)) return r_mode == 'chances';
Expand Down
4 changes: 3 additions & 1 deletion js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let VERSION = {
/**
* The mod's version number, displayed at the top right of the tree tab.
*/
num: 'R0.B.5',
num: 'R0.B.6',
/**
* The version's name, displayed alongside the number in the info tab.
*/
Expand All @@ -79,6 +79,8 @@ let VERSION = {
* HTML displayed in the changelog tab
*/
let changelog = `<h1>Changelog:</h1><br>
<h3>v0.B.6</h3><br>
- Misfortune should no longer break when you alternate a layer during it.<br>
<h3>v0.B.5</h3><br>
- Fixed a bug where the Kitchen had control of the Forge's smelting.<br>
<h3>v0.B.4</h3><br>
Expand Down

0 comments on commit 3d22a55

Please sign in to comment.