Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implemented @warp suggestions.
This will display map name suggestions when attempting to @warp to a non-existent map. To enable, turn on 'feature.warp_suggestions' in 'conf/battle/feature.conf'. Signed-off-by: Euphy <euphy.raliel@rathena.org>
- Loading branch information
Showing
with
110 additions
and 1 deletion.
- +4 −0 conf/battle/feature.conf
- +25 −0 src/common/utils.c
- +2 −0 src/common/utils.h
- +1 −1 src/config/core.h
- +76 −0 src/map/atcommand.c
- +1 −0 src/map/battle.c
- +1 −0 src/map/battle.h
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
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
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
| @@ -31,4 +31,6 @@ extern uint32 MakeDWord(uint16 word0, uint16 word1); | ||
|
|
||
| uint32 date2version(int date); | ||
|
|
||
| int levenshtein(const char *s1, const char *s2); | ||
|
|
||
| #endif /* _UTILS_H_ */ | ||
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
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
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
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
| @@ -532,6 +532,7 @@ extern struct Battle_Config | ||
| int atcommand_enable_npc; | ||
| int path_blown_halt; | ||
| int rental_mount_speed_boost; | ||
| int warp_suggestions_enabled; | ||
| } battle_config; | ||
|
|
||
| void do_init_battle(void); | ||