Skip to content

Commit 4d56974

Browse files
authored
Merge pull request nuclear-unicorn#120 from Brent-Call/fixASCOH
Fix ASCOH
2 parents b05be58 + d0c4d2f commit 4d56974

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

js/challenges.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,6 @@ dojo.declare("classes.ui.ReservesPanel", com.nuclearunicorn.game.ui.Panel, {
10971097
if (resKit.length && this.game.prestige.getPerk("ascoh").researched) {
10981098
//Create a list of all the cryochambers we have stored in reserved & all kittens in them:
10991099
var kittensTable = dojo.create("table", {}, panelContainer);
1100-
var census = new classes.ui.village.Census(this.game);
11011100
for (var i = 0; i < resKit.length; i += 1) {
11021101
var kitten = resKit[i];
11031102

@@ -1109,7 +1108,7 @@ dojo.declare("classes.ui.ReservesPanel", com.nuclearunicorn.game.ui.Panel, {
11091108
break;
11101109
}
11111110
//Otherwise, we still can display more kittens:
1112-
dojo.create("td", { innerHTML: census.getStyledName(kitten, false /*is leader panel*/), style: "padding-right: 8px" }, tr);
1111+
dojo.create("td", { innerHTML: this.game.village.getStyledName(kitten, false /*is leader panel*/), style: "padding-right: 8px" }, tr);
11131112
var traitLabel = kitten.trait.title;
11141113
var rank = kitten.rank;
11151114
//Note that if we are fractured, the name will be randomized, & we'll obscure other info as well.

js/jsx/queue.jsx.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ WQueueItem = React.createClass({
9898
isStorageLimited: function() {
9999
var game = this.props.game;
100100
var model = game.time.queue.getQueueElementModel(this.props.item);
101+
if (!model) { //This might be an invalid queue item
102+
return true; //Mark as storage-limited to try to get the player's attention
103+
}
101104
return game.resPool.isStorageLimited(model.prices);
102105
}
103106
});

res/theme_catnip.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,13 @@ body.scheme_catnip {
880880
border: 1px solid rgba(0, 0 , 0, 0.25);
881881
border-radius: 5px;
882882
}
883+
.scheme_catnip .tabInner.Challenges td.craftStuffPanel + td.craftStuffPanel > table { /* list of kittens in reserve */
884+
background-color: rgba(0 ,0 ,0 , 0.6); /* copied from census-block because inside we have a list of kitten names*/
885+
border: 1px solid rgba(0, 0, 0, 0.1);
886+
border-radius: 5px;
887+
font-size: 0.9em;
888+
color: #d6dacb;
889+
}
883890

884891
/* ******************************************************** */
885892
/* ******************* ACHIEVEMENTS TAB ******************* */

res/theme_chocolate.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,13 @@ body.scheme_chocolate.with_background_image {
812812
padding: 10px 20px; /* default padding-top: 20px; */
813813
color: #120f0c;
814814
}
815+
.scheme_chocolate .tabInner.Challenges td.craftStuffPanel + td.craftStuffPanel > table { /* list of kittens in reserve */
816+
background-color: rgba(36, 27, 19, 0.25); /* copied from census-block because inside we have a list of kitten names*/
817+
border: 1px solid;
818+
border-radius: 9px;
819+
font-size: 0.9em;
820+
color: #c0a787;
821+
}
815822

816823
/**********************************************************/
817824
/******************** ACHIEVEMENTS TAB ********************/

0 commit comments

Comments
 (0)