Lashtw commited on
Commit
246c1a8
·
verified ·
1 Parent(s): 0ad6f92

Upload 8 files

Browse files
Files changed (1) hide show
  1. 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(currentStage, stageLikes, classSize, currentMonsterId, percentile);
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) => {