nicupavel / openpanzer

Javascript/HTML5 rewrite of Panzer General 2 game
http://panzermarshal.com
154 stars 39 forks source link

Can buy disallowed units #281

Closed Bluepanzer1943 closed 3 years ago

Bluepanzer1943 commented 4 years ago

If you enter a scenario, even in campaign mode, and select a non-core unpurchasable unit (such as a ship) in the unit menu, you can press Buy and get a ship/flak/etc as a core unit. The same goes for prototype units, you can just buy more of them by selecting them. Fortifications work as intended (can't buy them) but so far all other units seem like fair game, regardless of year restriction or being an unpurchasable unit.

salexgit commented 3 years ago

Hi

Nice catch.. I checked and am confirming that the bug is indeed there. I wonder why nobody has noticed it before. I informed the main developer, so let's see how fast we can fix it.

Regards, Alex

Philip799 commented 3 years ago

If you enter a scenario, even in campaign mode, and select a non-core unpurchasable unit (such as a ship) in the unit menu, you can press Buy and get a ship/flak/etc as a core unit. The same goes for prototype units, you can just buy more of them by selecting them. Fortifications work as intended (can't buy them) but so far all other units seem like fair game, regardless of year restriction or being an unpurchasable unit.

There should also be blocked units not recommended and their improvement in historical campaign mode.

nicupavel commented 3 years ago

Identified and fixed for 3.2.10