Skip to content

Commit 44c7903

Browse files
committed
fix PS floating damage text
1 parent 4ca8c17 commit 44c7903

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

playerSpire.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,8 @@ var playerSpire = {
952952
<div id='spireTrapsWindow'></div>
953953
<div id='playerSpireUpgradesArea'></div>
954954
</div>`
955-
if (this.smallMode) this.shrink()
955+
if (this.smallMode) this.shrink();
956+
else this.enlarge();
956957
this.drawSpire();
957958
this.drawInfo();
958959
},
@@ -1791,6 +1792,8 @@ var playerSpire = {
17911792
this.updateTabColor();
17921793
}
17931794

1795+
1796+
17941797
}
17951798

17961799
var playerSpireTraps = {
@@ -2370,7 +2373,7 @@ var playerSpireTraps = {
23702373
}
23712374
}
23722375

2373-
var TDFloatingText = (function(floatingCombatText) {
2376+
var TDFloatingText = (function() {
23742377
//Floating combat text brought to you by your friendly neighborhood Grabarz
23752378
var frameTime = 30;
23762379
var elements = [];
@@ -2428,7 +2431,7 @@ var TDFloatingText = (function(floatingCombatText) {
24282431
elem.style.left = (x * 100) + "%";
24292432
elem.style.top = (y * 100) + "%";
24302433

2431-
floatingCombatText.appendChild(elem);
2434+
document.getElementById("floatingCombatText").appendChild(elem);
24322435

24332436
elements.push({
24342437
elem: elem,
@@ -2441,6 +2444,7 @@ var TDFloatingText = (function(floatingCombatText) {
24412444
}
24422445

24432446
function update() {
2447+
var floatingCombatText = document.getElementById("floatingCombatText")
24442448
var i;
24452449
for(i = 0; i < elements.length; i++) {
24462450
var element = elements[i];
@@ -2465,4 +2469,4 @@ var TDFloatingText = (function(floatingCombatText) {
24652469
update: update,
24662470
setFrameTime: setFrameTime
24672471
}
2468-
})(document.getElementById("floatingCombatText"));
2472+
})();

0 commit comments

Comments
 (0)