Skip to content

Commit

Permalink
Added reset config to configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnchyDev committed Oct 6, 2023
1 parent 3faae52 commit bd1ef64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions conf/attriboost.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@
#

Attriboost.Enable = 0

#
# Attriboost.ResetCost
# Description: The cost of resetting attributes in copper.
# Default: 2500000 (250 gold)
#

Attriboost.ResetCost = 2500000
3 changes: 2 additions & 1 deletion src/Attriboost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ bool AttriboostCreatureScript::OnGossipHello(Player* player, Creature* creature)

if (HasAttributes(player))
{
AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\UnlearnGossipIcon:16|t Reset Attributes", GOSSIP_SENDER_MAIN, 1000, "Are you sure you want to reset your attributes?", 2500000, false);
uint32 resetCost = sConfigMgr->GetOption<uint32>("Attriboost.ResetCost", 2500000);
AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\UnlearnGossipIcon:16|t Reset Attributes", GOSSIP_SENDER_MAIN, 1000, "Are you sure you want to reset your attributes?", resetCost, false);
}

AddGossipItemFor(player, GOSSIP_ICON_DOT, "|TInterface\\GossipFrame\\HealerGossipIcon:16|t Settings", GOSSIP_SENDER_MAIN, 2000);
Expand Down

0 comments on commit bd1ef64

Please sign in to comment.