Add Lua documentation details

This commit is contained in:
JovialFeline
2025-02-08 06:37:30 -05:00
committed by Gustas Kažukauskas
parent 611ac8ce54
commit 052c74e2d7
4 changed files with 20 additions and 13 deletions

View File

@@ -23,7 +23,8 @@ namespace OpenRA.Mods.Cnc.Scripting
public ChronosphereProperties(ScriptContext context, Actor self)
: base(context, self) { }
[Desc("Chronoshift a group of actors. A duration of 0 will teleport the actors permanently.")]
[Desc("Chronoshift a group of actors. A duration of 0 will teleport the actors permanently. " +
"If a given cell is unexplored for this power's owner, the closest valid cell will be used instead.")]
public void Chronoshift([ScriptEmmyTypeOverride("{ [actor]: cpos }")] LuaTable unitLocationPairs, int duration = 0, bool killCargo = false)
{
foreach (var kv in unitLocationPairs)