Compare commits

..

No commits in common. "main" and "fix-split-on-death" have entirely different histories.

View file

@ -357,12 +357,11 @@ namespace TD.Dev
return names; return names;
} }
// Display names of every pooled EnemyUpgradeOption, alphabetically. Mirrors // Display names of every pooled AbilityEnemyUpgradeOption, alphabetically. Mirrors
// DraftOptionNames above — EnemyUpgradePool is the enemy-side equivalent of DraftPool, // DraftOptionNames above — EnemyUpgradePool is the enemy-side equivalent of DraftPool,
// and this is the same Count/Get surface ExecuteGrantEnemyAbility walks. Includes // and this is the same Count/Get surface ExecuteGrantEnemyAbility walks. Non-ability
// non-ability cards too (e.g. the vote-meta "Double Dip") — DebugGrantEnemyUpgradeRpc // cards (e.g. the vote-meta "Double Dip") aren't an AbilityEnemyUpgradeOption, so they
// resolves through EnemyUpgradeOption.ServerOnApplied regardless of subclass, so // don't show up here even though they're in the pool.
// there's nothing this command can't actually grant.
private static List<string> EnemyUpgradeNames() private static List<string> EnemyUpgradeNames()
{ {
var names = new List<string>(); var names = new List<string>();
@ -372,7 +371,7 @@ namespace TD.Dev
for (int i = 0; i < pool.Count; i++) for (int i = 0; i < pool.Count; i++)
{ {
var option = pool.Get(i); var option = pool.Get(i) as AbilityEnemyUpgradeOption;
if (option == null) continue; if (option == null) continue;
string name = option.DisplayName; string name = option.DisplayName;
@ -721,7 +720,7 @@ namespace TD.Dev
string normalizedTarget = Normalize(nameToken); string normalizedTarget = Normalize(nameToken);
for (int i = 0; i < pool.Count; i++) for (int i = 0; i < pool.Count; i++)
{ {
var option = pool.Get(i); var option = pool.Get(i) as AbilityEnemyUpgradeOption;
if (option == null || Normalize(option.DisplayName) != normalizedTarget) continue; if (option == null || Normalize(option.DisplayName) != normalizedTarget) continue;
var relay = DebugCommandRelay.Local; var relay = DebugCommandRelay.Local;