Path.getCapacity = function(){ return 999999; }; // 容量上限拉到99万 Path.getWeight = function(){ return 0; }; // 所有物资重量归零 World.updateSupplies(); // 刷新物资栏显示 World.getMaxWater = function(){ return 9999; }; World.getMaxHealth = function(){ return 9999; }; World.setWater(9999); World.setHp(9999); Path.outfit['cured meat'] = 9999; World.updateSupplies(); // 子弹(有枪时)+ 能量电池(后期激光武器) Path.outfit['bullets'] = 9999; Path.outfit['energy cell'] = 9999; Path.outfit['cured meat'] = 9999; World.updateSupplies(); // 这些是从游戏源码里扒出来的真实 stores 键名 var list = { wood: 9999, fur: 9999, meat: 9999, scales: 9999, teeth: 9999, iron: 9999, steel: 9999, coal: 9999, sulphur: 9999, leather: 9999, cloth: 9999, torches: 9999, medicine: 9999, bullets: 9999, bait: 9999, cask: 9999, compass: 9999, rucksack: 9999, waterskin: 9999, glowstone: 9999, rifle: 99, boneSpear: 99, cleaver: 99 // 武器/装备别填太多,99够用 }; $SM.setM('stores', list); console.log('✅ 已批量修改,自动存盘+刷新界面'); 或者只改铁和钢 console.table(State.stores); // 表格形式,键+当前值 // 或者纯文本: console.log(JSON.stringify(State.stores, null, 2));