public BaseMetal(NubiaRessource _metal) : base(0x19B9) { mRessource = _metal; Hue = Infos.Hue; Name = "Metal"; }
public BaseBois(NubiaRessource _bois) : base(0x1BDD) { mRessource = _bois; Hue = Infos.Hue; Name = "Bois"; }
public BaseCuir(NubiaRessource _cuir, int amount) : base(0x1079, amount) { mRessource = _cuir; Hue = Infos.Hue; Name = "Cuir"; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_isRaffine = reader.ReadBool(); mRessource = (NubiaRessource)reader.ReadInt(); }
public BaseOs(NubiaRessource _Os) : base(3966) { mRessource = _Os; Hue = Infos.Hue; Name = "Os"; m_isRaffine = true; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); mRessource = (NubiaRessource)reader.ReadInt(); mCharge = reader.ReadInt(); mItemEmpty = reader.ReadInt(); }
public static NubiaRessourceType GetRessourceType(NubiaRessource res) { if ((int)res < (int)NubiaRessourceType.Cuir) { return(NubiaRessourceType.Metal); } else if ((int)res < (int)NubiaRessourceType.Os) { return(NubiaRessourceType.Cuir); } else if ((int)res < (int)NubiaRessourceType.Bois) { return(NubiaRessourceType.Os); } else { return(NubiaRessourceType.Bois); } }
public void AfterCraft(NubiaQualityEnum quality) { mNubiaQuality = quality; for (int i = 0; i < mTRessourceList.Count; i++) { NubiaRessource res = mTRessourceList[i]; NubiaInfoRessource infos = NubiaInfoRessource.GetInfoRessource(res); mArBoost = Math.Max(mArBoost, infos.GlobalAR); mHitsMax = Math.Max((int)(50.0 * infos.Durabilite), mHitsMax); mHits = mHitsMax; } switch (mNubiaQuality) { case NubiaQualityEnum.Mauvaise: mArBoost--; break; case NubiaQualityEnum.Bonne: mHitsMax += 20; break; case NubiaQualityEnum.Excellente: mArBoost++; mHitsMax += 40; break; case NubiaQualityEnum.Maitre: mArBoost++; mHitsMax += 60; break; } }
public static BaseRessource getRessource(NubiaRessource res) { switch (res) { case NubiaRessource.Amanida: return(new BoisAmanida()); case NubiaRessource.Ancien: return(new OsAncien()); case NubiaRessource.Animaux: return(new OsAnimaux()); case NubiaRessource.Arachnique: return(new OsArachnique()); case NubiaRessource.Ardent: return(new OsArdent()); case NubiaRessource.Balron: return(new CuirBalron()); case NubiaRessource.Blub: return(new OsBlub()); case NubiaRessource.Bois: return(new BoisNormal()); case NubiaRessource.Caoba: return(new BoisCaoba()); case NubiaRessource.Carriate: return(new MetalCarriate()); case NubiaRessource.Celeste: return(new OsCeleste()); case NubiaRessource.Celiar: return(new MetalCeliar()); case NubiaRessource.Centorius: return(new OsCentorius()); case NubiaRessource.Chair: return(new CuirChair()); case NubiaRessource.Classique: return(new CuirClassique()); case NubiaRessource.Coton: return(new TissuCoton()); case NubiaRessource.Demoniaque: return(new CuirDemoniaque()); case NubiaRessource.Desertique: return(new OsDesertique()); case NubiaRessource.Detracteur: return(new OsDetracteur()); case NubiaRessource.Divarium: return(new MetalDivarium()); case NubiaRessource.Drachior: return(new MetalDrachior()); case NubiaRessource.Draconique: return(new CuirDraconique()); case NubiaRessource.Estiu: return(new BoisEstiu()); case NubiaRessource.Feerique: return(new OsFeerique()); case NubiaRessource.Fer: return(new MetalFer()); case NubiaRessource.Feu: return(new OsFeu()); case NubiaRessource.Firatas: return(new MetalFiratas()); case NubiaRessource.Floreas: return(new MetalFloreas()); case NubiaRessource.Fosc: return(new BoisFosc()); case NubiaRessource.Gargouille: return(new OsGargouille()); case NubiaRessource.Gargoulien: return(new CuirGargoulien()); case NubiaRessource.Geant: return(new CuirGeant()); case NubiaRessource.Givre: return(new CuirGivre()); case NubiaRessource.Glacera: return(new BoisGlacera()); case NubiaRessource.Glarias: return(new MetalGlarias()); case NubiaRessource.Harpie: return(new OsHarpie()); case NubiaRessource.Hydro: return(new CuirHydro()); case NubiaRessource.Laine: return(new TissuLaine()); case NubiaRessource.Legendaire: return(new CuirLegendaire()); case NubiaRessource.Lin: return(new TissuLin()); case NubiaRessource.Lonaris: return(new MetalLonaris()); case NubiaRessource.Lupus: return(new CuirLupus()); case NubiaRessource.Malatia: return(new BoisMalatia()); case NubiaRessource.Maritime: return(new CuirMaritime()); case NubiaRessource.Morcith: return(new OsMorcith()); case NubiaRessource.Morgalin: return(new OsMorgalin()); case NubiaRessource.Mythique: return(new OsMythique()); case NubiaRessource.Mythril: return(new MetalMythril()); case NubiaRessource.Nafarite: return(new MetalNafarite()); case NubiaRessource.Nethar: return(new MetalNethar()); case NubiaRessource.Nirior: return(new MetalNirior()); case NubiaRessource.Noctar: return(new BoisNoctar()); case NubiaRessource.Nordique: return(new CuirNordique()); case NubiaRessource.Ophidian: return(new CuirOphidian()); case NubiaRessource.Orafir: return(new MetalOrafir()); case NubiaRessource.Oragite: return(new MetalOragite()); case NubiaRessource.Palerias: return(new MetalPalerias()); case NubiaRessource.Pierre: return(new CuirPierre()); case NubiaRessource.Rageur: return(new CuirRageur()); case NubiaRessource.Rautour: return(new CuirRautour()); case NubiaRessource.Remiar: return(new MetalRemiar()); case NubiaRessource.Reptilien: return(new CuirReptilien()); case NubiaRessource.Revarium: return(new MetalRevarium()); case NubiaRessource.Riquesa: return(new BoisRiquesa()); case NubiaRessource.Royal: return(new OsRoyal()); case NubiaRessource.Sang: return(new CuirSang()); case NubiaRessource.Soie: return(new TissuSoie()); case NubiaRessource.Ssins: return(new OsSsins()); case NubiaRessource.Terathan: return(new CuirTerathan()); case NubiaRessource.Trechar: return(new MetalTrechar()); case NubiaRessource.Tyranoeil: return(new OsTyranoeil()); case NubiaRessource.Vela: return(new BoisVela()); case NubiaRessource.Vengeur: return(new OsVengeur()); case NubiaRessource.Verate: return(new MetalVerate()); case NubiaRessource.Verdan: return(new MetalVerdan()); case NubiaRessource.Vespre: return(new BoisVespre()); case NubiaRessource.Volcanique: return(new CuirVolcanique()); } return(null); }
public BaseCuir(NubiaRessource _cuir) : this(_cuir, 1) { }
public static NubiaInfoRessource GetInfoRessource(NubiaRessource res) { NubiaInfoRessource infos = new NubiaInfoRessource(); switch (res) { #region tissu case NubiaRessource.Lin: infos.Name = "Lin"; infos.Durabilite = 1; infos.GlobalAR = 0; infos.BonusAttaque = 0; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Coton: infos.Name = "Coton"; infos.Durabilite = 2; infos.GlobalAR = 0; infos.BonusAttaque = 0; infos.BonusDegat = 0; infos.Diff = 14; break; case NubiaRessource.Laine: infos.Name = "Laine"; infos.Durabilite = 1; infos.GlobalAR = 0; infos.BonusAttaque = 0; infos.BonusDegat = 0; infos.Diff = 14; break; case NubiaRessource.Soie: infos.Name = "Soie"; infos.Durabilite = 5; infos.GlobalAR = 0; infos.BonusAttaque = 0; infos.BonusDegat = 0; infos.Diff = 18; break; #endregion #region metal ///// +1 case NubiaRessource.Verdan: infos.Name = "Verdan"; infos.Durabilite = 1; infos.Hue = 1417; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Carriate: infos.Name = "Carriate"; infos.Durabilite = 1; infos.Hue = 2034; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Remiar: infos.Name = "Remiar"; infos.Durabilite = 1; infos.Hue = 2188; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Orafir: infos.Name = "Orafir"; infos.Durabilite = 1; infos.Hue = 1946; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Mythril: infos.Name = "Mythril"; infos.Durabilite = 1.5; infos.Hue = 2263; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 1; infos.Diff = 13; break; //// +2 case NubiaRessource.Nafarite: infos.Name = "Nafarite"; infos.Durabilite = 1.5; infos.Hue = 2176; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceAcide = 2; break; case NubiaRessource.Revarium: infos.Name = "Rêvarium"; infos.Durabilite = 1.5; infos.Hue = 2172; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 15; infos.ResistanceEnergie = 2; break; case NubiaRessource.Trechar: infos.Name = "Trechar"; infos.Durabilite = 1.5; infos.Hue = 2171; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 15; infos.ResistanceEnergie = 2; break; case NubiaRessource.Floreas: infos.Name = "Floreas"; infos.Durabilite = 1.5; infos.Hue = 1948; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceFeu = 2; break; /// +4 case NubiaRessource.Oragite: infos.Name = "Oragite"; infos.Durabilite = 2; infos.Hue = 2033; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Lonaris: infos.Name = "Lonaris"; infos.Durabilite = 2; infos.Hue = 1942; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Celiar: infos.Name = "Celiar"; infos.Durabilite = 2; infos.Hue = 2051; infos.GlobalAR = 4; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 17; infos.ResistanceFroid = 1; break; case NubiaRessource.Firatas: infos.Name = "Firatas"; infos.Durabilite = 2; infos.Hue = 1945; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; break; case NubiaRessource.Verate: infos.Name = "Vérate"; infos.Durabilite = 2; infos.Hue = 2173; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; ////+5 case NubiaRessource.Drachior: infos.Name = "Drachior"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; case NubiaRessource.Glarias: infos.Name = "Glarias"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 2; infos.Diff = 18; infos.ResistanceFeu = 3; infos.ResistanceEnergie = 3; infos.ResistanceAcide = 3; infos.ResistanceFroid = 3; break; case NubiaRessource.Nethar: infos.Name = "Nethar"; infos.Durabilite = 3; infos.Hue = 1940; infos.GlobalAR = 5; infos.BonusAttaque = 3; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFroid = 3; break; case NubiaRessource.Divarium: infos.Name = "Divarium"; infos.Durabilite = 3; infos.Hue = 1953; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Palerias: infos.Name = "Palerias"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 4; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Nirior: infos.Name = "Nirior"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 4; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; #endregion #region Cuir //+1 case NubiaRessource.Ophidian: infos.Name = "Ophidian"; infos.Durabilite = 1; infos.Hue = 1417; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Demoniaque: infos.Name = "Démoniaque"; infos.Durabilite = 1; infos.Hue = 1417; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Sang: infos.Name = "Sang"; infos.Durabilite = 1; infos.Hue = 2034; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Rageur: infos.Name = "Rageur"; infos.Durabilite = 1; infos.Hue = 1946; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Gargoulien: infos.Name = "Gargoulien"; infos.Durabilite = 1.5; infos.Hue = 2263; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 1; infos.Diff = 13; break; //+2 case NubiaRessource.Lupus: infos.Name = "Lupus"; infos.Durabilite = 1.5; infos.Hue = 2176; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceAcide = 2; break; case NubiaRessource.Maritime: infos.Name = "Maritime"; infos.Durabilite = 1.5; infos.Hue = 2172; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 15; infos.ResistanceEnergie = 2; break; case NubiaRessource.Givre: infos.Name = "Givre"; infos.Durabilite = 1.5; infos.Hue = 1948; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceFeu = 2; break; //+4 case NubiaRessource.Chair: infos.Name = "Chair"; infos.Durabilite = 2; infos.Hue = 2033; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Balron: infos.Name = "Balron"; infos.Durabilite = 2; infos.Hue = 1942; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Reptilien: infos.Name = "Reptilien"; infos.Durabilite = 2; infos.Hue = 2051; infos.GlobalAR = 4; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 17; infos.ResistanceFroid = 1; break; case NubiaRessource.Terathan: infos.Name = "Terathan"; infos.Durabilite = 2; infos.Hue = 1945; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; break; case NubiaRessource.Draconique: infos.Name = "Draconique"; infos.Durabilite = 2; infos.Hue = 2173; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; //+5 case NubiaRessource.Geant: infos.Name = "Géant"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; case NubiaRessource.Rautour: infos.Name = "Rautour"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 2; infos.Diff = 18; infos.ResistanceFeu = 3; infos.ResistanceEnergie = 3; infos.ResistanceAcide = 3; infos.ResistanceFroid = 3; break; case NubiaRessource.Pierre: infos.Name = "Pierre"; infos.Durabilite = 3; infos.Hue = 1940; infos.GlobalAR = 5; infos.BonusAttaque = 3; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFroid = 3; break; case NubiaRessource.Legendaire: infos.Name = "Légendaire"; infos.Durabilite = 3; infos.Hue = 1953; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Nordique: infos.Name = "Nordique"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 4; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Volcanique: infos.Name = "Volcanique"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 4; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; case NubiaRessource.Hydro: infos.Name = "Hydro"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 1; infos.BonusDegat = 4; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; #endregion #region Os case NubiaRessource.Morcith: infos.Name = "Morcith"; infos.Durabilite = 1; infos.Hue = 1417; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Ardent: infos.Name = "Ardent"; infos.Durabilite = 1; infos.Hue = 2034; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Desertique: infos.Name = "Désertique"; infos.Durabilite = 1; infos.Hue = 2188; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 12; break; case NubiaRessource.Harpie: infos.Name = "Harpie"; infos.Durabilite = 1; infos.Hue = 1946; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 12; break; case NubiaRessource.Ssins: infos.Name = "Ssins"; infos.Durabilite = 1.5; infos.Hue = 2263; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 1; infos.Diff = 13; break; // +2 case NubiaRessource.Tyranoeil: infos.Name = "Tyranoeil"; infos.Durabilite = 1.5; infos.Hue = 2176; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceAcide = 2; break; case NubiaRessource.Gargouille: infos.Name = "Gargouille"; infos.Durabilite = 1.5; infos.Hue = 2172; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 15; infos.ResistanceEnergie = 2; break; case NubiaRessource.Blub: infos.Name = "Blub"; infos.Durabilite = 1.5; infos.Hue = 2171; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 15; infos.ResistanceEnergie = 2; break; case NubiaRessource.Vengeur: infos.Name = "Vengeur"; infos.Durabilite = 1.5; infos.Hue = 1948; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 15; infos.ResistanceFeu = 2; break; // +4 case NubiaRessource.Centorius: infos.Name = "Centorius"; infos.Durabilite = 2; infos.Hue = 2033; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Detracteur: infos.Name = "Détracteur"; infos.Durabilite = 2; infos.Hue = 1942; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceEnergie = 1; break; case NubiaRessource.Arachnique: infos.Name = "Arachnique"; infos.Durabilite = 2; infos.Hue = 2051; infos.GlobalAR = 4; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 17; infos.ResistanceFroid = 1; break; case NubiaRessource.Feerique: infos.Name = "Féerique"; infos.Durabilite = 2; infos.Hue = 1945; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; break; case NubiaRessource.Feu: infos.Name = "Feu"; infos.Durabilite = 2; infos.Hue = 2173; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 17; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; // +5 case NubiaRessource.Morgalin: infos.Name = "Morgalin"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; case NubiaRessource.Celeste: infos.Name = "Céleste"; infos.Durabilite = 3; infos.Hue = 2158; infos.GlobalAR = 5; infos.BonusAttaque = 2; infos.BonusDegat = 2; infos.Diff = 18; infos.ResistanceFeu = 3; infos.ResistanceEnergie = 3; infos.ResistanceAcide = 3; infos.ResistanceFroid = 3; break; case NubiaRessource.Mythique: infos.Name = "Mythique"; infos.Durabilite = 3; infos.Hue = 1940; infos.GlobalAR = 5; infos.BonusAttaque = 3; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFroid = 3; break; case NubiaRessource.Ancien: infos.Name = "Ancien"; infos.Durabilite = 3; infos.Hue = 1953; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 3; infos.Diff = 18; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Royal: infos.Name = "Royal"; infos.Durabilite = 3; infos.Hue = 1944; infos.GlobalAR = 5; infos.BonusAttaque = 4; infos.BonusDegat = 0; infos.Diff = 18; infos.ResistanceFeu = 2; infos.ResistanceEnergie = 2; infos.ResistanceAcide = 2; infos.ResistanceFroid = 2; break; #endregion #region Bois //+1 case NubiaRessource.Vela: infos.Name = "Vëla"; infos.Durabilite = 1; infos.Hue = 2143; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 0; infos.Diff = 15; break; case NubiaRessource.Vespre: infos.Name = "Vèspré"; infos.Durabilite = 1; infos.Hue = 2313; infos.GlobalAR = 1; infos.BonusAttaque = 0; infos.BonusDegat = 1; infos.Diff = 16; break; case NubiaRessource.Malatia: infos.Name = "Malâtia"; infos.Durabilite = 1.5; infos.Hue = 1246; infos.GlobalAR = 1; infos.BonusAttaque = 1; infos.BonusDegat = 1; infos.Diff = 17; break; //+2 case NubiaRessource.Estiu: infos.Name = "Estiù"; infos.Durabilite = 1.5; infos.Hue = 2207; infos.GlobalAR = 2; infos.BonusAttaque = 2; infos.BonusDegat = 1; infos.Diff = 18; infos.ResistanceAcide = 2; break; case NubiaRessource.Fosc: infos.Name = "Fosc"; infos.Durabilite = 1.5; infos.Hue = 2052; infos.GlobalAR = 2; infos.BonusAttaque = 1; infos.BonusDegat = 2; infos.Diff = 19; infos.ResistanceEnergie = 2; break; //+4 case NubiaRessource.Amanida: infos.Name = "Amanida"; infos.Durabilite = 2; infos.Hue = 2186; infos.GlobalAR = 4; infos.BonusAttaque = 3; infos.BonusDegat = 2; infos.Diff = 20; infos.ResistanceEnergie = 1; break; case NubiaRessource.Glacera: infos.Name = "Glacera"; infos.Durabilite = 2; infos.Hue = 2049; infos.GlobalAR = 4; infos.BonusAttaque = 2; infos.BonusDegat = 3; infos.Diff = 22; infos.ResistanceFroid = 1; break; //+5 case NubiaRessource.Noctar: infos.Name = "Noctar"; infos.Durabilite = 3; infos.Hue = 2041; infos.GlobalAR = 5; infos.BonusAttaque = 0; infos.BonusDegat = 3; infos.Diff = 24; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Riquesa: infos.Name = "Riquësa"; infos.Durabilite = 3; infos.Hue = 2062; infos.GlobalAR = 5; infos.BonusAttaque = 4; infos.BonusDegat = 0; infos.Diff = 26; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; case NubiaRessource.Caoba: infos.Name = "Caôba"; infos.Durabilite = 3; infos.Hue = 2153; infos.GlobalAR = 4; infos.BonusAttaque = 5; infos.BonusDegat = 2; infos.Diff = 28; infos.ResistanceFeu = 1; infos.ResistanceEnergie = 1; infos.ResistanceAcide = 1; infos.ResistanceFroid = 1; break; #endregion } return(infos); }
public override bool checkRessource(NubiaRessource res) { return(NubiaInfoRessource.GetRessourceType(res) == NubiaRessourceType.Bois); }
public virtual bool checkRessource(NubiaRessource res) { return(false); }