// Token: 0x06000BBA RID: 3002 RVA: 0x00097A88 File Offset: 0x00095E88 private string effectName(specType type) { switch (type) { case specType.EnergyPower2: return("Energy Power"); case specType.MagicPower2: return("Magic Power"); case specType.EnergyPerBar2: return("Energy Bars"); case specType.MagicPerBar2: return("Magic Bars"); case specType.EnergyCap: return("Energy Cap"); case specType.MagicCap: return("Magic Cap"); default: switch (type) { case specType.EnergyPerBar: return("Energy Bars"); case specType.MagicPerBar: return("Magic Bars"); default: switch (type) { case specType.EnergyPower: return("Energy Power"); case specType.MagicPower: return("Magic Power"); } return(type.ToString()); case specType.AdvTraining: return("Advanced Training"); } } }
// Token: 0x06000BBB RID: 3003 RVA: 0x00097B40 File Offset: 0x00095F40 private float effectBonus(float amount, specType type) { switch (type) { case specType.BoostRecycle: return(amount / 10f); default: if (type != specType.Looting) { return(amount); } return(amount / 10f); case specType.Wandoos98: return(amount / 100f); case specType.AdvTraining: return(amount / 100f); case specType.Cooldown: return(amount / 100f); case specType.EnergyPower2: return(amount / 10f); case specType.MagicPower2: return(amount / 10f); case specType.EnergyPerBar2: return(amount / 10f); case specType.MagicPerBar2: return(amount / 10f); case specType.EnergyCap: return(amount / 100f); case specType.MagicCap: return(amount / 100f); } }
// Token: 0x06000BAC RID: 2988 RVA: 0x00096FB0 File Offset: 0x000953B0 public float specBonus(specType type) { float num = 0f; if (this.spec1Type == specType.None) { return(num); } if (this.spec1Type == type) { num += this.spec1Cur; } if (this.spec2Type == type) { num += this.spec2Cur; } if (this.spec3Type == type) { num += this.spec3Cur; } return(num); }
static void AddProduct() { ProductService productService = ServiceProvider.getProductService(); productType product = new productType(); product.categoryCode = "aaa"; product.title = "Test Ürünüdür"; specType brandSpec = new specType(); brandSpec.name = "Marka"; brandSpec.type = "Combo"; brandSpec.value = "Nokia"; brandSpec.required = true; specType modelSpec = new specType(); modelSpec.name = "Model"; modelSpec.type = "Combo"; modelSpec.value = "N73"; modelSpec.required = true; specType statusSpec = new specType(); statusSpec.name = "Durumu"; statusSpec.type = "Combo"; statusSpec.value = "Sıfır"; statusSpec.required = true; specType guaranteeSpec = new specType(); guaranteeSpec.name = "Garantisi"; guaranteeSpec.type = "Combo"; guaranteeSpec.value = "Yok"; guaranteeSpec.required = true; specType[] specTypeArray = new specType[4]; specTypeArray[0] = brandSpec; specTypeArray[1] = modelSpec; specTypeArray[2] = statusSpec; specTypeArray[3] = guaranteeSpec; product.specs = specTypeArray; // set ProductPhoto photoType photo = new photoType(); photo.photoId = 0; photo.photoIdSpecified = true; photo.url = "http://img2.blogcu.com/images/o/r/g/orgudunyam1/cilek.jpg"; photoType[] photoTypeArray = new photoType[1]; photoTypeArray[0] = photo; product.photos = photoTypeArray; product.pageTemplate = 1; product.pageTemplateSpecified = true; product.description = "Test ürünü açıklaması"; product.format = "S"; //product.startPrice = 3.50; //product.startPriceSpecified = true; product.buyNowPrice = 49.50; product.buyNowPriceSpecified = true; product.listingDays = 30; product.listingDaysSpecified = true; product.productCount = 1; product.productCountSpecified = true; // set CargoDetail cargoDetailType cargoDetail = new cargoDetailType(); cargoDetail.city = "34"; String[] cargoCompany = new String[3]; cargoCompany[0] = "aras"; cargoCompany[1] = "mng"; cargoDetail.cargoCompanies = cargoCompany; cargoCompanyDetailType cargoCompanyDetailType = new cargoCompanyDetailType(); cargoCompanyDetailType.cityPrice = "3.00"; cargoCompanyDetailType.countryPrice = "5.00"; cargoDetail.shippingPayment = "B"; cargoDetail.shippingWhere = "city"; product.cargoDetail = cargoDetail; product.affiliateOption = false; product.boldOption = false; product.catalogOption = false; product.vitrineOption = false; product.startDate = "2020-02-13 00:00:00"; productServiceResponse response = productService.insertProduct("pc", product, true, false, "tr"); if (response != null && response.ackCode.ToString().Equals("success")) { Console.WriteLine("Result: " + response.result); Console.WriteLine("ProductId: " + response.productId); } else { Console.WriteLine("ErrorId: " + response.error.errorId); Console.WriteLine("ErrorCode: " + response.error.errorCode); Console.WriteLine("ErrorMessage: " + response.error.message); } }
// Token: 0x06000BA8 RID: 2984 RVA: 0x00096738 File Offset: 0x00094B38 public Equipment(part partType, int boss, float curAtk, float capAtk, float curDef, float capDef, specType type1, float cur1, float cap1, specType type2, float cur2, float cap2, specType type3, float cur3, float cap3, string source, int pid) { this.id = pid; this.path = source; this.type = partType; this.curAttack = curAtk; this.capAttack = capAtk; this.curDefense = curDef; this.capDefense = capDef; this.spec1Type = type1; this.spec1Cur = cur1; this.spec1Cap = cap1; this.spec2Type = type2; this.spec2Cur = cur2; this.spec2Cap = cap2; this.spec3Type = type3; this.spec3Cur = cur3; this.spec3Cap = cap3; this.removable = true; this.bossRequired = boss; this.level = 0; }
// Token: 0x06000BB3 RID: 2995 RVA: 0x000974E8 File Offset: 0x000958E8 public void updateItem(int rboss, part ptype, float capatk, float curatk, float capdef, float curdef, specType type1, float capspec1, float curspec1, specType type2, float capspec2, float curspec2, specType type3, float capspec3, float curspec3, string npath, bool punique) { this.bossRequired = rboss; this.capAttack = capatk; this.type = ptype; if (this.curAttack > Math.Floor(this.capAttack * (1f + (float)this.level / 100f))) { this.curAttack = (float)Math.Floor(this.capAttack * (1f + (float)this.level / 100f)); } if (this.curAttack < curatk) { this.curAttack = curatk; } this.capDefense = capdef; if (this.curDefense > Math.Floor(this.capDefense * (1f + (float)this.level / 100f))) { this.curDefense = (float)Math.Floor(this.capDefense * (1f + (float)this.level / 100f)); } if (this.curDefense < curdef) { this.curDefense = curdef; } this.spec1Type = type1; this.spec1Cap = capspec1; float num = (float)Math.Floor(this.spec1Cap * (1f + (float)this.level / 100f)); if (this.spec1Cur > num) { this.spec1Cur = num; } if (this.spec1Cur < curspec1) { this.spec1Cur = curspec1; } this.spec2Type = type2; this.spec2Cap = capspec2; float num2 = (float)Math.Floor(this.spec2Cap * (1f + (float)this.level / 100f)); if (this.spec2Cur > num2) { this.spec2Cur = num2; } if (this.spec2Cur < curspec2) { this.spec2Cur = curspec2; } this.spec3Type = type3; this.spec3Cap = capspec3; float num3 = (float)Math.Floor(this.spec3Cap * (1f + (float)this.level / 100f)); if (this.spec3Cur > num3) { this.spec3Cur = num3; } if (this.spec3Cur < curspec3) { this.spec3Cur = curspec3; } this.path = npath; this.unique = punique; }
// Token: 0x06000BAD RID: 2989 RVA: 0x00097010 File Offset: 0x00095410 public bool hasSpec(specType type) { return(this.spec1Type == type || this.spec2Type == type || this.spec3Type == type); }