예제 #1
0
        public PiratePlayer(TeamType team, string region, Vector2 location, ContentManager content, GraphicsDevice graphics) : base(team, content, graphics)
        {
            timeSinceLastTurnFrame   = 0;
            timeSinceLastWalkFrame   = 0;
            millisecondsPerTurnFrame = 300; // turn speed
            millisecondsPerWalkFrame = 100; // turn speed
            millisecondsCombatSwing  = 75;

            maxInventorySlots = 10;

            fullHealth = 40;
            health     = fullHealth;

            //MapModelMovementVectorValues();
            Texture2D texturePlayerPirate   = content.Load <Texture2D>("Pirate1-combat");
            Texture2D texturePlayerPirateBB = null;

            if (Gusto.GameOptions.ShowBoundingBox)
            {
                texturePlayerPirateBB = new Texture2D(graphics, texturePlayerPirate.Width, texturePlayerPirate.Height);
            }
            Asset playerPirateAsset = new Asset(texturePlayerPirate, texturePlayerPirateBB, 11, 4, 1.0f, "playerPirate", region);

            inventory = Enumerable.Repeat <InventoryItem>(null, maxInventorySlots).ToList();

            // Temporary??
            inHand = new BaseSword(team, region, location, content, graphics);

            // set wake
            wake.MaxParticle      = 3;
            wake.WakeDisplacement = 3;

            SetSpriteAsset(playerPirateAsset, location);
        }
예제 #2
0
    public BaseWarriovalClass()
    {
        characterClass = CharacterClass.WARRIOVAL;
        dexterity = 17;
        strength = 17;
        faith = 5;
        intellect = 3;
        defense = 15;
        speed = 3;

        presence = 10;

        health = 18;

        weapon = new BaseSword("Sword", 18, 10);
    }
예제 #3
0
	public BasePaladiskClass()
    {
        characterClass = CharacterClass.PALADISK;
        dexterity = 10;
        strength = 14;
        faith = 16;
        intellect = 8;
        defense = 15;
        speed = 5;
    
        presence = 14;

        health = 20;

        weapon = new BaseSword("Sword", 15, 7);
    }
    public BaseTriangicianClass()
    {
        characterClass = CharacterClass.TRIANGICIAN;
        dexterity = 7;
        strength = 5;
        faith = 10;
        intellect = 24;
        defense = 9;
        speed = 3;

        presence = 6;

        health = 12;

        weapon = new BaseSword("Sword", 6, 3);
    }
예제 #5
0
    public BasePriestmClass()
    {
        characterClass = CharacterClass.PRIESTMA;
        dexterity = 5;
        strength = 18;
        faith = 20;
        intellect = 15;
        defense = 10;
        speed = 4;

        presence = 7;

        health = 15;

        weapon = new BaseSword("Sword", 10, 5);
    }
예제 #6
0
        public override void AlterMeleeDamageFrom(Mobile from, ref int damage)
        {
            if (from is PlayerMobile && DoWeaponsDoMoreDamage > 0)
            {
                BaseSword bs = from.FindItemOnLayer(Layer.OneHanded) as BaseSword;
                if (bs != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BasePoleArm BPA = from.FindItemOnLayer(Layer.TwoHanded) as BasePoleArm;
                if (BPA != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseSpear BP = from.FindItemOnLayer(Layer.TwoHanded) as BaseSpear;
                if (BP != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseAxe BA = from.FindItemOnLayer(Layer.TwoHanded) as BaseAxe;
                if (BA != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }

                BaseRanged BR = from.FindItemOnLayer(Layer.TwoHanded) as BaseRanged;
                if (BR != null)
                {
                    damage *= DoWeaponsDoMoreDamage;
                }
            }

            if (from is BaseCreature)
            {
                BaseCreature bc = (BaseCreature)from;

                if (bc.Controlled || bc.Summoned || bc.BardTarget == this)
                {
                    damage /= DoLessDamageFromPets;
                }
            }
        }
예제 #7
0
        public static InventoryItem CreateInventoryItem(string key, TeamType team, string region, Vector2 location, ContentManager content, GraphicsDevice graphics)
        {
            InventoryItem item          = null;
            int           amountStacked = 1;

            switch (key)
            {
            case ("tribalTokens"):
                item = new TribalTokens(team, region, location, content, graphics);
                break;

            case ("basePlank"):
                item = new BasePlank(team, region, location, content, graphics);
                break;

            case ("shortSword"):
                item = new ShortSword(team, region, location, content, graphics);
                break;

            case ("softWood"):
                item = new SoftWood(team, region, location, content, graphics);
                break;

            case ("islandGrass"):
                item = new IslandGrass(team, region, location, content, graphics);
                break;

            case ("coal"):
                item = new Coal(team, region, location, content, graphics);
                break;

            case ("ironOre"):
                item = new IronOre(team, region, location, content, graphics);
                break;

            case ("baseSword"):
                item = new BaseSword(team, region, location, content, graphics);
                break;

            case ("anvilItem"):
                item = new AnvilItem(team, region, location, content, graphics);
                item.placeableVersion = new CraftingAnvil(team, region, location, content, graphics);
                break;

            case ("baseChestItem"):
                item = new BaseChestItem(team, region, location, content, graphics);
                item.placeableVersion = new BaseChest(team, region, location, content, graphics);
                break;

            case ("nails"):
                item          = new Nails(team, region, location, content, graphics);
                amountStacked = 5;
                break;

            case ("cannonBallItem"):
                item          = new CannonBallItem(team, region, location, content, graphics);
                amountStacked = 3;
                break;

            case ("pistolShotItem"):
                item          = new PistolShotItem(team, region, location, content, graphics);
                amountStacked = 5;
                break;

            case ("ironBar"):
                item = new IronBar(team, region, location, content, graphics);
                break;

            case ("treasureMapItem"):
                item = new TreasureMapItem(null, team, region, location, content, graphics);
                break;

            case ("chiliFish"):
                item = new ChiliFish(team, region, location, content, graphics);
                break;

            case ("chiliPepper"):
                item = new ChiliPepper(team, region, location, content, graphics);
                break;

            case ("cookedFish"):
                item = new CookedFish(team, region, location, content, graphics);
                break;

            case ("cookedMeat"):
                item = new CookedMeat(team, region, location, content, graphics);
                break;

            case ("rawFish"):
                item = new RawFish(team, region, location, content, graphics);
                break;

            case ("rawMeat"):
                item = new RawMeat(team, region, location, content, graphics);
                break;

            case ("spoiledFish"):
                item = new SpoiledFish(team, region, location, content, graphics);
                break;

            case ("spoiledMeat"):
                item = new SpoiledMeat(team, region, location, content, graphics);
                break;

            case ("feather"):
                item = new Feather(team, region, location, content, graphics);
                break;

            case ("scales"):
                item = new Scales(team, region, location, content, graphics);
                break;

            case ("fishOil"):
                item = new FishOil(team, region, location, content, graphics);
                break;

            case ("goldCoins"):
                item = new GoldCoins(team, region, location, content, graphics);
                break;
            }
            item.itemKey       = key;
            item.amountStacked = amountStacked;
            return(item);
        }