summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-23 04:23:22 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-23 04:23:22 +0000
commit77fa315a25b08c429758d109b08a67a6e6a52e50 (patch)
tree023ce4cbcf05d19d16427d2cc980e46529813e9d /src
parentee6cc09aa83b85d24899def45b8e22b18ee60139 (diff)
downloadhercules-77fa315a25b08c429758d109b08a67a6e6a52e50.tar.gz
hercules-77fa315a25b08c429758d109b08a67a6e6a52e50.tar.bz2
hercules-77fa315a25b08c429758d109b08a67a6e6a52e50.tar.xz
hercules-77fa315a25b08c429758d109b08a67a6e6a52e50.zip
Fixed some compile errors
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1273 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c32
-rw-r--r--src/map/skill.c2
2 files changed, 17 insertions, 17 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 7a39af029..d4d0fd45d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -4350,21 +4350,6 @@ static int mob_readdb_race(void)
return 0;
}
-void mob_reload(void)
-{
-#ifndef TXT_ONLY
- if(db_use_sqldbs)
- mob_read_sqldb();
- else
-#endif /* TXT_ONLY */
- mob_readdb();
-
- mob_readdb_mobavail();
- mob_read_randommonster();
- mob_readskilldb();
- mob_readdb_race();
-}
-
#ifndef TXT_ONLY
/*==========================================
* SQL reading
@@ -4526,8 +4511,23 @@ static int mob_read_sqldb(void)
}
return 0;
}
-
#endif /* not TXT_ONLY */
+
+void mob_reload(void)
+{
+#ifndef TXT_ONLY
+ if(db_use_sqldbs)
+ mob_read_sqldb();
+ else
+#endif /* TXT_ONLY */
+ mob_readdb();
+
+ mob_readdb_mobavail();
+ mob_read_randommonster();
+ mob_readskilldb();
+ mob_readdb_race();
+}
+
/*==========================================
* Circumference initialization of mob
*------------------------------------------
diff --git a/src/map/skill.c b/src/map/skill.c
index f40420dcf..d5bd61a4c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -8753,7 +8753,7 @@ int skill_produce_mix( struct map_session_data *sd,
if(skill_produce_db[idx].req_skill==AM_PHARMACY) {
make_per = pc_checkskill(sd,AM_LEARNINGPOTION)*100
+ pc_checkskill(sd,AM_PHARMACY)*300 + sd->status.job_level*20
- + sd->status.paramc[4]*10+sd->status.paramc[5]*10;
+ + sd->paramc[4]*10+sd->paramc[5]*10;
if(nameid >= 501 && nameid <= 505) // Normal potions
make_per += 2000 + pc_checkskill(sd,AM_POTIONPITCHER)*100;