h
This commit is contained in:
parent
2cc2f003df
commit
61718e2981
18 changed files with 572 additions and 190 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue