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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.4.3 — 2026-11-09
4
+
5
+ - 修正窄屏任务列表分页行高:避免 390×600 等高度下最后一行被截一半。
6
+
3
7
  ## v0.4.2 — 2026-11-09
4
8
 
5
9
  - 手机/窄屏适配:360–430px 宽度下战场只显示前 3 个角色,敌人卡缩窄,避免遮挡;任务行改为更适合触控的高度与列宽;窄屏标签与操作按钮加大。
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.2';
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 rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/TASK_ROW_H)));
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.2';
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 rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/TASK_ROW_H)));
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.2';
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 rows=Math.max(3,Math.min(20,Math.floor((UI.taskList.clientHeight-2)/TASK_ROW_H)));
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){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-token-war",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "private": false,
5
5
  "description": "Token War:DSH 侧栏里的自动经营小游戏。循环任务、模型军团、厂商事件、蒸馏与离线成长;固定单屏、纯本地、不打扰。",
6
6
  "type": "module",