Exemple #1
0
    /*
     *
     *  Title:
     *  "Thor's Strike"
     *
     *  Description:
     *  Deal damage to the opponent after the Resolution phase.
     *
     *  Skills:
     *  [cost]  [effect]
     *    4     Deal 2 damage
     *    8     deal 5 damage
     *    12    deal 8 damage
     *
     */
    public ThorSkill(God godData, string ownerName)
    {
        OwnerName = ownerName;
        God       = godData;
        ID        = 15;
        GodName   = "Thor";
        SkillName = "Thor's Strike";

        ListOfSkills.Add(this);
    }
Exemple #2
0
    /*
     *
     *  Title:
     *  "Odin`s Sacrifice"
     *
     *  Description:
     *  After the Resolution phase, sacrifice any
     *  number of your health tokens.
     *  Gain [Gold] per health token sacrificed.
     *
     *  Skills:
     *  [cost]  [effect]
     *    6     Gain 3 [Gold] per health token
     *    8     Gain 4 [Gold] per health token
     *    10    Gain 5 [Gold] per health token
     *
     */

    public OdinSkill(God godData, string ownerName)
    {
        OwnerName = ownerName;
        God       = godData;
        ID        = 12;
        GodName   = "Odin";
        SkillName = "Odin`s Sacrifice";

        ListOfSkills.Add(this);
    }
Exemple #3
0
 public virtual void Learn(Skill skill)
 {
     // a method that helps LearnNewSkill
     // new skill means we just add it to the list
     // And we KEEP the old one!!! We want to have the possibility to use more than just one.
     if (!ListOfSkills.Any(item => (item.GetType() == skill.GetType() && item.decoratedSkill == skill.decoratedSkill)))
     {
         ListOfSkills.Add(skill);
     }
 }
Exemple #4
0
    /*
     *
     *  Title:
     *  "Idun`s Rejuvenation"
     *
     *  Description:
     *  Heal Health after the Resolution phase.
     *
     *  Skills:
     *  [cost]  [effect]
     *    4     Heal 2 Heath
     *    7     Heal 4 Heath
     *    10    Heal 6 Heath
     *
     */

    public IdunSkill(God godData, string ownerName)
    {
        OwnerName = ownerName;
        God       = godData;
        ID        = 9;
        GodName   = "Idun";
        SkillName = "Idun's Rejuvenation";

        ListOfSkills.Add(this);
    }
Exemple #5
0
    /*
     *
     *  Title:
     *  "Bragi`s Verve"
     *
     *  Description:
     *  Gain [Gold] for each die that rolled [Hand].
     *
     *  Skills:
     *  [cost]  [effect]
     *    4     Gain 2 [Gold] per die
     *    8     Gain 3 [Gold] per die
     *    12    Gain 4 [Gold] per die
     *
     */

    public BragiSkill(God godData, string ownerName)
    {
        OwnerName = ownerName;
        God       = godData;
        ID        = 2;
        GodName   = "Bragi";
        SkillName = "Bragi's Verve";

        ListOfSkills.Add(this);

        Debug.Log("Jestem skillem " + God.name + ". Posiada mnie gracz: " + ownerName);
    }
Exemple #6
0
 public virtual void Learn(Skill skill)
 {
     // a method that helps LearnNewSkill
     // new skill means we just add it to the list
     if (skill.decoratedSkill == null)
     {
         ListOfSkills.Add(skill);
     }
     // otherwise we also need to remove the old one
     else
     {
         ListOfSkills.Remove(skill.decoratedSkill);
         ListOfSkills.Add(skill);
     }
 }
Exemple #7
0
 public virtual void Learn(Skill skill)
 {
     // a method that helps LearnNewSkill
     ListOfSkills.Add(skill);
 }