remove unused building HP
This commit is contained in:
@@ -445,8 +445,6 @@ void BuildingSystem::tickConstruction(Tick currentTick)
|
||||
building.footprint = front.footprint;
|
||||
building.rotation = front.rotation;
|
||||
building.type = front.type;
|
||||
building.hp = 100.0f;
|
||||
building.maxHp = 100.0f;
|
||||
building.recipeId = front.recipeId;
|
||||
building.shipLayout = front.shipLayout;
|
||||
|
||||
@@ -1049,8 +1047,7 @@ bool BuildingSystem::deliverScrapToSalvageBay(EntityId bayId)
|
||||
|
||||
EntityId BuildingSystem::placeImmediate(BuildingType type,
|
||||
const std::vector<std::string>& surfaceMask,
|
||||
QPoint anchor, Rotation rotation,
|
||||
float hp, float maxHp)
|
||||
QPoint anchor, Rotation rotation)
|
||||
{
|
||||
const EntityId id = m_allocateId();
|
||||
const ParsedSurfaceMask mask = parseSurfaceMask(surfaceMask, rotation);
|
||||
@@ -1061,8 +1058,6 @@ EntityId BuildingSystem::placeImmediate(BuildingType type,
|
||||
building.footprint = mask.footprint;
|
||||
building.rotation = rotation;
|
||||
building.type = type;
|
||||
building.hp = hp;
|
||||
building.maxHp = maxHp;
|
||||
|
||||
for (const QPoint& cell : mask.bodyCells)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user