diff --git a/docs/idabot.rst b/docs/idabot.rst index 076123fcc4c464f2424a66db31c1f2c7727482be..94e9927e76f47a410c95475bc473479512bd335e 100644 --- a/docs/idabot.rst +++ b/docs/idabot.rst @@ -83,6 +83,10 @@ IDABot Time in GameLoops to research this upgrade + .. method:: IDABot.effect_radius(self, EffectID) + + Size of the circle the effect impacts + Attributes: .. autoattribute:: minerals diff --git a/python-api-src/library.cpp b/python-api-src/library.cpp index 77728c644fcac6dfe48038615c29cd19a48d5ead..09e5067015fa373382a85cf07039dbf87b1cfc83 100644 --- a/python-api-src/library.cpp +++ b/python-api-src/library.cpp @@ -103,6 +103,7 @@ PYBIND11_MODULE(library, m) .def("upgrade_mineral_cost", &IDABot::UpgradeMineralCost, "Mineral cost of researching the upgrade", "upgrade"_a) .def("upgrade_gas_cost", &IDABot::UpgradeGasCost, "Vespene/gas cost of researching the upgrade", "upgrade"_a) .def("upgrade_research_time", &IDABot::UpgradeResearchTime, "Time in GameLoops to research this upgrade", "upgrade"_a) + .def("effect_radius", &IDABot::RadiusEffect, "Size of the circle the effect impacts", "effect"_a) .def_property_readonly("base_location_manager", &IDABot::Bases) .def_property_readonly("tech_tree", &IDABot::GetTechTree) .def_property_readonly("map_tools", &IDABot::Map)