"useing the taxes it collects from its citizens for the common good."
Not just taxes, §14 of the german basic law for example says:
https://www.gesetze-im-internet.de/gg/art_14.html
Any property that is needed for the benefit of all (and where there is no alternative way to buy it normally etc) can be taken and redistributed.
So like a storehouse full of food, with a starving population and broken infrastructure - can be just taken and later compensated not with wartime prices, but "normal" ones. And I believe there are at least in theory some plans for that, which military trucks go to which warehouse and what are distribution centers etc.