Beispiel #1
0
 public static void Shoot(Persona Ego)
 {
     Console.WriteLine("Inform the target.");
     Σ.notou = Console.ReadLine();
     Console.WriteLine("Inform the missile type.");
     Σ.notod = Console.ReadLine();
     if (Ego.ArchTrac(Σ.notod) != null)
     {
         Ego.ArchTrac(Σ.notod).Quantitas--;
         Console.WriteLine("You have " + Ego.ArchTrac(Σ.notod).Quantitas + " " + Ego.ArchTrac(Σ.notod).Nomen + " left.");
         Mechanicae.PulsareLonge(Ego, Primor.Hostis[Σ.notou], Ego.Arma.DamnumT, Ego.ArchTrac(Σ.notod).Value, Ego.ArchTrac(Σ.notod).Pondus, 2);
         Console.WriteLine(Σ.notou + " has " + Primor.Hostis[Σ.notou].PV[1] + " out of " + Primor.Hostis[Σ.notou].PV[0] + ".");
     }
     else
     {
         Console.WriteLine("You cannot shoot with that.");
     }
 }
Beispiel #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");
                }
            }
        }