Przeglądaj źródła

Fixed @reloadskilldb, bugreport:4412 and in the flow of that mercenary db is now reloaded in @reloadmobdb (like homunculus db already does)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15027 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 lat temu
rodzic
commit
11d96c3aa8
2 zmienionych plików z 8 dodań i 0 usunięć
  1. 2 0
      src/map/atcommand.c
  2. 6 0
      src/map/mercenary.h

+ 2 - 0
src/map/atcommand.c

@@ -4213,6 +4213,7 @@ ACMD_FUNC(reloadmobdb)
 	mob_reload();
 	read_petdb();
 	merc_reload();
+	read_mercenarydb();
 	clif_displaymessage(fd, msg_txt(98)); // Monster database has been reloaded.
 
 	return 0;
@@ -4226,6 +4227,7 @@ ACMD_FUNC(reloadskilldb)
 	nullpo_retr(-1, sd);
 	skill_reload();
 	merc_skill_reload();
+	read_mercenary_skilldb();
 	clif_displaymessage(fd, msg_txt(99)); // Skill database has been reloaded.
 
 	return 0;

+ 6 - 0
src/map/mercenary.h

@@ -69,6 +69,12 @@ int mercenary_kills(struct mercenary_data *md);
 
 int mercenary_checkskill(struct mercenary_data *md, int skill_id);
 
+/**
+ * atcommand.c required
+ **/
+int read_mercenarydb(void);
+int read_mercenary_skilldb(void);
+
 int do_init_mercenary(void);
 
 #endif /* _MERCENARY_H_ */