Exemple #1
0
        public async Task InitializeCharRacesAsync()
        {
            try
            {
                // Loading from DBC
                int raceId;
                int factionId;
                int modelM;
                int modelF;
                int teamId; // 1 = Horde / 7 = Alliance
                int cinematicId;
                var data = await _dataStoreProvider.GetDataStoreAsync(_chrRacesDbc);

                for (int i = 0, loopTo = data.Rows - 1; i <= loopTo; i++)
                {
                    raceId                  = data.ReadInt(i, 0);
                    factionId               = data.ReadInt(i, 2);
                    modelM                  = data.ReadInt(i, 4);
                    modelF                  = data.ReadInt(i, 5);
                    teamId                  = data.ReadInt(i, 8);
                    cinematicId             = data.ReadInt(i, 16);
                    CharRaces[(byte)raceId] = new CharRace((short)factionId, modelM, modelF, (byte)teamId, cinematicId);
                }

                _clusterServiceLocator.WorldCluster.Log.WriteLine(LogType.INFORMATION, "DBC: {0} ChrRace Loaded.", data.Rows - 1);
            }
            catch (DirectoryNotFoundException)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("DBC File : ChrRaces.dbc missing.");
                Console.ForegroundColor = ConsoleColor.Gray;
            }
        }
Exemple #2
0
        public ActionResult DeleteConfirmed(int id)
        {
            CharRace charRace = db.CharRaces.Find(id);

            db.CharRaces.Remove(charRace);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #3
0
 public ActionResult Edit([Bind(Include = "ID,RaceName,Size,Speed,SpecialAttributes,Languages")] CharRace charRace)
 {
     if (ModelState.IsValid)
     {
         db.Entry(charRace).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ID = new SelectList(db.Characters, "ID", "CharName", charRace.ID);
     return(View(charRace));
 }
Exemple #4
0
        // GET: CharRaces/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CharRace charRace = db.CharRaces.Find(id);

            if (charRace == null)
            {
                return(HttpNotFound());
            }
            return(View(charRace));
        }
Exemple #5
0
        // GET: CharRaces/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CharRace charRace = db.CharRaces.Find(id);

            if (charRace == null)
            {
                return(HttpNotFound());
            }
            ViewBag.ID = new SelectList(db.Characters, "ID", "CharName", charRace.ID);
            return(View(charRace));
        }
Exemple #6
0
        public bool Create(CharRaceCreate charRaceCreate)
        {
            var entity = new CharRace
            {
                RaceName          = charRaceCreate.RaceName,
                Size              = charRaceCreate.Size,
                Speed             = charRaceCreate.Speed,
                SpecialAttributes = charRaceCreate.SpecialAttributes,
                Languages         = charRaceCreate.Languages,
            };

            using (var ctx = new ApplicationDbContext())
            {
                ctx.CharRaces.Add(entity);
                return(ctx.SaveChanges() == 1);
            }
        }
    public float charInformation;     // this determines how much you have spied of them, unlocking more knowledge and info about them. It increases with relationship or spies. 0 to 100



    public NPCData(int charid, int charportrait, string charname, string charnickname, string charsurname, CharSex charsex, int corruptionstage, int slavestage, CharGender chargender, CharAge charage, CityFaction cityfaction,

                   bool isrecruited, bool isenemy, bool ismonster, bool isneutral, bool isprisoner, bool isslave, bool isbroken, float chargold, float charvalue, bool isfurry, bool isfuta, float attphysical, float attmental, float attsocial,
                   float attmagicpower, float attbeauty, float atttemperament, float attwillpower, float attnature, float attopenness, float attdignity, float attobedience, float atthappiness, float attlibido, float attmorality,
                   float attpiety, float attstyle, CharRank charrank, CharPersonality charpersonality, CharFetish charfetish, CharClass charclass, Jobs cityposition, float coremartial, float coresecurity,
                   float corelabor, float coretactics, float coregovernance, float corestewardship, float corepersuasion, float coreintrigue, float corediplomacy, float utilitycraft, float utilityhouse,
                   float utilityfarm, float utilitymedicine, float utilityalchemy, float utilitylearning, float utilityperformance, float utilityetiquette, float utilitystreetwise, float sexmasseuse,
                   float sexstripping, float sexbondage, float sexpetplay, float sexpetting, float sexgroupsex, float sexdemonstration, float sexwhoring, float sexescorting, BgAdulthood bgadult, BgChildhood bgchild,
                   string[] bgstory, BgUpgring bgupbring, float charloy, float charlove, float charcorruption, float charrelation, float[] charaddictions, int charcd, CharRace charrace, HeadType headtype, CharFurColor charfurcolor, CharFeatherColor charfeathercolor,
                   CharSkinColor charskincolor, CharSkinType charskintype, DickType dicktype, LowerBack lowerback, ShoulderBlades shoulderblades, ArmsType armstype, LegsType legstype, BeardStyle beardstyle, BeardLength beardlength, HeadAccesory1 headacc1, HeadAccesory2 headacc2,
                   HairColor haircolor, HairStyle hairstyle, HairType hairtype, float hairlenghtcm, HairLength hairlength, EyesType eyestype, EyesColor eyescolor, bool hasfur, bool hasfeathers, bool hasscales, bool hastentacles, bool isflying,
                   GenderBehavior genderbehavior, float genderbehstat, FacialFeatures facialfeatures, float facialfeatstat, BodyFeatures bodyfeatures, float bodyfeatstat, float heigthchar, HeightName heigthname, BodyPhysique bodyphys,
                   float bodyphystat, BodyBuild bodybuild, float bodybuildstat, bool hasknot, bool hasvagina, bool isvirgin, bool isfertile, bool ispregnant, int pregcd, string pregtext, bool islactating, float charfertility, CharRace childrace,
                   float lactationml, int dicknum, DickSize dicksize, float dicksizecm, TesticleSize testiclesize, float testiclesizecm, float clitorissize, int breastrow, float breast1size, float breast2size, BreastName breast1name,
                   BreastName breast2name, BreastCup breast1cup, BreastCup breast2cup, float areola1size, float areola2size, VagLoose vagloose, float vaglooseness, AssName assname, float asssize, HipsName hipsname, float hipssize, WaistName waistname,
                   float waistsize, float maxhealth, float currenthealth, float maxarousal, float currentarousal, float maxmp, float currentmp,
                   /*int[] charequip,*/ float charreputation, float politicalpower, float charinfo


                   )
    {
        isMarried   = new List <NPCFamily> ();
        isParent    = new List <NPCFamily> ();
        isProgeny   = new List <NPCFamily>();      // list of its two parents
        charTraits  = new List <CharTraits>();
        charAttacks = new List <CharAttacks> ();
        charTitles  = new List <Titles> ();
        charID      = charid;

        charPortraitLayer0 = charportrait;
        charName           = charname;
        charNickname       = charnickname;
        charSurname        = charsurname;
        charSex            = charsex;
        corruptionStage    = corruptionstage;
        slaveStage         = slavestage;
        charGender         = chargender;
        charAge            = charage;
        cityFaction        = cityfaction;
        isRecruited        = isrecruited;
        isEnemy            = isenemy;
        isMonster          = ismonster;
        isNeutral          = isneutral;
        isPrisoner         = isprisoner;
        isSlave            = isslave;
        isBroken           = isbroken;
        charGold           = chargold;
        charValue          = charvalue;
        isFurry            = isfurry;
        isFuta             = isfuta;

        attPhysical     = attphysical;
        attMental       = attmental;
        attSocial       = attsocial;
        attMagicPower   = attmagicpower;
        attBeauty       = attbeauty;
        attTemperament  = atttemperament;
        attWillpower    = attwillpower;
        attNature       = attnature;
        attOpenness     = attopenness;
        attDignity      = attdignity;
        attObedience    = attobedience;
        attHappiness    = atthappiness;
        attLibido       = attlibido;
        attMorality     = attmorality;
        attPiety        = attpiety;
        attStyle        = attstyle;
        charRank        = charrank;
        charPersonality = charpersonality;
        charFetish      = charfetish;
        charClass       = charclass;
        cityJobs        = cityposition;

        coreSkillMartial     = coremartial;     //0
        coreSkillSecurity    = coresecurity;
        coreSkillLabor       = corelabor;
        coreSkillTactics     = coretactics;
        coreSkillGovernance  = coregovernance;
        coreSkillStewardship = corestewardship;
        coreSkillPersuasion  = corepersuasion;
        coreSkillIntrigue    = coreintrigue;
        coreSkillDiplomacy   = corediplomacy;       //8


        utilitySkillCrafting     = utilitycraft;
        utilitySkillHouseKeeping = utilityhouse;
        utilitySkillFarmHand     = utilityfarm;
        utilitySkillMedicine     = utilitymedicine;
        utilitySkillAlchemy      = utilityalchemy;
        utilitySkillLearning     = utilitylearning;
        utilitySkillPerformance  = utilityperformance;
        utilitySkillEtiquette    = utilityetiquette;
        utilitySkillStreetwise   = utilitystreetwise;


        sexSkillMasseuse    = sexmasseuse;
        sexSkillStripping   = sexstripping;
        sexSkillBondage     = sexbondage;
        sexSkillPetplay     = sexpetplay;
        sexSkillPetting     = sexpetting;
        sexSkillGroupSex    = sexgroupsex;
        sexSkillPenetration = sexdemonstration;
        sexSkillWhoring     = sexwhoring;
        sexSkillEscorting   = sexescorting;

        bgAdulthood = bgadult;
        bgChildhood = bgchild;
        bgStory     = bgstory;       // childhood, young adulthood, current
        bgUpbring   = bgupbring;

        charLoyalty      = charloy;
        charLove         = charlove; // how much it loves the MC
        charCorruption   = charcorruption;
        charRelationship = charrelation;

        charAddictions = charaddictions;         // alcohol, tobacco, opium, coke, shrooms, hero, s***n

        charCD = charcd;

        charRace = charrace;
        headType = headtype;
        //tailType = tailtype;
        charFurColor     = charfurcolor;
        charFeatherColor = charfeathercolor;
        charSkinColor    = charskincolor;
        charSkinType     = charskintype;

        dickType       = dicktype;
        lowerBack      = lowerback;
        shoulderBlades = shoulderblades;
        armsType       = armstype;
        legsType       = legstype;
        beardStyle     = beardstyle;
        beardLength    = beardlength;
        headAccesory1  = headacc1;
        headAccesory2  = headacc2;

        hairColor    = haircolor;
        hairStyle    = hairstyle;
        hairType     = hairtype;
        hairLengthCM = hairlenghtcm;
        hairLength   = hairlength;
        eyesType     = eyestype;
        eyesColor    = eyescolor;

        hasFur       = hasfur;
        hasFeathers  = hasfeathers;
        hasScales    = hasscales;
        hasTentacles = hastentacles;
        isFlying     = isflying;

        genderBehavior     = genderbehavior;
        genderBehaviorStat = genderbehstat;         // this is what sets the above, this can make a char more feminine or masculine after certain point

        facialFeatures     = facialfeatures;
        facialFeaturesStat = facialfeatstat;

        bodyFeatures     = bodyfeatures;
        bodyFeaturesStat = bodyfeatstat;

        heightChar = heigthchar;         // in cm
        heightName = heigthname;

        bodyPhysique = bodyphys;
        bodyPhysStat = bodyphystat;         // to change it

        bodyBuild     = bodybuild;
        bodyBuildStat = bodybuildstat;         // to change it

        hasKnot       = hasknot;
        hasVagina     = hasvagina;
        isVirgin      = isvirgin;
        isFertile     = isfertile;
        isPregnant    = ispregnant;
        pregnantCD    = pregcd;      // turns until giving birth
        pregnantText  = pregtext;    //
        charFertility = charfertility;
        isLactating   = islactating;
        lactationML   = lactationml;       // how much it lactates in ml
        childRace     = childrace;

        dickNum    = dicknum;          //how many dicks it has
        dickSize   = dicksize;
        dickSizeCM = dicksizecm;       // in cm

        testiclesSize  = testiclesize; // in cm, used to determine if you have or not
        testicleSizeCM = testiclesizecm;

        clitorisSize = clitorissize;       // in cm

        areola1Size = areola1size;         // aerola size of the first row, 1 change, in cm
        areola2Size = areola2size;         // aerola size of the first row, 1 change, in cm

        breastRow   = breastrow;
        breast1Size = breast1size;
        breast2Size = breast2size;

        breast1Name = breast1name;
        breast2Name = breast2name;

        breast1Cup = breast1cup;
        breast2Cup = breast2cup;

        vagLooseness = vaglooseness;         // 0 virgin, 1-5 etc

        assName = assname;
        assSize = asssize;

        hipsName = hipsname;
        hipsSize = hipssize;

        waistName = waistname;
        waistSize = waistsize;

        maxHealth     = maxhealth;
        currentHealth = currenthealth;

        maxArousal     = maxarousal;
        currentArousal = currentarousal;

        maxMP     = maxmp;
        currentMP = currentmp;


        charReputation = charreputation;
        politicalPower = politicalpower;

        charInformation = charinfo;

        vagloose = vagLoose;
    }