forked from talamortis/XpWeekend
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…30) * Implement `.weekendxp config` command and allow rates to be `float`s Also changed the existing strings to use `{}` rather than the c-like formatters, since they seemed to not work in `master` * Implement mod version migration system and general fixes * Fix error string since now the range [0,1] is allowed for xp rates * Add a changelog to the cpp file * Add migration system so that players that previously changed their personal rate dont need to change it after the mod is updated * Identify and note some potential improvements * Remove changelog from source and unnecessary comments
- Loading branch information
1 parent
d28bcec
commit 1ba2296
Showing
2 changed files
with
223 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
SET @STRING_ENTRY := 11120; | ||
DELETE FROM `acore_string` WHERE `entry` IN (@STRING_ENTRY+0,@STRING_ENTRY+1); | ||
DELETE FROM `acore_string` WHERE `entry` IN (@STRING_ENTRY+0,@STRING_ENTRY+1,@STRING_ENTRY+2); | ||
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES | ||
(@STRING_ENTRY+0, 'Your experience rates were set to %i.'), | ||
(@STRING_ENTRY+1, 'Wrong value specified. Please specify a value between 1 and %i'); | ||
(@STRING_ENTRY+0, 'Your experience rates were set to {}.'), | ||
(@STRING_ENTRY+1, 'Wrong value specified. Please specify a value between 0 and {}'), | ||
(@STRING_ENTRY+2, 'The rate being applied to you is {}.\nThe current weekendxp configuration is:\nAnnounce {}\nAlwaysEnabled {}\nQuestOnly {}\nMaxLevel {}\nxpAmount {}\nIndividualXPEnabled {}\nEnabled {}\nMaxAllowedRate {}'); | ||
|
||
DELETE FROM `command` WHERE `name` IN ('weekendxp rate'); | ||
INSERT INTO `command` (`name`, `security`, `help`) VALUES | ||
('weekendxp rate', 0, 'Syntax: weekendxp rate $value \nSet your experience rate up to the allowed value.'); | ||
|
||
DELETE FROM `command` WHERE `name` IN ('weekendxp config'); | ||
INSERT INTO `command` (`name`, `security`, `help`) VALUES | ||
('weekendxp config', 0, 'Syntax: weekendxp config\nDisplays the current configuration for the weekendxp mod.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters