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); } }
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); } }
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); } }
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); } }