Exemplo n.º 1
0
 public Armour MonsterTradeArmourResponse(TradeStore tradeStore)
 {
     if (Gold >= tradeStore.ArmourSlotPrice1)
     {
         Gold = Gold - tradeStore.ArmourSlotPrice1;
         return(Armour.WETSUIT);
     }
     else if (Gold >= tradeStore.ArmourSlotPrice2)
     {
         Gold = Gold - tradeStore.ArmourSlotPrice2;
         return(Armour.HELMET);
     }
     else if (Gold >= tradeStore.ArmourSlotPrice3)
     {
         Gold = Gold - tradeStore.ArmourSlotPrice3;
         return(Armour.CHESTPLATE);
     }
     else
     {
         return(Armour.NONE);
     }
 }
Exemplo n.º 2
0
 public Weapons MonsterTradeWeaponResponse(TradeStore tradeStore)
 {
     if (Gold >= 75)
     {
         Gold = Gold - 75;
         return(Weapons.WATERCANON);
     }
     else if (Gold >= 50)
     {
         Gold = Gold - 50;
         return(Weapons.BEAMRAY);
     }
     else if (Gold > 25)
     {
         Gold = Gold - 25;
         return(Weapons.CATAPULT);
     }
     else
     {
         return(Weapons.NONE);
     }
 }
Exemplo n.º 3
0
 public Weapons MonsterTradeWeaponResponse(TradeStore tradeStore)
 {
     if (Gold >= tradeStore.WeaponSlotPrice1)
     {
         Gold = Gold - tradeStore.WeaponSlotPrice1;
         return(Weapons.WATERCANON);
     }
     else if (Gold >= tradeStore.WeaponSlotPrice2)
     {
         Gold = Gold - tradeStore.WeaponSlotPrice2;
         return(Weapons.BEAMRAY);
     }
     else if (Gold > tradeStore.WeaponSlotPrice3)
     {
         Gold = Gold - tradeStore.WeaponSlotPrice3;
         return(Weapons.CATAPULT);
     }
     else
     {
         return(Weapons.NONE);
     }
 }
Exemplo n.º 4
0
 public Armour MonsterTradeArmourResponse(TradeStore tradeStore)
 {
     if (Gold > 75)
     {
         Gold = Gold - 75;
         return(Armour.WETSUIT);
     }
     else if (Gold > 50)
     {
         Gold = Gold - 50;
         return(Armour.HELMET);
     }
     else if (Gold > 25)
     {
         Gold = Gold - 25;
         return(Armour.CHESTPLATE);
     }
     else
     {
         return(Armour.NONE);
     }
 }