Skip to content

Commit

Permalink
#RANGE less noise
Browse files Browse the repository at this point in the history
  • Loading branch information
Applevangelist committed Aug 29, 2024
1 parent 81f8e84 commit f531fda
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Moose Development/Moose/Functional/Range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ end
-- @return #RANGE self
function RANGE:SetSoundfilesPath( path )
self.soundpath = tostring( path or "Range Soundfiles/" )
self:I( self.lid .. string.format( "Setting sound files path to %s", self.soundpath ) )
self:T2( self.lid .. string.format( "Setting sound files path to %s", self.soundpath ) )
return self
end

Expand Down Expand Up @@ -1636,9 +1636,9 @@ function RANGE:AddBombingTargetUnit( unit, goodhitrange, randommove )

-- Debug or error output.
if _isstatic == true then
self:I( self.lid .. string.format( "Adding STATIC bombing target %s with good hit range %d. Random move = %s.", name, goodhitrange, tostring( randommove ) ) )
self:T( self.lid .. string.format( "Adding STATIC bombing target %s with good hit range %d. Random move = %s.", name, goodhitrange, tostring( randommove ) ) )
elseif _isstatic == false then
self:I( self.lid .. string.format( "Adding UNIT bombing target %s with good hit range %d. Random move = %s.", name, goodhitrange, tostring( randommove ) ) )
self:T( self.lid .. string.format( "Adding UNIT bombing target %s with good hit range %d. Random move = %s.", name, goodhitrange, tostring( randommove ) ) )
else
self:E( self.lid .. string.format( "ERROR! No bombing target with name %s could be found. Carefully check all UNIT and STATIC names defined in the mission editor!", name ) )
end
Expand Down Expand Up @@ -1706,7 +1706,7 @@ function RANGE:AddBombingTargetScenery( scenery, goodhitrange)

-- Debug or error output.
if name then
self:I( self.lid .. string.format( "Adding SCENERY bombing target %s with good hit range %d", name, goodhitrange) )
self:T( self.lid .. string.format( "Adding SCENERY bombing target %s with good hit range %d", name, goodhitrange) )
else
self:E( self.lid .. string.format( "ERROR! No bombing target with name %s could be found!", name ) )
end
Expand Down Expand Up @@ -2196,7 +2196,7 @@ function RANGE:onafterStatus( From, Event, To )
end

-- Check range status.
self:I( self.lid .. text )
self:T( self.lid .. text )

end

Expand Down Expand Up @@ -2397,7 +2397,7 @@ function RANGE:onafterSave( From, Event, To )
if f then
f:write( data )
f:close()
self:I( self.lid .. string.format( "Saving player results to file %s", tostring( filename ) ) )
self:T( self.lid .. string.format( "Saving player results to file %s", tostring( filename ) ) )
else
self:E( self.lid .. string.format( "ERROR: Could not save results to file %s", tostring( filename ) ) )
end
Expand Down Expand Up @@ -2476,7 +2476,7 @@ function RANGE:onafterLoad( From, Event, To )

-- Info message.
local text = string.format( "Loading player bomb results from file %s", filename )
self:I( self.lid .. text )
self:T( self.lid .. text )

-- Load asset data from file.
local data = _loadfile( filename )
Expand Down Expand Up @@ -2849,7 +2849,7 @@ function RANGE:_DisplayRangeInfo( _unitname )

-- Check if we have a player.
if unit and playername then
self:I(playername)
--self:I(playername)
-- Message text.
local text = ""

Expand Down Expand Up @@ -4104,7 +4104,7 @@ end
-- @return #string Name of the player.
-- @return #boolean If true, group has > 1 player in it
function RANGE:_GetPlayerUnitAndName( _unitName, PlayerName )
self:I( _unitName )
--self:I( _unitName )

if _unitName ~= nil then

Expand Down

0 comments on commit f531fda

Please sign in to comment.