tech research refactoring

This commit is contained in:
devZoGok
2024-03-30 09:41:52 +02:00
parent f9889f145d
commit 541cc7ff25
9 changed files with 12 additions and 17 deletions
-2
View File
@@ -244,13 +244,11 @@ namespace battleship{
sol::table techTable = SOL_LUA_VIEW[techKey][i + 1];
Technology t;
t.id = techTable["id"];
t.cost = techTable["cost"];
t.name = techTable["name"];
t.icon = techTable["icon"];
t.description = techTable["description"];
t.parents = parseTechTable(i, techKey, "numParents", "parents");
t.children = parseTechTable(i, techKey, "numChildren", "children");
t.abilities = parseTechTable(i, techKey, "numAbilities", "abilities");
technologies.push_back(t);