Compare commits
No commits in common. "main" and "fix-split-on-death" have entirely different histories.
main
...
fix-split-
1 changed files with 6 additions and 7 deletions
|
|
@ -357,12 +357,11 @@ namespace TD.Dev
|
|||
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,
|
||||
// and this is the same Count/Get surface ExecuteGrantEnemyAbility walks. Includes
|
||||
// non-ability cards too (e.g. the vote-meta "Double Dip") — DebugGrantEnemyUpgradeRpc
|
||||
// resolves through EnemyUpgradeOption.ServerOnApplied regardless of subclass, so
|
||||
// there's nothing this command can't actually grant.
|
||||
// and this is the same Count/Get surface ExecuteGrantEnemyAbility walks. Non-ability
|
||||
// cards (e.g. the vote-meta "Double Dip") aren't an AbilityEnemyUpgradeOption, so they
|
||||
// don't show up here even though they're in the pool.
|
||||
private static List<string> EnemyUpgradeNames()
|
||||
{
|
||||
var names = new List<string>();
|
||||
|
|
@ -372,7 +371,7 @@ namespace TD.Dev
|
|||
|
||||
for (int i = 0; i < pool.Count; i++)
|
||||
{
|
||||
var option = pool.Get(i);
|
||||
var option = pool.Get(i) as AbilityEnemyUpgradeOption;
|
||||
if (option == null) continue;
|
||||
|
||||
string name = option.DisplayName;
|
||||
|
|
@ -721,7 +720,7 @@ namespace TD.Dev
|
|||
string normalizedTarget = Normalize(nameToken);
|
||||
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;
|
||||
|
||||
var relay = DebugCommandRelay.Local;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue