Beispiel #1
0
 static public int Tbv_TradeFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }
Beispiel #2
0
 static public int Tsv_Trade2XSelling(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0)
     {
         return((int)(ce.Value * 2.0f / cookedFoodDivisor));
     }
     else if (ce.GetAttribute(TAG.PET) > 0)
     {
         return((int)(ce.Value * petSellMultiplier));
     }
     else
     {
         return((int)(ce.Value * 2.0f));
     }
 }
Beispiel #3
0
 static public int Tbv_TradeWoodBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPet(ce));
     }
     else if (ce.GetAttribute(TAG.WOOD) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * defaultBuyMultiplier));
     }
 }
Beispiel #4
0
 static public int Tbv_TradeNightDemonsFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.MELEE_WEAPON) > 0 ||
              ce.GetAttribute(TAG.RANGE_WEAPON) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }
Beispiel #5
0
 static public int Tbv_TradeTinkerersFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.OBSIDIAN) > 0 ||
              ce.GetAttribute(TAG.BOAR) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * defaultBuyMultiplier));
     }
 }
Beispiel #6
0
 static public int Tbv_TradeEarthboundFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.DRYAD_WOOD) > 0 ||
              ce.GetAttribute(TAG.DARK_WOOD) > 0 ||
              ce.GetAttribute(TAG.ELVEN_WOOD) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }
Beispiel #7
0
 static public int Tbv_TradeElderKinBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.GOLD) > 0 ||
              ce.GetAttribute(TAG.SILVER) > 0 ||
              ce.GetAttribute(TAG.STEEL) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * defaultBuyMultiplier));
     }
 }
Beispiel #8
0
 static int BuingCookedFoodAndPetFriendly(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0)
     {
         return((int)(ce.Value * friendlyBuyMultiplier / cookedFoodDivisor));
     }
     else
     {
         return((int)(ce.Value * petBuyMultiplier));
     }
 }
Beispiel #9
0
 static public int Tbv_TradeAlphaClansBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPet(ce));
     }
     else if (ce.GetAttribute(TAG.DRYAD_WOOD) > 0 ||
              ce.GetAttribute(TAG.DARK_WOOD) > 0 ||
              ce.GetAttribute(TAG.ELVEN_WOOD) > 0 ||
              ce.GetAttribute(TAG.GOLD) > 0 ||
              ce.GetAttribute(TAG.SILVER) > 0 ||
              ce.GetAttribute(TAG.STEEL) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * defaultBuyMultiplier));
     }
 }
Beispiel #10
0
 static public int Tbv_TradeRoamersBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPet(ce));
     }
     else if (ce.GetAttribute(TAG.MELEE_WEAPON) > 0 ||
              ce.GetAttribute(TAG.RANGE_WEAPON) > 0 ||
              ce.GetAttribute(TAG.ARMOUR) > 0 ||
              ce.GetAttribute(TAG.SHIELD) > 0)
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * defaultBuyMultiplier));
     }
 }
Beispiel #11
0
 static public int Tbv_TradeWaterDemonsFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.CHILD) > 0 ||
              ce.GetAttribute(TAG.CLAY) > 0 ||
              ce.GetAttribute(TAG.QUARTZ) > 0 ||
              ce.GetAttribute(TAG.GRANITE) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }
Beispiel #12
0
 static public int Tbv_TradeForestDemonsFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.MALACHITE) > 0 ||
              ce.GetAttribute(TAG.TOPAZ) > 0 ||
              ce.GetAttribute(TAG.RUBY) > 0 ||
              ce.GetAttribute(TAG.BEAST) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }
Beispiel #13
0
 static public int Tbv_TradeShadowKinFriendlyBuying(ClientEntity ce)
 {
     if (ce.GetAttribute(TAG.COOKED_FOOD) > 0 ||
         ce.GetAttribute(TAG.PET) > 0)
     {
         return(BuingCookedFoodAndPetFriendly(ce));
     }
     else if (ce.GetAttribute(TAG.SWORD_1H) > 0 ||
              ce.GetAttribute(TAG.SWORD_2H) > 0 ||
              ce.GetAttribute(TAG.POLEARM_1H) > 0 ||
              ce.GetAttribute(TAG.POLEARM_2H) > 0)
     {
         return((int)(ce.Value * lovedBuyMultiplier));
     }
     else
     {
         return((int)(ce.Value * friendlyBuyMultiplier));
     }
 }