From 292d4c9f4e733d752e318e0574fb2cbdf53a625f Mon Sep 17 00:00:00 2001 From: Michael Holtan Date: Fri, 26 Feb 2021 16:07:09 -0600 Subject: [PATCH] Fix Issue #45 "Reapers don't require tech lab anymore" --- src/blueprints/Blueprint.cpp | 2 +- src/core/API.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/blueprints/Blueprint.cpp b/src/blueprints/Blueprint.cpp index c676077..c459dca 100644 --- a/src/blueprints/Blueprint.cpp +++ b/src/blueprints/Blueprint.cpp @@ -99,11 +99,11 @@ std::shared_ptr Blueprint::Plot(sc2::ABILITY_ID ability_) { sc2::UNIT_TYPEID::TERRAN_FACTORYTECHLAB); case sc2::ABILITY_ID::TRAIN_MARINE: + case sc2::ABILITY_ID::TRAIN_REAPER: return std::make_shared(sc2::UNIT_TYPEID::TERRAN_BARRACKS); case sc2::ABILITY_ID::TRAIN_GHOST: case sc2::ABILITY_ID::TRAIN_MARAUDER: - case sc2::ABILITY_ID::TRAIN_REAPER: return std::make_shared( sc2::UNIT_TYPEID::TERRAN_BARRACKS, sc2::UNIT_TYPEID::TERRAN_BARRACKSTECHLAB); diff --git a/src/core/API.cpp b/src/core/API.cpp index c88d642..23d790e 100644 --- a/src/core/API.cpp +++ b/src/core/API.cpp @@ -209,7 +209,6 @@ sc2::UnitTypeData Observer::GetUnitTypeData(sc2::UNIT_TYPEID id_) const { break; case sc2::UNIT_TYPEID::TERRAN_MARAUDER: - case sc2::UNIT_TYPEID::TERRAN_REAPER: data.tech_requirement = sc2::UNIT_TYPEID::TERRAN_BARRACKSTECHLAB; break;