This commit is contained in:
33333-33333 2026-07-17 12:25:23 +09:00
commit 61718e2981
18 changed files with 572 additions and 190 deletions

View file

@ -1567,6 +1567,8 @@
function resetWorldProgress(world = global.world) {
if (!world) return false;
runtimeByWorld.delete(world);
dangerFightDeathsByWorld.delete(world);
world.achievementDirectFeedCount = 0;
world.achievementRobotCleanCount = 0;
world.achievementEnemyAntKills = 0;
@ -1641,8 +1643,9 @@
const world = detail.world || detail.tarinai?.world || null;
if (world) {
evaluateMegalopolis(world, detail);
const aliveAfterDeath = (world.tarinai || []).reduce((count, candidate) => count + (candidate && !candidate.dead ? 1 : 0), 0);
if (!state.unlocked.enemy_enemy_friend && aliveAfterDeath < 30) world.achievementEnemyAntKills = 0;
if (!lifespanDeath) {
const aliveAfterDeath = (world.tarinai || []).reduce((count, candidate) => count + (candidate && !candidate.dead ? 1 : 0), 0);
world.achievementNoDeathStartAt = aliveAfterDeath >= 25 ? Math.max(0, Number(world.time || 0) || 0) : -1;
}
}