public void OnCraft()
    {
        Spell spell             = new Spell("Craftable", runes.Select(c => c.ID).ToList());
        ProjectilePhysicist phy = (ProjectilePhysicist)spell.Physicists.Where(p => p is ProjectilePhysicist).First();

        GD.Print(phy.ProjectileCount);
        SpellInventory.Instance.AddSpell(spell);
        GD.Print("Spell Inventory now has: ");
        SpellInventory.Instance.Spells.ForEach(s => GD.Print(s.Name));
        DeleteAllRunes();
    }
Exemple #2
0
 public ProjectilePhysics(Caster caster, ProjectilePhysicist physicist) : base(caster)
 {
     this.physicist = physicist;
     this.direction = caster.GetAimVector();
 }