class LegacySystem { constructor(scene) { this.scene = scene; this.worldAge = 0; // Days passed this.generation = 1; this.currentAge = 18; // Protagonist age this.family = { partner: null, children: [] }; console.log('⏳ LegacySystem: Initialized (Gen ' + this.generation + ')'); } // Call daily advanceDay() { this.worldAge++; // Age Logic if (this.worldAge % 365 === 0) { this.currentAge++; console.log('🎂 Birthday! Now age:', this.currentAge); } } marry(npcId) { this.family.partner = npcId; console.log('💍 Married to:', npcId); } haveChild(name) { if (this.family.children.length < 2) { this.family.children.push({ name: name, age: 0 }); console.log('👶 New Child:', name); } } dieAndInherit(heirIndex) { console.log('⚰️ Character Died. Passing legacy...'); this.generation++; this.currentAge = 18; // Reset age for heir // TODO: Transfer inventory and stats } }