Remove the Lua return type of Beacon.New

This commit is contained in:
abcdefg30
2019-04-13 13:12:41 +02:00
committed by reaperrr
parent c93dc1424c
commit 981fe6fae1

View File

@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Scripting
[Desc("Creates a new beacon that stays for the specified time at the specified WPos. " +
"Does not remove player set beacons, nor gets removed by placing them. " +
"Requires the 'PlaceBeacon' trait on the player actor.")]
public Beacon New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
public void New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
{
var beacon = owner.PlayerActor.Info.TraitInfoOrDefault<PlaceBeaconInfo>();
if (beacon == null)
@@ -49,8 +49,6 @@ namespace OpenRA.Mods.Common.Scripting
owner.Color,
duration);
}
return playerBeacon;
}
}
}