Updates to spells, HUD, Gold, and Camera Controls. New sound effects!
This commit is contained in:
parent
689fe7be88
commit
a33d951abd
27 changed files with 578 additions and 68 deletions
|
|
@ -37,5 +37,14 @@ namespace TD.Gameplay.Draft
|
|||
var loadout = PlayerSpellLoadout.GetForClient(clientId);
|
||||
return loadout != null && loadout.ServerGrantSpell(Kind);
|
||||
}
|
||||
|
||||
/// <summary>Inherits the granted spell's icon (resolved from the pool by
|
||||
/// <see cref="Kind"/>) unless this option assigns an override.</summary>
|
||||
public override Sprite ResolveIcon()
|
||||
{
|
||||
if (Icon != null) return Icon;
|
||||
var def = BuilderSpellPool.Instance != null ? BuilderSpellPool.Instance.Get(Kind) : null;
|
||||
return def != null ? def.Icon : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue