dsh-plugin-token-war 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/index.html +3 -2
- package/lib/client.js +3 -2
- package/lib/game.js +1 -1
- package/lib/ui.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.html
CHANGED
|
@@ -369,7 +369,7 @@ const {amount,fromLog,log,add,subtract,multiply,scale,divide,power,numeric,ratio
|
|
|
369
369
|
const {TASKS,ROSTER,EVENTS} = __twmods["config"];
|
|
370
370
|
|
|
371
371
|
const SAVE_VERSION = 1;
|
|
372
|
-
const GAME_VERSION = '0.4.
|
|
372
|
+
const GAME_VERSION = '0.4.3';
|
|
373
373
|
const MAX_OFFLINE_MS = 30 * 86400000;
|
|
374
374
|
const HP_GROWTH = 1.085;
|
|
375
375
|
const TRAIN_GROWTH = 1.15;
|
|
@@ -1160,7 +1160,8 @@ function mountGame(root,{assetData={},hostNotice=null}={}) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
function measureLists(){
|
|
1162
1162
|
if(!UI.tasksPanel.hidden&&UI.taskList.clientHeight>16){
|
|
1163
|
-
const
|
|
1163
|
+
const taskRowH=root.dataset.compact==='true'?40:TASK_ROW_H;
|
|
1164
|
+
const rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/taskRowH)));
|
|
1164
1165
|
if(rows!==taskRows)taskRows=rows;
|
|
1165
1166
|
}
|
|
1166
1167
|
if(!UI.armyBody.hidden&&UI.armyList.clientHeight>16){
|
package/lib/client.js
CHANGED
|
@@ -92,7 +92,7 @@ const {amount,fromLog,log,add,subtract,multiply,scale,divide,power,numeric,ratio
|
|
|
92
92
|
const {TASKS,ROSTER,EVENTS} = __twmods["config"];
|
|
93
93
|
|
|
94
94
|
const SAVE_VERSION = 1;
|
|
95
|
-
const GAME_VERSION = '0.4.
|
|
95
|
+
const GAME_VERSION = '0.4.3';
|
|
96
96
|
const MAX_OFFLINE_MS = 30 * 86400000;
|
|
97
97
|
const HP_GROWTH = 1.085;
|
|
98
98
|
const TRAIN_GROWTH = 1.15;
|
|
@@ -883,7 +883,8 @@ function mountGame(root,{assetData={},hostNotice=null}={}) {
|
|
|
883
883
|
}
|
|
884
884
|
function measureLists(){
|
|
885
885
|
if(!UI.tasksPanel.hidden&&UI.taskList.clientHeight>16){
|
|
886
|
-
const
|
|
886
|
+
const taskRowH=root.dataset.compact==='true'?40:TASK_ROW_H;
|
|
887
|
+
const rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/taskRowH)));
|
|
887
888
|
if(rows!==taskRows)taskRows=rows;
|
|
888
889
|
}
|
|
889
890
|
if(!UI.armyBody.hidden&&UI.armyList.clientHeight>16){
|
package/lib/game.js
CHANGED
|
@@ -2,7 +2,7 @@ import {amount,fromLog,log,add,subtract,multiply,scale,divide,power,numeric,rati
|
|
|
2
2
|
import {TASKS,ROSTER,EVENTS} from './config.js';
|
|
3
3
|
|
|
4
4
|
export const SAVE_VERSION = 1;
|
|
5
|
-
export const GAME_VERSION = '0.4.
|
|
5
|
+
export const GAME_VERSION = '0.4.3';
|
|
6
6
|
export const MAX_OFFLINE_MS = 30 * 86400000;
|
|
7
7
|
const HP_GROWTH = 1.085;
|
|
8
8
|
const TRAIN_GROWTH = 1.15;
|
package/lib/ui.js
CHANGED
|
@@ -426,7 +426,8 @@ export function mountGame(root,{assetData={},hostNotice=null}={}) {
|
|
|
426
426
|
}
|
|
427
427
|
function measureLists(){
|
|
428
428
|
if(!UI.tasksPanel.hidden&&UI.taskList.clientHeight>16){
|
|
429
|
-
const
|
|
429
|
+
const taskRowH=root.dataset.compact==='true'?40:TASK_ROW_H;
|
|
430
|
+
const rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/taskRowH)));
|
|
430
431
|
if(rows!==taskRows)taskRows=rows;
|
|
431
432
|
}
|
|
432
433
|
if(!UI.armyBody.hidden&&UI.armyList.clientHeight>16){
|