rename BuildSpeedModifier back to BuildSpeed
This commit is contained in:
@@ -99,7 +99,7 @@ namespace OpenRA.Mods.RA
|
|||||||
if (self.World.LobbyInfo.GlobalSettings.AllowCheats && self.Owner.PlayerActor.Trait<DeveloperMode>().FastBuild)
|
if (self.World.LobbyInfo.GlobalSettings.AllowCheats && self.Owner.PlayerActor.Trait<DeveloperMode>().FastBuild)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
var time = (int)(unit.GetBuildTime() * Info.BuildSpeedModifier);
|
var time = (int)(unit.GetBuildTime() * Info.BuildSpeed);
|
||||||
|
|
||||||
if (Info.SpeedUp)
|
if (Info.SpeedUp)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.RA
|
|||||||
public readonly string Group = null;
|
public readonly string Group = null;
|
||||||
|
|
||||||
[Desc("This value is used to translate the unit cost into build time.")]
|
[Desc("This value is used to translate the unit cost into build time.")]
|
||||||
public float BuildSpeedModifier = 0.4f;
|
public float BuildSpeed = 0.4f;
|
||||||
[Desc("The build time is multiplied with this value on low power.")]
|
[Desc("The build time is multiplied with this value on low power.")]
|
||||||
public readonly int LowPowerSlowdown = 3;
|
public readonly int LowPowerSlowdown = 3;
|
||||||
|
|
||||||
@@ -281,7 +281,7 @@ namespace OpenRA.Mods.RA
|
|||||||
if (self.World.LobbyInfo.GlobalSettings.AllowCheats && self.Owner.PlayerActor.Trait<DeveloperMode>().FastBuild)
|
if (self.World.LobbyInfo.GlobalSettings.AllowCheats && self.Owner.PlayerActor.Trait<DeveloperMode>().FastBuild)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
var time = unit.GetBuildTime() * Info.BuildSpeedModifier;
|
var time = unit.GetBuildTime() * Info.BuildSpeed;
|
||||||
|
|
||||||
return (int) time;
|
return (int) time;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Player:
|
|||||||
BlockedAudio: NoRoom
|
BlockedAudio: NoRoom
|
||||||
ClassicProductionQueue@Starport:
|
ClassicProductionQueue@Starport:
|
||||||
Type: Starport
|
Type: Starport
|
||||||
BuildSpeedModifier: .2
|
BuildSpeed: .2
|
||||||
LowPowerSlowdown: 1
|
LowPowerSlowdown: 1
|
||||||
BlockedAudio: NoRoom
|
BlockedAudio: NoRoom
|
||||||
QueuedAudio: OrderPlaced
|
QueuedAudio: OrderPlaced
|
||||||
|
|||||||
Reference in New Issue
Block a user