[LuaDoc] Correct some dumb errors
This commit is contained in:
parent
4b5a8e25e8
commit
b506010a8f
4 changed files with 5 additions and 4 deletions
|
@ -228,7 +228,7 @@ end
|
|||
|
||||
---Delete the aspects defined in aspect_parms from the AI of the specified side.
|
||||
---@param side integer The side to modify.
|
||||
---@param aspect_parms ai_parm[] The aspects to delete.
|
||||
---@param aspect_parms aspect_parm[] The aspects to delete.
|
||||
function micro_ai_helper.delete_aspects(side, aspect_parms)
|
||||
for _,parms in ipairs(aspect_parms) do
|
||||
wesnoth.sides.delete_ai_component(side, "aspect[attacks].facet[" .. parms.facet.id .. "]")
|
||||
|
|
|
@ -129,8 +129,8 @@ function methods:insert(...)
|
|||
end
|
||||
|
||||
---Remove a location from the set
|
||||
---@overload fun(x:integer, y:integer)
|
||||
---@overload fun(loc:location|unit)
|
||||
---@overload fun(self:location_set, x:integer, y:integer)
|
||||
---@overload fun(self:location_set, loc:location|unit)
|
||||
function methods:remove(...)
|
||||
local loc = wesnoth.map.read_location(...)
|
||||
if loc ~= nil then
|
||||
|
|
|
@ -225,7 +225,7 @@ function wesnoth.map.generate(width, height, options) end
|
|||
---@param height integer
|
||||
---@param options heightgen_options
|
||||
---@return table<integer, integer>
|
||||
function wesnoth.map.generate(width, height, options) end
|
||||
function wesnoth.map.generate_height_map(width, height, options) end
|
||||
|
||||
---Get the hex reached by travelling in the specified direction
|
||||
---@param from location
|
||||
|
|
|
@ -116,6 +116,7 @@ function wesnoth.units.advance(unit, animate, fire_events) end
|
|||
|
||||
---Creates a copy of the unit
|
||||
---@param unit unit
|
||||
---@return unit
|
||||
function wesnoth.units.clone(unit) end
|
||||
|
||||
---Erases the unit from the map
|
||||
|
|
Loading…
Add table
Reference in a new issue