Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mob_db2 inheritance doc #3327

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions db/mob_db2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ mob_db: (
{
// ================ Mandatory fields ==============================
Id: ID (int)
SpriteName: "SPRITE_NAME" (string)
Name: "Mob name" (string)
SpriteName: "SPRITE_NAME" (string, optional if Inherit: true)
Name: "Mob name" (string, optional if Inherit: true)
// ================ Optional fields ===============================
JName: "Mob name" (string)
Lv: level (int, defaults to 1)
Expand All @@ -54,6 +54,10 @@ mob_db: (
Int: intelligence (int, defaults to 0)
Dex: dexterity (int, defaults to 0)
Luk: luck (int, defaults to 0)
(if Inherit: true,
values default to
the inherited value
from mob_db)
}
ViewRange: view range (int, defaults to 1)
ChaseRange: chase range (int, defaults to 1)
Expand Down Expand Up @@ -92,8 +96,17 @@ mob_db: (
// or
AegisName: (chance, "Option Drop Group")
// ...
(if Inherit: true, values
are inherited and overridden
in sequential order. i.e.,
the first entry will override
Drop1id and Drop1per)
}
DamageTakenRate: damage taken rate (int, defaults to 100)
Inherit: true/false (bool, defaults to false.
When true, inherits the
values from the original
mob_db)
},
**************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -7313,7 +7313,7 @@ static int skill_castend_nodamage_id(struct block_list *src, struct block_list *
map->foreachinrange(skill->area_sub, src, skill->get_splash(skill_id, skill_lv), BL_SKILL|BL_CHAR,
src,skill_id,skill_lv,tick, flag|BCT_ENEMY|1, skill->castend_damage_id);
clif->skill_nodamage (src,src,skill_id,skill_lv,1);
// Initiate 10% of your damage becomes fire element.
// Initiate 20% of your damage becomes fire element.
sc_start4(src, src, SC_SUB_WEAPONPROPERTY, 100, 3, 20, 0, 0, skill->get_time2(skill_id, skill_lv), skill_id);
break;

Expand Down