Threshold for blacksmith refine fame points (#4409)
* Made refine threshold for giving Blacksmith ranking point configurable. Fixes #4408
This commit is contained in:
committed by
GitHub
parent
bcf1ff19fe
commit
3a7b832906
@@ -8561,6 +8561,7 @@ static const struct _battle_data {
|
||||
{ "min_shop_sell", &battle_config.min_shop_sell, 0, 0, INT_MAX, },
|
||||
{ "feature.equipswitch", &battle_config.feature_equipswitch, 1, 0, 1, },
|
||||
{ "pet_walk_speed", &battle_config.pet_walk_speed, 1, 1, 3, },
|
||||
{ "blacksmith_fame_refine_threshold", &battle_config.blacksmith_fame_refine_threshold,10, 1, MAX_REFINE, },
|
||||
|
||||
#include "../custom/battle_config_init.inc"
|
||||
};
|
||||
|
||||
@@ -658,6 +658,7 @@ struct Battle_Config
|
||||
int min_shop_sell;
|
||||
int feature_equipswitch;
|
||||
int pet_walk_speed;
|
||||
int blacksmith_fame_refine_threshold;
|
||||
|
||||
#include "../custom/battle_config_struct.inc"
|
||||
};
|
||||
|
||||
@@ -9085,7 +9085,7 @@ BUILDIN_FUNC(successrefitem) {
|
||||
pc_equipitem(sd,i,ep);
|
||||
clif_misceffect(&sd->bl,3);
|
||||
achievement_update_objective(sd, AG_REFINE_SUCCESS, 2, sd->inventory_data[i]->wlv, sd->inventory.u.items_inventory[i].refine);
|
||||
if (sd->inventory.u.items_inventory[i].refine == MAX_REFINE &&
|
||||
if (sd->inventory.u.items_inventory[i].refine == battle_config.blacksmith_fame_refine_threshold &&
|
||||
sd->inventory.u.items_inventory[i].card[0] == CARD0_FORGE &&
|
||||
sd->status.char_id == (int)MakeDWord(sd->inventory.u.items_inventory[i].card[2],sd->inventory.u.items_inventory[i].card[3]))
|
||||
{ // Fame point system [DracoRPG]
|
||||
|
||||
Reference in New Issue
Block a user