public float OnInterpret(Spell.CompiledRune rune, List <Spell.CompiledRune> additionalRunes) { if (Avatar.IsMovementCommandRune(rune.type)) { return(movTime); } else { return(0); } }
public float OnInterpret(Spell.CompiledRune rune, List <Spell.CompiledRune> additionalRunes) { foreach (var litRune in litRunes) { litRune.isLit = false; } litRunes.Clear(); var mainLitRune = avatar.spell.compiledSpell.GetRealRune(rune); litRunes.Add(mainLitRune); foreach (var arune in additionalRunes) { litRunes.Add(avatar.spell.compiledSpell.GetRealRune(arune)); } foreach (var litRune in litRunes) { litRune.isLit = true; } float interTime; if (rune.type == RuneType.Wind) { interTime = 2; } else if (Avatar.IsArrowRune(rune.type)) { interTime = 0.25f; } else if (Avatar.IsMovementCommandRune(rune.type)) { interTime = movTime; } else { interTime = 1; } return(interTime);// * 0.1f; }