summaryrefslogtreecommitdiff
path: root/src/tool.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool.h')
-rw-r--r--src/tool.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tool.h b/src/tool.h
index 401bb1f53..a92a77294 100644
--- a/src/tool.h
+++ b/src/tool.h
@@ -82,11 +82,14 @@ struct DigParams
float time;
// Caused wear
u16 wear;
+ std::string main_group;
- DigParams(bool a_diggable=false, float a_time=0, u16 a_wear=0):
+ DigParams(bool a_diggable=false, float a_time=0, u16 a_wear=0,
+ std::string a_main_group=""):
diggable(a_diggable),
time(a_time),
- wear(a_wear)
+ wear(a_wear),
+ main_group(a_main_group)
{}
};
@@ -100,10 +103,12 @@ struct HitParams
{
s16 hp;
s16 wear;
+ std::string main_group;
- HitParams(s16 hp_=0, s16 wear_=0):
+ HitParams(s16 hp_=0, s16 wear_=0, std::string main_group_=""):
hp(hp_),
- wear(wear_)
+ wear(wear_),
+ main_group(main_group_)
{}
};
@@ -118,6 +123,7 @@ struct PunchDamageResult
bool did_punch;
int damage;
int wear;
+ std::string main_group;
PunchDamageResult():
did_punch(false),