From 994803e01f06c22d9f8a1669b115b1301fd15aab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hannes=20J=C3=A4mtner?= <hanja189@student.liu.se>
Date: Thu, 23 Jul 2020 09:32:49 +0200
Subject: [PATCH] Added effect radius function

---
 docs/idabot.rst            | 4 ++++
 python-api-src/library.cpp | 1 +
 2 files changed, 5 insertions(+)

diff --git a/docs/idabot.rst b/docs/idabot.rst
index 076123fcc..94e9927e7 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 77728c644..09e506701 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)
-- 
GitLab