From be12876c38a378838f1c83882fd0e263f57cbadf Mon Sep 17 00:00:00 2001 From: ametel01 Date: Sat, 3 Feb 2024 07:51:49 +0800 Subject: [PATCH] fixed bug on fleet build req in colonies --- src/colony/colony.cairo | 6 +++--- src/game/main.cairo | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/colony/colony.cairo b/src/colony/colony.cairo index f5fb43a..e059fe0 100644 --- a/src/colony/colony.cairo +++ b/src/colony/colony.cairo @@ -325,7 +325,7 @@ mod ColonyComponent { ); }, ColonyBuildType::Sparrow => { - Dockyard::scraper_requirements_check(dockyard_level, techs); + Dockyard::sparrow_requirements_check(dockyard_level, techs); self .colony_ships .write( @@ -335,7 +335,7 @@ mod ColonyComponent { ); }, ColonyBuildType::Frigate => { - Dockyard::scraper_requirements_check(dockyard_level, techs); + Dockyard::frigate_requirements_check(dockyard_level, techs); self .colony_ships .write( @@ -345,7 +345,7 @@ mod ColonyComponent { ); }, ColonyBuildType::Armade => { - Dockyard::scraper_requirements_check(dockyard_level, techs); + Dockyard::armade_requirements_check(dockyard_level, techs); self .colony_ships .write( diff --git a/src/game/main.cairo b/src/game/main.cairo index e4116c1..da6a677 100644 --- a/src/game/main.cairo +++ b/src/game/main.cairo @@ -1696,7 +1696,6 @@ mod NoGame { return cost; }, UpgradeType::Ion => { - assert!(!is_testnet, "NoGame: Ion tech not available on testnet realease"); let lab_level = self.compounds_level.read((planet_id, Names::LAB)); let techs = self.get_tech_levels(planet_id); Lab::ion_systems_requirements_check(lab_level, techs); @@ -1913,7 +1912,6 @@ mod NoGame { return cost; }, BuildType::Frigate => { - assert!(!is_testnet, "NoGame: Frigate not available on testnet realease"); let techs = self.get_tech_levels(planet_id); Dockyard::frigate_requirements_check(dockyard_level, techs); let cost = Dockyard::get_ships_cost(quantity, self.get_ships_cost().frigate);