Commit 0205eb29 authored by sirjorj's avatar sirjorj

points update

parent 15cb3c5b
Subproject commit 9d9663af8f9a147a8ab0e25b8c0e566047a3c4e5
Subproject commit 8f398645d0abd48abba04aaf1cbec91f1791597f
......@@ -89,6 +89,23 @@ void upgrade2(struct kreq *req) {
costStr += std::to_string(c.GetCosts()[3]);
break;
}
case UCost::VPC::Initiative: {
costStr += "i0: ";
costStr += std::to_string(c.GetCosts()[0]);
costStr += " / i1: ";
costStr += std::to_string(c.GetCosts()[1]);
costStr += " / i2: ";
costStr += std::to_string(c.GetCosts()[2]);
costStr += " / i3: ";
costStr += std::to_string(c.GetCosts()[3]);
costStr += " / i4: ";
costStr += std::to_string(c.GetCosts()[4]);
costStr += " / i5: ";
costStr += std::to_string(c.GetCosts()[5]);
costStr += " / i6: ";
costStr += std::to_string(c.GetCosts()[6]);
break;
}
}
khtml_puts(&r, costStr.c_str());
khtml_closeelem(&r, 2); // td tr
......
......@@ -216,6 +216,19 @@ void upgrades2(struct kreq *req) {
upgrades[uc]["cost"]["agi3"] = c.GetCosts()[3];
break;
}
case UCost::VPC::Initiative: {
upgrades[uc]["cost"]["variable"] = "initiative";
upgrades[uc]["cost"]["0"] = c.GetCosts()[0];
upgrades[uc]["cost"]["1"] = c.GetCosts()[1];
upgrades[uc]["cost"]["2"] = c.GetCosts()[2];
upgrades[uc]["cost"]["3"] = c.GetCosts()[3];
upgrades[uc]["cost"]["4"] = c.GetCosts()[4];
upgrades[uc]["cost"]["5"] = c.GetCosts()[5];
upgrades[uc]["cost"]["6"] = c.GetCosts()[6];
break;
}
}
upgrades[uc]["hyperspace"] = u.GetHyperspace() ? "Yes" : "No";
int sides = u.IsDualSided() ? 2 : 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment