Ejemplo n.º 1
0
        public void Merc(Persona Ego)
        {
            Console.WriteLine("Welcome to the NAME GENERATOR Shop.");
            Console.WriteLine("\nWe have here for sale: *rolls random dices*");
            for (int u = 0; u < this.praesto.Length; u++)
            {
                Console.WriteLine(this.praesto[u]);
            }
            Console.WriteLine("\nWhat do you want to take a look?");
            Σ.rector = Console.ReadLine();

            if (Array.Exists(this.praesto, u => u == Σ.rector))
            {
                Caussae.Acquirere(Σ.rector).Index();

                Console.WriteLine("\nDo you want to buy it?");
                Σ.notou = Console.ReadLine();

                if (Σ.notou == "y" || Σ.notou == "yes")
                {
                    if (Caussae.Acquirere(Σ.rector).Typus == "arrow")
                    {
                        Console.WriteLine("\nHow many?");
                        Σ.notou = Console.ReadLine();
                        Σ.unus  = String.IsNullOrEmpty(Σ.notou) ? 1 : Convert.ToInt32(Σ.notou);
                    }
                    else
                    {
                        Σ.unus = 1;
                    }
                    if (Ego.Credits >= (Caussae.Acquirere(Σ.rector).Pretium *Σ.unus))
                    {
                        Ego.ArchAdd(Caussae.Acquirere(Σ.rector));
                        Ego.Credits -= (Caussae.Acquirere(Σ.rector).Pretium *Σ.unus);
                    }
                    else
                    {
                        Console.WriteLine("\nYou lack monetary power for that.");
                    }
                }
            }
            else
            {
                Console.WriteLine("\nWe do not have that or it is not even real.");
            }
            Console.WriteLine("Anything else? Type to exit.");
            Σ.rector = Console.ReadLine().ToLower();
        }
Ejemplo n.º 2
0
        public void Opera(Persona Ego)
        {
            if (this.type == "Woodcutter")
            {
                Console.WriteLine("Do you want to find a part-time 'job' or use a guild 'workbench'?");
                Σ.rector = Console.ReadLine().ToLower();
                if (Σ.rector == "workbench")
                {
                    Console.WriteLine("Here on the Hipster Guild we have:");
                    for (int u = 0; u < this.praesto.Length; u++)
                    {
                        Console.WriteLine(this.praesto[u]);
                    }

                    Console.WriteLine("\nWhat would you like to use?");
                    Σ.rector = Console.ReadLine();
                    foreach (string u in this.praesto)
                    {
                        if (Σ.rector == u)
                        {
                            switch (Σ.rector)
                            {
                            case "Saw":
                                do
                                {
                                    Console.WriteLine("\nWhat do you want to saw?");
                                    Σ.notou = Console.ReadLine();
                                    if (Ego.ArchTrac(Σ.notou) != null)
                                    {
                                        Console.WriteLine("\nInto how many planks of 100x3?");
                                        Σ.notod = Console.ReadLine();
                                        Σ.unus  = String.IsNullOrEmpty(Σ.notod) ? 1 : Convert.ToInt32(Σ.notod);
                                        if (Σ.unus > 10)
                                        {
                                            Σ.unus = 10;
                                        }
                                        if (Σ.unus < 1)
                                        {
                                            Σ.unus = 1;
                                        }
                                        Ego.ArchDel(Ego.ArchTrac(Σ.notou));

                                        int split = (36 - (Σ.unus * 3)) * 10;

                                        switch (Σ.notou)
                                        {
                                        case "Teak Log":
                                            Ego.ArchAdd(Caussae.Acquirere("Teak Plank", Σ.unus));
                                            Ego.ArchAdd(Caussae.Acquirere("Teak Splinter", split));
                                            break;

                                        case "Chestnut Log":
                                            Ego.ArchAdd(Caussae.Acquirere("Chestnut Plank", Σ.unus));
                                            Ego.ArchAdd(Caussae.Acquirere("Chestnut Splinter", split));
                                            break;

                                        case "Maple Log":
                                            Ego.ArchAdd(Caussae.Acquirere("Maple Plank", Σ.unus));
                                            Ego.ArchAdd(Caussae.Acquirere("Maple Splinter", split));
                                            break;
                                        }
                                    }
                                    // add a recipe list somewhere; confirms if there is items on inventory and then delete wood as it turns into items
                                    Console.WriteLine("\nSaw more??");
                                    Σ.rector = Console.ReadLine().ToLower();
                                } while(Σ.rector == "y" || Σ.rector == "yes");

                                break;

                            case "dex":
                                //call
                                break;

                            default:

                                break;
                            }
                        }
                    }
                }
                else
                {
                    Console.WriteLine("We have avaliable today:" +
                                      "\nWoodcutter: 0.15C/h *PER 10STR*" +
                                      "\nWoodCUTTERRRR: 0.25C/h *PER 10STR*" +
                                      "\nWoodpecker: 0.05C/h");
                }
            }
        }
Ejemplo n.º 3
0
Archivo: Opes.cs Proyecto: Bedengus/ULF
 public Caussae Auctumnum()
 {
     return(Caussae.Acquirere(this.occumbo));
 }
Ejemplo n.º 4
0
        public static void Origo()
        {
            Hostis["Bandit"]          = new Persona();
            Hostis["Bandit"].Nomen    = "Bandit";
            Hostis["Bandit"].Cognomen = "Bandit";
            Hostis["Bandit"].Genus.Auto("human", Hostis["Bandit"].Nomen);
            Hostis["Bandit"].Arma                = Arma.Ornare("steel sword");
            Hostis["Bandit"].Actus[2]            = "Slash";
            Hostis["Bandit"].Actus[1]            = "Strike";
            Hostis["Bandit"].Actus[3]            = "Thrust";
            Hostis["Bandit"].Actus[0]            = "Step";
            Hostis["Bandit"].Actus[4]            = "Wait";
            Hostis["Bandit"].Lotus.X             = 100;
            Hostis["Bandit"].Lotus.Y             = 100;
            Hostis["Bandit"].PV[1]               = 10;
            Hostis["Bandit"].panaN["Human Skin"] = 5;
            foreach (var u in Hostis["Bandit"].panaN)
            {
                Hostis["Bandit"].Archivum[0] = Caussae.Acquirere(u.Key, u.Value);
            }
            Hostis["Bandit"].Galea = Galea.Ornare("Goat Leather Helmet");

            Hostis["Boar"]          = new Persona();
            Hostis["Boar"].Nomen    = "Boar";
            Hostis["Boar"].Cognomen = "Boar";
            Hostis["Boar"].Genus.Auto("quadrupod", Hostis["Boar"].Nomen);
            Hostis["Boar"].Arma                = Arma.Ornare("steel sword");
            Hostis["Boar"].Actus[1]            = "Strike";
            Hostis["Boar"].Actus[0]            = "Step";
            Hostis["Boar"].Lotus.X             = 50;
            Hostis["Boar"].Lotus.Y             = 50;
            Hostis["Boar"].panaN["Human Skin"] = 5;
            foreach (var u in Hostis["Boar"].panaN)
            {
                Hostis["Boar"].Archivum[0] = Caussae.Acquirere(u.Key, u.Value);
            }

            Hostis["h"]          = new Persona();
            Hostis["h"].Nomen    = "h";
            Hostis["h"].Cognomen = "h";
            Hostis["h"].Genus.Auto("human", Hostis["h"].Nomen);
            Hostis["h"].Arma     = Arma.Ornare("steel sword");
            Hostis["h"].Actus[2] = "Slash";
            Hostis["h"].Actus[1] = "Strike";
            Hostis["h"].Actus[3] = "Thrust";
            Hostis["h"].Actus[0] = "Step";
            Hostis["h"].Actus[4] = "Wait";
            Hostis["h"].Lotus.X  = 100;
            Hostis["h"].Lotus.Y  = 100;
            Hostis["h"].PV[1]    = 10;

            Hostis["j"]          = new Persona();
            Hostis["j"].Nomen    = "j";
            Hostis["j"].Cognomen = "j";
            Hostis["j"].Genus.Auto("human", Hostis["j"].Nomen);
            Hostis["j"].Arma     = Arma.Ornare("steel sword");
            Hostis["j"].Actus[2] = "Slash";
            Hostis["j"].Actus[1] = "Strike";
            Hostis["j"].Actus[3] = "Thrust";
            Hostis["j"].Actus[0] = "Step";
            Hostis["j"].Actus[4] = "Wait";
            Hostis["j"].Lotus.X  = 10;
            Hostis["j"].Lotus.Y  = 10;
            Hostis["j"].PV[1]    = 10;
        }