summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-03-28 14:17:25 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-10 12:56:32 -0300
commitb50456c73c5fbe4b3f8a93c862804ad4f5cd9377 (patch)
tree47e548282603f3c7f9b7560c4026a4fa4604bda2
parent177914a338aa2c74656651bfa9ee6f10412b49b4 (diff)
downloadevol-hercules-b50456c73c5fbe4b3f8a93c862804ad4f5cd9377.tar.gz
evol-hercules-b50456c73c5fbe4b3f8a93c862804ad4f5cd9377.tar.bz2
evol-hercules-b50456c73c5fbe4b3f8a93c862804ad4f5cd9377.tar.xz
evol-hercules-b50456c73c5fbe4b3f8a93c862804ad4f5cd9377.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 7b42fa1..0aa5f13 100644
--- a/src/emap/status.c
+++ b/src/emap/status.c
@@ -149,6 +149,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();
}