Fix and enable SA1133, SA1134 style rules.

This commit is contained in:
Paul Chote
2019-05-23 18:43:21 +00:00
committed by abcdefg30
parent fbf9461890
commit 78a70be0d4
214 changed files with 1012 additions and 432 deletions

View File

@@ -60,7 +60,8 @@ namespace OpenRA.Mods.Common.Traits
INotifyKilled[] notifyKilled;
INotifyKilled[] notifyKilledPlayer;
[Sync] int hp;
[Sync]
int hp;
public int DisplayHP { get; private set; }
@@ -232,7 +233,9 @@ namespace OpenRA.Mods.Common.Traits
public class HealthInit : IActorInit<int>
{
[FieldFromYamlKey] readonly int value = 100;
[FieldFromYamlKey]
readonly int value = 100;
readonly bool allowZero;
public HealthInit() { }
public HealthInit(int init)