A Deno-powered backend service for Plants vs. Zombies: MODDED. [Read-only GitHub mirror] docs.pvzm.net
express typescript expressjs plant deno jspvz pvzm game online backend plants-vs-zombies zombie javascript plants modded vs plantsvszombies openapi pvz noads
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format "Update version badge to v0.3.0 and enhance featured sorting logic with diversity penalties" Original commit: https://github.com/ROBlNET13/pvzm-backend/commit/13fb8745163c23fa608a5398047d4e8cab193f7c

Co-authored-by: ClaytonTDM <clay@clay.rip>

+2 -2
+2 -2
modules/routes/levels.ts
··· 380 380 const hasMatureData = (maxPlaysResult?.max_plays ?? 0) >= 100; 381 381 382 382 // Calculate scores and apply diversity penalties 383 - const levelsWithScores = (levels as LevelWithScore[]).map(level => { 383 + const levelsWithScores = (levels as LevelWithScore[]).map((level) => { 384 384 // Calculate base score (same formula as SQL) 385 385 let baseScore: number; 386 386 if (hasMatureData) { ··· 398 398 399 399 return { 400 400 ...level, 401 - score: baseScore + diversityPenalty 401 + score: baseScore + diversityPenalty, 402 402 }; 403 403 }); 404 404