Ejemplo n.º 1
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    init_debugger_Audio.PlaySound(31);
                    base.Inputs_OKAY();
                    Memory.State.Characters[Character].RemoveAll();

                    IGM_Junction.Data[SectionName.RemAll].Hide();
                    IGM_Junction.Data[SectionName.TopMenu_Off].Hide();
                    IGM_Junction.SetMode(Mode.TopMenu);
                    IGM_Junction.Data[SectionName.TopMenu].CURSOR_SELECT = 0;
                    IGM_Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }
Ejemplo n.º 2
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    AV.Sound.Play(31);
                    base.Inputs_OKAY();
                    if (Damageable.GetCharacterData(out Saves.CharacterData c))
                    {
                        c.RemoveAll();
                    }
                    IGM_Junction.Data[SectionName.RemAll].Hide();
                    IGM_Junction.Data[SectionName.TopMenu_Off].Hide();
                    IGM_Junction.SetMode(Mode.TopMenu);
                    ((IGMData.Base)IGM_Junction.Data[SectionName.TopMenu]).CURSOR_SELECT = 0;
                    IGM_Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }
Ejemplo n.º 3
0
            public override bool Inputs_OKAY()
            {
                if (Damageable.GetCharacterData(out Saves.CharacterData c))
                {
                    switch (CURSOR_SELECT)
                    {
                    case 0:
                        c.AutoATK();
                        break;

                    case 1:
                        c.AutoDEF();
                        break;

                    case 2:
                        c.AutoMAG();
                        break;

                    default: return(false);
                    }
                }
                skipsnd = true;
                init_debugger_Audio.PlaySound(31);
                Inputs_CANCEL();
                IGM_Junction.Refresh();
                return(true);
            }
Ejemplo n.º 4
0
 public override void Inputs_Menu()
 {
     skipdata = true;
     base.Inputs_Menu();
     skipdata = false;
     if (Contents[CURSOR_SELECT] == Kernel_bin.Stat.None)
     {
         Memory.State.Characters[Character].Stat_J[Contents[CURSOR_SELECT]] = 0;
         IGM_Junction.Refresh();
     }
 }
 public override void Inputs_Menu()
 {
     skipdata = true;
     base.Inputs_Menu();
     skipdata = false;
     if (Contents[CURSOR_SELECT] == Kernel_bin.Stat.None && Damageable.GetCharacterData(out Saves.CharacterData c))
     {
         c.Stat_J[Contents[CURSOR_SELECT]] = 0;
         IGM_Junction.Refresh();
     }
 }
Ejemplo n.º 6
0
            public override bool Inputs_OKAY()
            {
                bool ret = base.Inputs_OKAY();

                FadeIn();
                switch (Choice)
                {
                case Items.Junction:
                    Module_main_menu_debug.State = Module_main_menu_debug.MainMenuStates.IGM_Junction;
                    IGM_Junction.Refresh(Contents[CURSOR_SELECT].Item1, Contents[CURSOR_SELECT].Item2);
                    return(true);
                }
                return(ret);
            }
Ejemplo n.º 7
0
            public override bool Inputs_OKAY()
            {
                bool ret = base.Inputs_OKAY();

                FadeIn();
                switch (Choice)
                {
                case Items.Junction:
                    Menu.Module.State = MenuModule.Mode.IGM_Junction;
                    IGM_Junction.Refresh(Contents[CURSOR_SELECT], true);
                    return(true);
                }
                return(ret);
            }
 public override bool Inputs_OKAY()
 {
     if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT])
     {
         skipsnd = true;
         init_debugger_Audio.PlaySound(31);
         base.Inputs_OKAY();
         int target = IGM_Junction.Data[SectionName.TopMenu_Abilities].CURSOR_SELECT - 4;
         Memory.State.Characters[Character].Abilities[target] = Contents[CURSOR_SELECT];
         IGM_Junction.SetMode(Mode.Abilities);
         IGM_Junction.Refresh(); // can be more specific if you want to find what is being changed.
         return(true);
     }
     return(false);
 }
Ejemplo n.º 9
0
 public override bool Inputs_OKAY()
 {
     if (Contents[CURSOR_SELECT] != Kernel_bin.Abilities.None && !BLANKS[CURSOR_SELECT] && Damageable.GetCharacterData(out Saves.CharacterData c))
     {
         skipsnd = true;
         AV.Sound.Play(31);
         base.Inputs_OKAY();
         int target = ((IGMData.Base)IGM_Junction.Data[SectionName.TopMenu_Abilities]).CURSOR_SELECT - 4;
         c.Abilities[target] = Contents[CURSOR_SELECT];
         IGM_Junction.SetMode(Mode.Abilities);
         IGM_Junction.Refresh(); // can be more specific if you want to find what is being changed.
         return(true);
     }
     return(false);
 }
            public override void Inputs_Menu()
            {
                skipdata = true;
                base.Inputs_Menu();
                skipdata = false;

                if (Commands != null && Damageable.GetCharacterData(out Saves.CharacterData c))
                {
                    if (CURSOR_SELECT < Commands.Count)
                    {
                        c.Commands[CURSOR_SELECT - 1] = Kernel_bin.Abilities.None;
                        IGM_Junction.Data[SectionName.TopMenu_Abilities].Refresh();
                        IGM_Junction.Data[SectionName.Commands].Refresh();
                    }
                    else
                    {
                        c.Abilities[CURSOR_SELECT - Commands.Count] = Kernel_bin.Abilities.None;
                        IGM_Junction.Refresh();
                    }
                }
            }
Ejemplo n.º 11
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    init_debugger_Audio.PlaySound(31);
                    base.Inputs_OKAY();
                    Memory.State.Characters[Character].RemoveMagic();
                    Inputs_CANCEL();
                    IGM_Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }
Ejemplo n.º 12
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    skipsnd = true;
                    AV.Sound.Play(31);
                    base.Inputs_OKAY();
                    if (Damageable.GetCharacterData(out Saves.CharacterData c))
                    {
                        c.RemoveMagic();
                    }
                    Inputs_CANCEL();
                    IGM_Junction.Refresh();
                    break;

                case 1:
                    Inputs_CANCEL();
                    break;

                default: return(false);
                }
                return(true);
            }
Ejemplo n.º 13
0
            public override void Inputs_Menu()
            {
                skipdata = true;
                base.Inputs_Menu();
                skipdata = false;

                IGMDataItem_IGMData i  = ((IGMDataItem_IGMData)ITEM[0, 0]);
                IGMDataItem_IGMData i2 = ((IGMDataItem_IGMData)ITEM[3, 0]);

                if (i != null && i.Data != null)
                {
                    if (CURSOR_SELECT < i.Data.Count)
                    {
                        Memory.State.Characters[Character].Commands[CURSOR_SELECT - 1] = Kernel_bin.Abilities.None;
                        IGM_Junction.Data[SectionName.TopMenu_Abilities].Refresh();
                        IGM_Junction.Data[SectionName.Commands].Refresh();
                    }
                    else
                    {
                        Memory.State.Characters[Character].Abilities[CURSOR_SELECT - i.Data.Count] = Kernel_bin.Abilities.None;
                        IGM_Junction.Refresh();
                    }
                }
            }
Ejemplo n.º 14
0
            public override bool Inputs_OKAY()
            {
                switch (CURSOR_SELECT)
                {
                case 0:
                    Memory.State.Characters[Character].AutoATK();
                    break;

                case 1:
                    Memory.State.Characters[Character].AutoDEF();
                    break;

                case 2:
                    Memory.State.Characters[Character].AutoMAG();
                    break;

                default: return(false);
                }
                skipsnd = true;
                init_debugger_Audio.PlaySound(31);
                Inputs_CANCEL();
                IGM_Junction.Refresh();
                return(true);
            }
Ejemplo n.º 15
0
            public override bool Inputs_OKAY()
            {
                skipsnd = true;
                init_debugger_Audio.PlaySound(31);
                base.Inputs_OKAY();
                GFs        select = Contents[CURSOR_SELECT];
                Characters c      = Damageable.GetCharacterData(out Saves.CharacterData c1) && JunctionedGFs.ContainsKey(select) ? JunctionedGFs[select] : c1?.ID ?? Characters.Blank;

                if (c != Characters.Blank)
                {
                    if (c != c1.ID)
                    {
                        //show error msg
                    }
                    else
                    {
                        //Purge everything that you can't have anymore. Because the GF provided for you.
                        List <Kernel_bin.Abilities> a = (Source.Characters[c]).UnlockedGFAbilities;
                        Source.Characters[c].JunctionnedGFs ^= Saves.ConvertGFEnum.FirstOrDefault(x => x.Value == select).Key;
                        List <Kernel_bin.Abilities> b = (Source.Characters[c]).UnlockedGFAbilities;
                        foreach (Kernel_bin.Abilities r in a.Except(b).Where(v => !Kernel_bin.Junctionabilities.ContainsKey(v)))
                        {
                            if (Kernel_bin.Commandabilities.ContainsKey(r))
                            {
                                Source.Characters[c].Commands.Remove(r);
                                Source.Characters[c].Commands.Add(Kernel_bin.Abilities.None);
                            }
                            else if (Kernel_bin.EquipableAbilities.ContainsKey(r))
                            {
                                Source.Characters[c].Abilities.Remove(r);
                                Source.Characters[c].Abilities.Add(Kernel_bin.Abilities.None);
                            }
                        }
                        foreach (Kernel_bin.Abilities r in a.Except(b).Where(v => Kernel_bin.Junctionabilities.ContainsKey(v)))
                        {
                            if (Kernel_bin.Stat2Ability.Any(item => item.Value == r))
                            {
                                switch (r)
                                {
                                case Kernel_bin.Abilities.ST_Atk_J:
                                    Source.Characters[c].Stat_J[Kernel_bin.Stat.ST_Atk] = 0;
                                    break;

                                case Kernel_bin.Abilities.EL_Atk_J:
                                    Source.Characters[c].Stat_J[Kernel_bin.Stat.EL_Atk] = 0;
                                    break;

                                case Kernel_bin.Abilities.EL_Def_Jx1:
                                case Kernel_bin.Abilities.EL_Def_Jx2:
                                case Kernel_bin.Abilities.EL_Def_Jx4:
                                    byte count = 0;
                                    if (b.Contains(Kernel_bin.Abilities.EL_Def_Jx4))
                                    {
                                        count = 4;
                                    }
                                    else if (b.Contains(Kernel_bin.Abilities.EL_Def_Jx2))
                                    {
                                        count = 2;
                                    }
                                    else if (b.Contains(Kernel_bin.Abilities.EL_Def_Jx1))
                                    {
                                        count = 1;
                                    }
                                    for (; count < 4; count++)
                                    {
                                        Source.Characters[c].Stat_J[Kernel_bin.Stat.EL_Def_1 + count] = 0;
                                    }
                                    break;

                                case Kernel_bin.Abilities.ST_Def_Jx1:
                                case Kernel_bin.Abilities.ST_Def_Jx2:
                                case Kernel_bin.Abilities.ST_Def_Jx4:
                                    count = 0;
                                    if (b.Contains(Kernel_bin.Abilities.ST_Def_Jx4))
                                    {
                                        count = 4;
                                    }
                                    else if (b.Contains(Kernel_bin.Abilities.ST_Def_Jx2))
                                    {
                                        count = 2;
                                    }
                                    else if (b.Contains(Kernel_bin.Abilities.ST_Def_Jx1))
                                    {
                                        count = 1;
                                    }
                                    for (; count < 4; count++)
                                    {
                                        Source.Characters[c].Stat_J[Kernel_bin.Stat.ST_Def_1 + count] = 0;
                                    }
                                    break;

                                case Kernel_bin.Abilities.Abilityx3:
                                case Kernel_bin.Abilities.Abilityx4:
                                    count = 2;
                                    if (b.Contains(Kernel_bin.Abilities.Abilityx4))
                                    {
                                        count = 4;
                                    }
                                    else if (b.Contains(Kernel_bin.Abilities.Abilityx3))
                                    {
                                        count = 3;
                                    }
                                    for (; count < Source.Characters[c].Abilities.Count; count++)
                                    {
                                        Source.Characters[c].Abilities[count] = Kernel_bin.Abilities.None;
                                    }
                                    break;

                                default:
                                    Source.Characters[c].Stat_J[Kernel_bin.Stat2Ability.FirstOrDefault(x => x.Value == r).Key] = 0;
                                    break;
                                }
                            }
                        }
                        IGM_Junction.Refresh();
                        return(true);
                    }
                }
                return(false);
            }