Legacy Core Exclusive

const canAfford = this.engine.storage.legacy.points >= cost; return ` <div class="upgrade-card ${canAfford ? 'affordable' : ''}" data-id="${id}" data-cost="${cost}"> <b>${name}</b><br/> Cost: ${cost} LP<br/> <small>${desc}</small> <button class="btn-buy-upgrade" ${canAfford ? '' : 'disabled'}>Buy</button> </div> `; }

You don’t need a rewrite. You need a siege. legacy core

Build the wall around the legacy. Starve it of new features. Feed the data to modern services. Eventually, you won't have a legacy core. You’ll have a legacy archive . const canAfford = this

Before you know it, you aren't strangling the fig. You are building a monument of around it. You now have a legacy core and a messy proxy layer. Congratulations, you have doubled your technical debt. const canAfford = this.engine.storage.legacy.points &gt

You can only read

Play soundlegacy core