summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-28 14:17:25 -0300
committerJesusaves <cpntb1@ymail.com>2021-03-28 14:17:25 -0300
commit655301284da462c2b4aa77ad38e9d98b7cc6ef79 (patch)
tree938ed18a7622da00293279803aadcb295b4d5c41
parentb59dd805edc48d4883f277cb80c5156760e19039 (diff)
downloadevol-hercules-655301284da462c2b4aa77ad38e9d98b7cc6ef79.tar.gz
evol-hercules-655301284da462c2b4aa77ad38e9d98b7cc6ef79.tar.bz2
evol-hercules-655301284da462c2b4aa77ad38e9d98b7cc6ef79.tar.xz
evol-hercules-655301284da462c2b4aa77ad38e9d98b7cc6ef79.zip
This will be the next generation of rebirth system (trait-based).
Either that, or I'll end up moving this code to rEvolt and keep current one.
-rw-r--r--src/emap/status.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/emap/status.c b/src/emap/status.c
index 2d2a884..b867f4d 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -165,6 +165,21 @@ void estatus_calc_pc_additional_pre(struct map_session_data **sdPtr,
horse_add_bonus(sd);
+ struct linkdb_node **label_linkdb = strdb_get(npc->ev_label_db, "OnPCBonusEvent");
+ if (label_linkdb == NULL) {
+ hookStop();
+ return;
+ }
+
+ struct linkdb_node *node = *label_linkdb;
+ while (node) {
+ struct event_data* ev = node->data;
+ if (ev) {
+ script->run(ev->nd->u.scr.script, ev->pos, sd->bl.id, ev->nd->bl.id);
+ }
+ node = node->next;
+ }
+
hookStop();
}