Spaces:
Running
Running
Upload 8 files
Browse files- src/views/StudentView.js +2 -1
src/views/StudentView.js
CHANGED
|
@@ -753,7 +753,7 @@ window.triggerEvolution = async (currentStage, nextStage, likes, classSize, curr
|
|
| 753 |
// Calculate Next Monster with Lineage & Ranking
|
| 754 |
// IMPORTANT: Ensure we pass currentMonsterId to enforce lineage!
|
| 755 |
// We pass 'stageLikes' instead of total 'likes' now
|
| 756 |
-
const nextMonster = getNextMonster(
|
| 757 |
|
| 758 |
console.log("Evolving from:", currentMonsterId, "to:", nextMonster.name);
|
| 759 |
|
|
@@ -769,6 +769,7 @@ window.triggerEvolution = async (currentStage, nextStage, likes, classSize, curr
|
|
| 769 |
let speed = 300;
|
| 770 |
|
| 771 |
const currentMonster = MONSTER_DEFS.find(m => m.id === currentMonsterId) || getNextMonster(currentStage, 0, 0, currentMonsterId);
|
|
|
|
| 772 |
const svgNext = generateMonsterSVG(nextMonster);
|
| 773 |
|
| 774 |
const setFrame = (svg, isSilhouette) => {
|
|
|
|
| 753 |
// Calculate Next Monster with Lineage & Ranking
|
| 754 |
// IMPORTANT: Ensure we pass currentMonsterId to enforce lineage!
|
| 755 |
// We pass 'stageLikes' instead of total 'likes' now
|
| 756 |
+
const nextMonster = getNextMonster(nextStage, stageLikes, classSize, currentMonsterId, percentile);
|
| 757 |
|
| 758 |
console.log("Evolving from:", currentMonsterId, "to:", nextMonster.name);
|
| 759 |
|
|
|
|
| 769 |
let speed = 300;
|
| 770 |
|
| 771 |
const currentMonster = MONSTER_DEFS.find(m => m.id === currentMonsterId) || getNextMonster(currentStage, 0, 0, currentMonsterId);
|
| 772 |
+
const svgCurrent = generateMonsterSVG(currentMonster);
|
| 773 |
const svgNext = generateMonsterSVG(nextMonster);
|
| 774 |
|
| 775 |
const setFrame = (svg, isSilhouette) => {
|