summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--localserver/beta.patch216
1 files changed, 15 insertions, 1 deletions
diff --git a/localserver/beta.patch2 b/localserver/beta.patch2
index 41a6417..90102d8 100644
--- a/localserver/beta.patch2
+++ b/localserver/beta.patch2
@@ -1,5 +1,5 @@
diff --git a/src/map/battle.c b/src/map/battle.c
-index fe7a64b51..8698cef67 100644
+index fe7a64b51..f9066fcb8 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7417,6 +7417,7 @@ static const struct battle_data {
@@ -10,6 +10,20 @@ index fe7a64b51..8698cef67 100644
};
static bool battle_set_value_sub(int index, int value)
+diff --git a/src/map/npc.c b/src/map/npc.c
+index 4b79a9fed..8196460f7 100644
+--- a/src/map/npc.c
++++ b/src/map/npc.c
+@@ -2178,6 +2178,9 @@ static int npc_market_buylist(struct map_session_data *sd, struct itemlist *item
+ return 1;
+ }
+
++ // Apply player discout cupon (TMW2 Custom)
++ value = pc->modifybuyvalue(sd,value);
++
+ z += (int64)value * entry->amount;
+ w += itemdb_weight(entry->id) * entry->amount;
+ }
diff --git a/src/map/rodex.c b/src/map/rodex.c
index 766fdc5ea..996576fd3 100644
--- a/src/map/rodex.c