diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-02 05:37:35 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-02 05:37:35 +0200 |
commit | 147a491a8c57a2d33b5a65b310b5b948e873db10 (patch) | |
tree | cfec2aed893835d14cc23c835a93c8bf33c5b06c | |
parent | 452dd304e008c4844ff2e923ff16a6f540ffe87d (diff) | |
download | hercules-147a491a8c57a2d33b5a65b310b5b948e873db10.tar.gz hercules-147a491a8c57a2d33b5a65b310b5b948e873db10.tar.bz2 hercules-147a491a8c57a2d33b5a65b310b5b948e873db10.tar.xz hercules-147a491a8c57a2d33b5a65b310b5b948e873db10.zip |
Make DamageType defaults to NK_NONE
-rw-r--r-- | db/pre-re/skill_db.conf | 2 | ||||
-rw-r--r-- | db/re/skill_db.conf | 2 | ||||
-rw-r--r-- | src/map/skill.c | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/db/pre-re/skill_db.conf b/db/pre-re/skill_db.conf index 446df3c86..36b877f94 100644 --- a/db/pre-re/skill_db.conf +++ b/db/pre-re/skill_db.conf @@ -87,7 +87,7 @@ "Ele_Weapon" - Uses weapon's element. "Ele_Endowed" - Uses Endowed element. "Ele_Random" - Uses random element. - DamageType: { (bool, default to "NoDamage") + DamageType: { (bool, default to "NK_NONE") NoDamage: true/false No damage skill SplashArea: true/false Has splash area (requires source modification) SplitDamage: true/false Damage should be split among targets (requires 'SplashArea' in order to work) diff --git a/db/re/skill_db.conf b/db/re/skill_db.conf index ecca6e2e4..467dd0c38 100644 --- a/db/re/skill_db.conf +++ b/db/re/skill_db.conf @@ -87,7 +87,7 @@ "Ele_Weapon" - Uses weapon's element. "Ele_Endowed" - Uses Endowed element. "Ele_Random" - Uses random element. - DamageType: { (bool, default to "NoDamage") + DamageType: { (bool, default to "NK_NONE") NoDamage: true/false No damage skill SplashArea: true/false Has splash area (requires source modification) SplitDamage: true/false Damage should be split among targets (requires 'SplashArea' in order to work) diff --git a/src/map/skill.c b/src/map/skill.c index 25d10b825..24fbe7892 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -21208,9 +21208,6 @@ static void skill_validate_damagetype(struct config_setting_t *conf, struct s_sk } } } - - if (sk->nk == NK_NONE) - sk->nk = NK_NO_DAMAGE; } /** |