コード例 #1
0
ファイル: Boss.cs プロジェクト: MiYanni/WoFFTool
 internal Boss(BossItem boss, int order)
 {
     Order     = order;
     Name      = boss.Mirage;
     Hp        = boss.Hp;
     Elemental = new ElementalResistances
     {
         Fire    = boss.Fire,
         Ice     = boss.Ice,
         Thunder = boss.Thunder,
         Aero    = boss.Aero,
         Water   = boss.Water,
         Earth   = boss.Earth,
         Light   = boss.Light,
         Dark    = boss.Dark
     };
     Ailment = new AilmentResistances
     {
         Poison   = boss.Poison,
         Confuse  = boss.Confuse,
         Sleep    = boss.Sleep,
         Blind    = boss.Blind,
         Oblivion = boss.Oblivion,
         Berserk  = boss.Berserk,
         Slow     = boss.Slow,
         Doom     = boss.Doom
     };
     Exp   = boss.Exp;
     Gil   = boss.Gil;
     Drops = boss.Drop;
     Notes = boss.Notes;
 }
コード例 #2
0
ファイル: Mirage.cs プロジェクト: MiYanni/WoFFTool
        internal Mirage(ResistanceItem resistance, PrismtunityMementoItem prismtunityMemento)
        {
            if (prismtunityMemento != null)
            {
                Name            = prismtunityMemento.Mirage;
                Prismtunity     = prismtunityMemento.Prismtunity;
                MementoLocation = prismtunityMemento.MementoLocation;
                IsDlc           = prismtunityMemento.Dlc;
                IsSuiGeneris    = prismtunityMemento.SuiGeneris;
            }

            if (resistance != null)
            {
                Name      = resistance.Mirage;
                Elemental = new ElementalResistances
                {
                    Fire    = resistance.Fire,
                    Ice     = resistance.Ice,
                    Thunder = resistance.Lightning,
                    Aero    = resistance.Aero,
                    Water   = resistance.Water,
                    Earth   = resistance.Earth,
                    Light   = resistance.Light,
                    Dark    = resistance.Dark
                };
                Ailment = new AilmentResistances
                {
                    Poison   = resistance.Poison,
                    Confuse  = resistance.Confuse,
                    Sleep    = resistance.Sleep,
                    Blind    = resistance.Blind,
                    Oblivion = resistance.Oblivion,
                    Berserk  = resistance.Berserk,
                    Slow     = resistance.Slow,
                    Doom     = resistance.Doom
                };
                Weight       = resistance.Weight;
                Size         = SizeExtensions.Values.Single(s => s.GetName() == resistance.Size);
                IsDlc        = resistance.Dlc;
                IsSuiGeneris = resistance.SuiGeneris;
            }
        }