Add FLAMEGUY.

This commit is contained in:
Matthias Mailänder
2016-06-02 22:49:50 +02:00
parent 910d04f53d
commit 6cc7a21629
5 changed files with 59 additions and 91 deletions

View File

@@ -28,7 +28,9 @@ namespace OpenRA.Mods.Common.Lint
if (!animations.Any())
continue;
var deathTypes = animations.SelectMany(x => x.DeathTypes.Select(y => y.Key)).ToList();
var deathAnimationDeathtypes = animations.SelectMany(x => x.DeathTypes.Select(y => y.Key)).ToList();
var spawnActorDeathtypes = actorInfo.Value.TraitInfos<SpawnActorOnDeathInfo>().Where(s => !string.IsNullOrEmpty(s.DeathType)).Select(a => a.DeathType);
var deathTypes = deathAnimationDeathtypes.Concat(spawnActorDeathtypes).Distinct();
if (!deathTypes.Any())
continue;
@@ -51,7 +53,7 @@ namespace OpenRA.Mods.Common.Lint
continue;
if (!warhead.DamageTypes.Overlaps(deathTypes))
emitError("Actor type `{0}` does not define a death animation for weapon `{1}`!"
emitError("Actor type {0} doesn't define a death animation or spawn an actor on death for weapon {1}!"
.F(actorInfo.Key, weaponInfo.Key));
}
}