some quick fixes

This commit is contained in:
devZoGok
2024-01-26 15:02:38 +02:00
parent 377297ed48
commit d71842f0a2
2 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -39,15 +39,15 @@ namespace battleship{
void Projectile::initProperties(){
GameObject::initProperties();
sol::table projTable = generateView()[GameObject::getGameObjTableName()];
rayLength = projTable[id + 1]["rayLength"];
directHitDamage = projTable[id + 1]["directHitDamage"];
sol::table projTable = generateView()[GameObject::getGameObjTableName()][id + 1];
rayLength = projTable["rayLength"];
directHitDamage = projTable["directHitDamage"];
string explKey = "explosion";
explosionDamage = projTable[id + 1][explKey]["damage"];
explosionRadius = projTable[id + 1][explKey]["radius"];
speed = projTable[id + 1]["speed"];
rotAngle = projTable[id + 1]["rotAngle"];
explosionDamage = projTable[explKey]["damage"];
explosionRadius = projTable[explKey]["radius"];
speed = projTable["speed"];
rotAngle = projTable["rotAngle"].get_or(0.0);
}
void Projectile::initSound(){