From 0d32e0d3342ef2455014c8e1164977c816763317 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 21 Nov 2023 16:26:34 -0500 Subject: Added rudimentary item creation --- src/utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 9d22a66..ca4adee 100644 --- a/src/utils.h +++ b/src/utils.h @@ -81,6 +81,8 @@ namespace utils { int parseInt(const std::string& s); + double parseDouble(const std::string& s); + template std::shared_ptr loadDFromJson(const nlohmann::json& data) { nlohmann::json j = data; try { @@ -123,7 +125,7 @@ namespace utils { const std::map cpValue { {"cp", 1}, {"sp", 10}, - {"ep", 50}, + //{"ep", 50}, {"gp", 100}, {"pp", 1000} }; -- cgit v1.2.3