aboutsummaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2023-11-21 16:26:34 -0500
committerYour Name <you@example.com>2023-11-21 16:26:34 -0500
commit0d32e0d3342ef2455014c8e1164977c816763317 (patch)
tree0e0a445332accf0eda8f23fe586f614844bee463 /src/utils.h
parent5678a600b7d1ec4e79724258dfefe45a49258ea3 (diff)
downloaddmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.gz
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.tar.bz2
dmtool-0d32e0d3342ef2455014c8e1164977c816763317.zip
Added rudimentary item creation
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h4
1 files changed, 3 insertions, 1 deletions
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<typename S, typename D> std::shared_ptr<S> loadDFromJson(const nlohmann::json& data) {
nlohmann::json j = data;
try {
@@ -123,7 +125,7 @@ namespace utils {
const std::map<std::string, int> cpValue {
{"cp", 1},
{"sp", 10},
- {"ep", 50},
+ //{"ep", 50},
{"gp", 100},
{"pp", 1000}
};