summaryrefslogtreecommitdiffstats
path: root/source/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-07 22:06:30 +0200
committermadmaxoft <github@xoft.cz>2013-09-07 22:06:30 +0200
commitd31142811db9073b7b01b834ca3bf82f6bceb4a9 (patch)
tree9988b872e675a082253126b9ff292070e913b1cd /source/BlockID.cpp
parentFixed a missing initialization in cMonster. (diff)
parentAdded a (disabled) block logging to projectile path-tracing. (diff)
downloadcuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar.gz
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar.bz2
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar.lz
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar.xz
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.tar.zst
cuberite-d31142811db9073b7b01b834ca3bf82f6bceb4a9.zip
Diffstat (limited to 'source/BlockID.cpp')
-rw-r--r--source/BlockID.cpp39
1 files changed, 22 insertions, 17 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp
index b53507f17..793e5e523 100644
--- a/source/BlockID.cpp
+++ b/source/BlockID.cpp
@@ -419,6 +419,7 @@ AString DamageTypeToString(eDamageType a_DamageType)
switch (a_DamageType)
{
case dtAttack: return "dtAttack";
+ case dtRangedAttack: return "dtRangedAttack";
case dtLightning: return "dtLightning";
case dtFalling: return "dtFalling";
case dtDrowning: return "dtDrowning";
@@ -463,6 +464,7 @@ eDamageType StringToDamageType(const AString & a_DamageTypeString)
{
// Cannonical names:
{ dtAttack, "dtAttack"},
+ { dtRangedAttack, "dtRangedAttack"},
{ dtLightning, "dtLightning"},
{ dtFalling, "dtFalling"},
{ dtDrowning, "dtDrowning"},
@@ -478,23 +480,26 @@ eDamageType StringToDamageType(const AString & a_DamageTypeString)
{ dtAdmin, "dtAdmin"},
// Common synonyms:
- { dtPawnAttack, "dtAttack"},
- { dtEntityAttack, "dtAttack"},
- { dtMob, "dtAttack"},
- { dtMobAttack, "dtAttack"},
- { dtFall, "dtFalling"},
- { dtDrown, "dtDrowning"},
- { dtSuffocation, "dtSuffocating"},
- { dtStarvation, "dtStarving"},
- { dtHunger, "dtStarving"},
- { dtCactus, "dtCactusContact"},
- { dtCactuses, "dtCactusContact"},
- { dtCacti, "dtCactusContact"},
- { dtLava, "dtLavaContact"},
- { dtPoison, "dtPoisoning"},
- { dtBurning, "dtOnFire"},
- { dtInFire, "dtFireContact"},
- { dtPlugin, "dtAdmin"},
+ { dtAttack, "dtPawnAttack"},
+ { dtAttack, "dtEntityAttack"},
+ { dtAttack, "dtMob"},
+ { dtAttack, "dtMobAttack"},
+ { dtRangedAttack, "dtArrowAttack"},
+ { dtRangedAttack, "dtArrow"},
+ { dtRangedAttack, "dtProjectile"},
+ { dtFalling, "dtFall"},
+ { dtDrowning, "dtDrown"},
+ { dtSuffocating, "dtSuffocation"},
+ { dtStarving, "dtStarvation"},
+ { dtStarving, "dtHunger"},
+ { dtCactusContact, "dtCactus"},
+ { dtCactusContact, "dtCactuses"},
+ { dtCactusContact, "dtCacti"},
+ { dtLavaContact, "dtLava"},
+ { dtPoisoning, "dtPoison"},
+ { dtOnFire, "dtBurning"},
+ { dtFireContact, "dtInFire"},
+ { dtAdmin, "dtPlugin"},
} ;
for (int i = 0; i < ARRAYCOUNT(DamageTypeMap); i++)
{