Пример #1
0
        public static Arma Ornare(string mat = "")
        {
            Arma SteelSword     = new Arma("Steel Sword", "steel", "sword", 1, 6, 4, 1, 0.8, 12, 60, 1, "Blade Proficiency");
            Arma SteelLongSword = new Arma("Steel Long Sword", "steel", "sword", 1, 8, 4, 1, 1.5, 15, 110, 1, "Blade Proficiency");
            Arma SteelDagger    = new Arma("Steel Dagger", "steel", "dagger", 2, 4, 4, 1, 0.1, 1, 10, 0.59, "Blade Proficiency");
            Arma ChestnutStaff  = new Arma("Chestnut Staff", "chestnut", "staff", 0, 0, 0, 6, 0.5, 2, 70, 0.6, "");
            Arma MapleBow       = new Arma("Maple Bow", "maple", "bow", 7, 0, 0, 1, 0.4, 3, 70, 0.4, "Bow Mastery");
            Arma CaelumFractum  = new Arma("Caelum Fractum", "azurian steel", "sword", 2, 38, 76, 38, 0.1, 3000, 9999, 1, "");

            Arma Fist = new Arma("First", "flesh", "fist", 0, 0, 0, 4, 0, 0, 0, 1);

            mat = mat.ToLower();
            switch (mat)
            {
            case "steel sword": return(SteelSword);

            case "steel long sword": return(SteelLongSword);

            case "steel dagger": return(SteelDagger);

            case "chestnut staff": return(ChestnutStaff);

            case "maple bow": return(MapleBow);

            case "caelum fractum": return(CaelumFractum);

            default: return(null);
            }
        }
Пример #2
0
 public static void Telechargere()
 {
     Arma.Ornare("Steel Sword").Salvare();
     Arma.Ornare("Steel Long Sword").Salvare();
     Arma.Ornare("Steel Dagger").Salvare();
     Arma.Ornare("Chestnut Staff").Salvare();
     Arma.Ornare("Maple Bow").Salvare();
 }
Пример #3
0
        public static Caussae Acquirere(string mat = "", int qua = 1)
        {
            Caussae TeakLog1p36      = new Caussae("Teak Log", "A 100 per 36 log of teak", "log", 65, 3.2, 0, qua);
            Caussae ChestnutLog1p36  = new Caussae("Chestnut Log", "A 100 per 36 log of chestnut", "log", 68, 3.8, 0, qua);
            Caussae MapleLog1p36     = new Caussae("Maple Log", "A delicate 100 per 36 log of maple", "log", 50, 4.2, 0, qua);
            Caussae TeakPlank1p3     = new Caussae("Teak Plank", "A 100 per 3 plank of teak", "plank", 5.4, 0.35, 0, qua);
            Caussae ChestnutPlank1p3 = new Caussae("Chestnut Plank", "A 100 per 3 plank of chestnut", "plank", 5.6, 0.4, 0, qua);
            Caussae MaplePlank1p3    = new Caussae("Maple Plank", "A delicate 100 per 3 plank of maple", "plank", 4.1, 0.5, 0, qua);
            Caussae TeakSplinter     = new Caussae("Teak Splinter", "A splinter of teak", "plank", 0.18, 0.01, 0, qua);
            Caussae ChestnutSplinter = new Caussae("Chestnut Splinter", "A splinter of chestnut", "plank", 0.188, 0.01, 0, qua);
            Caussae MapleSplinter    = new Caussae("Maple Splinter", "A splinter of maple", "plank", 0.138, 0.01, 0, qua);

            Caussae LightArrow = new Caussae("Light Arrow", "A wooden arrow.", "arrow", 0.025, 0.1, 4, qua);
            Caussae HeavyArrow = new Caussae("Heavy Arrow", "An heavy arrow.", "arrow", 0.040, 0.15, 6, qua);

            Caussae HumanSkin    = new Caussae("Human Skin", "The skin of a higher primate.", "ressource", 0.1, 0.1, 0, qua, "hunter1");
            Caussae LeatherStrap = new Caussae("Leather Strap", "Strap of commom leather", "ressource", 0.1, 0.5, 0, qua, "cobbler1");

            Caussae DGoatLeatherHemelt = new Caussae("Damaged Goat Leather Helmet", "A damaged helmet of goat leather", "ressource", 0.5, 0.1, 4, qua);

            mat = mat.ToLower();
            switch (mat)
            {
            case "teak log": return(TeakLog1p36);

            case "chestnut log": return(ChestnutLog1p36);

            case "maple log": return(MapleLog1p36);

            case "teak plank": return(TeakPlank1p3);

            case "chestnut plank": return(ChestnutPlank1p3);

            case "maple plank": return(MaplePlank1p3);

            case "teak splinter": return(TeakSplinter);

            case "chestnut splinter": return(ChestnutSplinter);

            case "maple splinter": return(MapleSplinter);

            case "light arrow": return(LightArrow);

            case "heavy arrow": return(HeavyArrow);

            case "human skin": return(HumanSkin);

            case "leather strap": return(LeatherStrap);

            case "damaged goat leather helmet": return(DGoatLeatherHemelt);

            default:
                if (Arma.Ornare(mat) != null)
                {
                    return(Arma.Ornare(mat));
                }
                if (Galea.Ornare(mat) != null)
                {
                    return(Galea.Ornare(mat));
                }
                return(null);
            }
        }
Пример #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;
        }