different createable types of cruisers

This commit is contained in:
devZoGok
2024-01-13 10:19:05 +02:00
parent 0ed518d8dd
commit 7aa579d313
18 changed files with 518964 additions and 14 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ namespace battleship{
unitId = atoi(arguments[1].c_str());
if(!(0 <= unitId && unitId <= (int)generateView()["units"]["num"]))
sol::state_view SOL_LUA_VIEW = generateView();
SOL_LUA_VIEW.script("numUnits = #units.unitClass");
int numUnits = SOL_LUA_VIEW["numUnits"];
if(!(0 <= unitId && unitId <= numUnits))
return;
if(arguments.size() >= 5){