Skip to content

Commit

Permalink
remove echos from water_damage gadget (beyond-all-reason#3834)
Browse files Browse the repository at this point in the history
remove echos
  • Loading branch information
SethDGamre authored Oct 11, 2024
1 parent 27eb017 commit b39a09d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions luarules/gadgets/unit_water_depth_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,12 @@ for unitDefID, unitDef in ipairs(UnitDefs) do
if unitDef.moveDef.depth and unitDef.moveDef.smClass ~= Game.speedModClasses.Boat and unitDef.moveDef.smClass ~= Game.speedModClasses.ship then
if unitDef.moveDef.depth >= isDrownableMaxWaterDepth then
if unitDef.moveDef.smClass == Game.speedModClasses.Hover then --units must have "hover" in their movedef name in order to be treated as hovercraft
Spring.Echo("Hover:", unitDef.name)
defData.isHover = true
else
Spring.Echo("Amphibious:", unitDef.name)
defData.isAmphibious = true
end
else
defData.isDrownable = true
Spring.Echo("Drownable:", unitDef.name)
end
end
unitDefData[unitDefID] = defData
Expand Down

0 comments on commit b39a09d

Please sign in to comment.