Fix racial liquid descriptions not being used

This commit is contained in:
Kae 2023-08-03 16:25:04 +10:00
parent 6afba048ec
commit 722488a9ab

View File

@ -170,7 +170,7 @@ InspectionTool::InspectionResult InspectionTool::inspect(Vec2F const& position)
auto liquidLevel = world()->liquidLevel(Vec2I::floor(position)); auto liquidLevel = world()->liquidLevel(Vec2I::floor(position));
auto liquidsDatabase = Root::singleton().liquidsDatabase(); auto liquidsDatabase = Root::singleton().liquidsDatabase();
if (liquidLevel.liquid != EmptyLiquidId) if (liquidLevel.liquid != EmptyLiquidId)
return {liquidsDatabase->liquidDescription(liquidLevel.liquid), {}}; return {liquidsDatabase->liquidDescription(liquidLevel.liquid, species), {}};
// check the tile for background mod or material // check the tile for background mod or material
MaterialId bgMaterial = world()->material(Vec2I::floor(position), TileLayer::Background); MaterialId bgMaterial = world()->material(Vec2I::floor(position), TileLayer::Background);