This is The Rhythm of Heartbreak!

In the blink of an eye, the flickering interface enlarged before him and revealed the bird's-eye view overlooking Rhode's territory with the additional weapons and buildings that emerged after the system upgrade. Rhode estimated that if he could upgrade the weapons and buildings to their maximum level, perhaps the Four Legendary Generals would have a hard time dealing with him. Now, not only could he construct magic buildings, but he could also construct hero buildings. The latter was somewhat similar to the existence of a class-advancement palace in the game. In those buildings, experienced NPCs could advance in their classes and they could also recruit and train various military units. However, the buildings were expensive to build and a lot of them were required to be effective. Moreover, every hero buildings had to appoint a qualified personnel to manage the place and they were usually rare to find.