Replace * 25 in internal tick defaults with actual total
While the idea behind it is understandable, this was inconsistent with the bulk of other defaults.
This commit is contained in:
@@ -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 void New(Player owner, WPos position, int duration = 30 * 25, bool showRadarPings = true)
|
||||
public void New(Player owner, WPos position, int duration = 750, bool showRadarPings = true)
|
||||
{
|
||||
var beacon = owner.PlayerActor.Info.TraitInfoOrDefault<PlaceBeaconInfo>();
|
||||
if (beacon == null)
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
}
|
||||
|
||||
[Desc("Creates a new radar ping that stays for the specified time at the specified WPos.")]
|
||||
public void Ping(Player player, WPos position, Color color, int duration = 30 * 25)
|
||||
public void Ping(Player player, WPos position, Color color, int duration = 750)
|
||||
{
|
||||
radarPings?.Add(() => player.World.RenderPlayer == player, position, color, duration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user