summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/atcommand.cpp4
-rw-r--r--src/map/battle.cpp44
-rw-r--r--src/map/chrif.cpp6
-rw-r--r--src/map/clif.cpp10
-rw-r--r--src/map/fwd.hpp4
-rw-r--r--src/map/globals.cpp6
-rw-r--r--src/map/intif.cpp4
-rw-r--r--src/map/map.cpp4
-rw-r--r--src/map/mob.cpp46
-rw-r--r--src/map/npc-parse.cpp2
-rw-r--r--src/map/npc.cpp4
-rw-r--r--src/map/party.cpp2
-rw-r--r--src/map/pc.cpp110
-rw-r--r--src/map/script-call.cpp2
-rw-r--r--src/map/script-fun.cpp74
-rw-r--r--src/map/script-startup.cpp2
-rw-r--r--src/map/skill.cpp2
-rw-r--r--src/map/storage.hpp2
-rw-r--r--src/map/tmw.cpp2
-rw-r--r--src/map/trade.cpp2
20 files changed, 166 insertions, 166 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp
index 346b0ac..3f571fa 100644
--- a/src/map/atcommand.cpp
+++ b/src/map/atcommand.cpp
@@ -63,14 +63,14 @@
#include "../ast/npc.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "intif.hpp"
#include "itemdb.hpp"
#include "map.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "mob.hpp"
#include "npc.hpp"
#include "npc-parse.hpp"
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index b745e05..f1008cc 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -40,7 +40,7 @@
#include "../high/utils.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "itemdb.hpp"
@@ -814,7 +814,7 @@ interval_t battle_get_adelay(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
interval_t battle_get_amotion(dumb_ptr<block_list> bl)
@@ -845,7 +845,7 @@ interval_t battle_get_amotion(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
interval_t battle_get_dmotion(dumb_ptr<block_list> bl)
@@ -864,7 +864,7 @@ interval_t battle_get_dmotion(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
LevelElement battle_get_element(dumb_ptr<block_list> bl)
@@ -879,7 +879,7 @@ LevelElement battle_get_element(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
PartyId battle_get_party_id(dumb_ptr<block_list> bl)
@@ -898,7 +898,7 @@ PartyId battle_get_party_id(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
Race battle_get_race(dumb_ptr<block_list> bl)
@@ -913,7 +913,7 @@ Race battle_get_race(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
MobMode battle_get_mode(dumb_ptr<block_list> bl)
@@ -926,7 +926,7 @@ MobMode battle_get_mode(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int battle_get_stat(SP stat_id, dumb_ptr<block_list> bl)
@@ -951,7 +951,7 @@ int battle_get_stat(SP stat_id, dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
// StatusChange系の所得 | StatusChange Income
@@ -970,7 +970,7 @@ eptr<struct status_change, StatusChange, StatusChange::MAX_STATUSCHANGE> battle_
}
/*==========================================
- *
+ *
*------------------------------------------
*/
Opt1 *battle_get_opt1(dumb_ptr<block_list> bl)
@@ -986,7 +986,7 @@ Opt1 *battle_get_opt1(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
Opt2 *battle_get_opt2(dumb_ptr<block_list> bl)
@@ -1002,7 +1002,7 @@ Opt2 *battle_get_opt2(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
Opt3 *battle_get_opt3(dumb_ptr<block_list> bl)
@@ -1018,7 +1018,7 @@ Opt3 *battle_get_opt3(dumb_ptr<block_list> bl)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
Opt0 *battle_get_option(dumb_ptr<block_list> bl)
@@ -1036,7 +1036,7 @@ Opt0 *battle_get_option(dumb_ptr<block_list> bl)
//-------------------------------------------------------------------
/*==========================================
- *
+ *
*------------------------------------------
*/
// ダメージの遅延 | damage delay
@@ -1048,7 +1048,7 @@ struct battle_delay_damage_
};
/*==========================================
- *
+ *
*------------------------------------------
*/
// 実際にHPを操作 | Actually operate HP
@@ -1091,7 +1091,7 @@ int battle_damage(dumb_ptr<block_list> bl, dumb_ptr<block_list> target,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int battle_heal(dumb_ptr<block_list> bl, dumb_ptr<block_list> target, int hp,
@@ -1116,7 +1116,7 @@ int battle_heal(dumb_ptr<block_list> bl, dumb_ptr<block_list> target, int hp,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
// 攻撃停止 | stop attack
@@ -1166,7 +1166,7 @@ int battle_calc_damage(dumb_ptr<block_list>, dumb_ptr<block_list> bl,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -1423,7 +1423,7 @@ struct Damage battle_calc_mob_weapon_attack(dumb_ptr<block_list> src,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int battle_is_unarmed(dumb_ptr<block_list> bl)
@@ -1589,7 +1589,7 @@ struct Damage battle_calc_pc_weapon_attack(dumb_ptr<block_list> src,
// ダブルアタックが発動していない | Double Attack is not activated
// クリティカル計算 | critical calculation
cri = battle_get_critical(src);
-
+
if (sd->state.arrow_atk)
cri += sd->arrow_cri;
cri -= battle_get_luk(target) * 3;
@@ -1601,7 +1601,7 @@ struct Damage battle_calc_pc_weapon_attack(dumb_ptr<block_list> src,
cri = cri * (100 - tsd->critical_def) / 100;
else if (tmd && tmd->stats[mob_stat::CRITICAL_DEF])
cri = cri * (100 - tmd->stats[mob_stat::CRITICAL_DEF]) / 100;
-
+
// ダブルアタックが発動していない | Double Attack is not activated
// 判定(スキルの場合は無視) | Judgment (ignored for skills)
if (!da && skill_num == SkillID::ZERO && skill_lv >= 0
@@ -2176,7 +2176,7 @@ ATK battle_weapon_attack(dumb_ptr<block_list> src, dumb_ptr<block_list> target,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
bool battle_check_undead(Race race, Element element)
diff --git a/src/map/chrif.cpp b/src/map/chrif.cpp
index 52c311b..0a7ee07 100644
--- a/src/map/chrif.cpp
+++ b/src/map/chrif.cpp
@@ -33,7 +33,7 @@
#include "../net/timer.hpp"
#include "../net/timestamp-utils.hpp"
-#include "../proto2/char-map.hpp"
+#include "proto2/char-map.hpp"
#include "../mmo/human_time_diff.hpp"
#include "../high/mmo.hpp"
@@ -41,13 +41,13 @@
#include "../wire/packets.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "intif.hpp"
#include "itemdb.hpp"
#include "map.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "npc.hpp"
#include "pc.hpp"
#include "storage.hpp"
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 9edf2af..ae5ef85 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -46,9 +46,9 @@
#include "../net/timer.hpp"
#include "../net/timestamp-utils.hpp"
-#include "../proto2/any-user.hpp"
-#include "../proto2/char-map.hpp"
-#include "../proto2/map-user.hpp"
+#include "proto2/any-user.hpp"
+#include "proto2/char-map.hpp"
+#include "proto2/map-user.hpp"
#include "../mmo/cxxstdio_enums.hpp"
#include "../mmo/version.hpp"
@@ -59,13 +59,13 @@
#include "atcommand.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "globals.hpp"
#include "intif.hpp"
#include "itemdb.hpp"
#include "map.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "npc.hpp"
#include "party.hpp"
#include "pc.hpp"
diff --git a/src/map/fwd.hpp b/src/map/fwd.hpp
index fc6b284..8242de5 100644
--- a/src/map/fwd.hpp
+++ b/src/map/fwd.hpp
@@ -18,7 +18,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-#include "../sanity.hpp"
+#include "sanity.hpp"
#include <cstdint>
@@ -31,7 +31,7 @@
#include "../net/fwd.hpp" // rank 5
#include "../sexpr/fwd.hpp" // rank 5
#include "../mmo/fwd.hpp" // rank 6
-#include "../proto2/fwd.hpp" // rank 8
+#include "proto2/fwd.hpp" // rank 8
#include "../high/fwd.hpp" // rank 9
#include "../wire/fwd.hpp" // rank 9
#include "../ast/fwd.hpp" // rank 10
diff --git a/src/map/globals.cpp b/src/map/globals.cpp
index d2c1993..14708f8 100644
--- a/src/map/globals.cpp
+++ b/src/map/globals.cpp
@@ -22,12 +22,12 @@
#include "../io/write.hpp"
-#include "../proto2/net-Storage.hpp"
+#include "proto2/net-Storage.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "itemdb.hpp"
#include "quest.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "mob.hpp"
#include "npc-internal.hpp"
#include "script-parse-internal.hpp"
diff --git a/src/map/intif.cpp b/src/map/intif.cpp
index f64f797..9f4c38e 100644
--- a/src/map/intif.cpp
+++ b/src/map/intif.cpp
@@ -33,12 +33,12 @@
#include "../high/mmo.hpp"
-#include "../proto2/char-map.hpp"
+#include "proto2/char-map.hpp"
#include "../wire/packets.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
diff --git a/src/map/map.cpp b/src/map/map.cpp
index ff69a56..0895828 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -63,13 +63,13 @@
#include "atcommand.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "grfio.hpp"
#include "itemdb.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "mob.hpp"
#include "quest.hpp"
#include "npc.hpp"
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index 996e2bb..4c5b099 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -47,7 +47,7 @@
#include "../mmo/extract_enums.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "itemdb.hpp"
@@ -347,7 +347,7 @@ int mob_gen_exp(mob_db_ *mob)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -525,7 +525,7 @@ BlockId mob_once_spawn_area(dumb_ptr<map_session_data> sd,
// TODO: deprecate these
/*==========================================
- *
+ *
*------------------------------------------
*/
short mob_get_hair(Species mob_class)
@@ -534,7 +534,7 @@ short mob_get_hair(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
short mob_get_hair_color(Species mob_class)
@@ -543,7 +543,7 @@ short mob_get_hair_color(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
short mob_get_weapon(Species mob_class)
@@ -552,7 +552,7 @@ short mob_get_weapon(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
ItemNameId mob_get_shield(Species mob_class)
@@ -561,7 +561,7 @@ ItemNameId mob_get_shield(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
ItemNameId mob_get_head_top(Species mob_class)
@@ -570,7 +570,7 @@ ItemNameId mob_get_head_top(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
ItemNameId mob_get_head_mid(Species mob_class)
@@ -579,7 +579,7 @@ ItemNameId mob_get_head_mid(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
ItemNameId mob_get_head_buttom(Species mob_class)
@@ -588,7 +588,7 @@ ItemNameId mob_get_head_buttom(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
short mob_get_clothes_color(Species mob_class) // Add for player monster dye - Valaris
@@ -597,7 +597,7 @@ short mob_get_clothes_color(Species mob_class) // Add for player monster dye - V
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int mob_get_equip(Species mob_class) // mob equip [Valaris]
@@ -833,7 +833,7 @@ int mob_check_attack(dumb_ptr<mob_data> md)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -1448,7 +1448,7 @@ int mob_target(dumb_ptr<mob_data> md, dumb_ptr<block_list> bl, int dist)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int mob_aggravate(dumb_ptr<mob_data> md, dumb_ptr<block_list> bl)
@@ -2354,7 +2354,7 @@ int mob_delete(dumb_ptr<mob_data> md)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int mob_catch_delete(dumb_ptr<mob_data> md, BeingRemoveWhy type)
@@ -2371,7 +2371,7 @@ int mob_catch_delete(dumb_ptr<mob_data> md, BeingRemoveWhy type)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void mob_timer_delete(TimerData *, tick_t, BlockId id)
@@ -2582,7 +2582,7 @@ int mob_damage(dumb_ptr<block_list> src, dumb_ptr<mob_data> md, int damage,
if (src && src->bl_type == BL::MOB)
mob_unlocktarget(src->is_mob(), tick);
- // map外に消えた人は計算から除くので | People who disappear outside the map will be excluded from the calculation.
+ // map外に消えた人は計算から除くので | People who disappear outside the map will be excluded from the calculation.
// overkill分は無いけどsumはmax_hpとは違う | There is no overkill portion, but sum is different from max_hp
// snip a prelude loop, now merged
@@ -3540,7 +3540,7 @@ int mob_makedummymobdb(Species mob_class)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3556,7 +3556,7 @@ bool impl_extract(XString str, LevelElement *le)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
bool mob_readdb(ZString filename)
@@ -3711,7 +3711,7 @@ bool mob_readdb(ZString filename)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3739,7 +3739,7 @@ bool impl_extract(XString str, MobSkillCondition *msc)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3766,7 +3766,7 @@ bool impl_extract(XString str, MobSkillState *mss)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3791,7 +3791,7 @@ bool impl_extract(XString str, MobSkillTarget *mst)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
bool mob_readskilldb(ZString filename)
@@ -3877,7 +3877,7 @@ bool mob_readskilldb(ZString filename)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void do_init_mob2(void)
diff --git a/src/map/npc-parse.cpp b/src/map/npc-parse.cpp
index df1a09a..7b225f8 100644
--- a/src/map/npc-parse.cpp
+++ b/src/map/npc-parse.cpp
@@ -41,7 +41,7 @@
#include "../ast/npc.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "itemdb.hpp"
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index 7d3e62b..2adc774 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -42,10 +42,10 @@
#include "../net/timer.hpp"
-#include "../proto2/map-user.hpp"
+#include "proto2/map-user.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "itemdb.hpp"
diff --git a/src/map/party.cpp b/src/map/party.cpp
index ccbfd75..d9b814a 100644
--- a/src/map/party.cpp
+++ b/src/map/party.cpp
@@ -35,7 +35,7 @@
#include "../high/mmo.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "intif.hpp"
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 12af48f..2a7a8ec 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -44,18 +44,18 @@
#include "../net/timer.hpp"
#include "../net/timestamp-utils.hpp"
-#include "../proto2/char-map.hpp"
+#include "proto2/char-map.hpp"
#include "atcommand.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "intif.hpp"
#include "itemdb.hpp"
#include "map.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "npc.hpp"
#include "party.hpp"
#include "path.hpp"
@@ -294,35 +294,35 @@ earray<EPOS, EQUIP, EQUIP::COUNT> equip_pos //=
}};
/*==========================================
- *
+ *
*------------------------------------------
*/
static
int pc_checkoverhp(dumb_ptr<map_session_data> sd);
/*==========================================
- *
+ *
*------------------------------------------
*/
static
int pc_checkoversp(dumb_ptr<map_session_data> sd);
/*==========================================
- *
+ *
*------------------------------------------
*/
static
int pc_nextbaseafter(dumb_ptr<map_session_data> sd);
/*==========================================
- *
+ *
*------------------------------------------
*/
static
int pc_nextjobafter(dumb_ptr<map_session_data> sd);
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -332,7 +332,7 @@ void pc_setdead(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
GmLevel pc_isGM(dumb_ptr<map_session_data> sd)
@@ -346,7 +346,7 @@ GmLevel pc_isGM(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_iskiller(dumb_ptr<map_session_data> src,
@@ -364,7 +364,7 @@ int pc_iskiller(dumb_ptr<map_session_data> src,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_set_gm_level(AccountId account_id, GmLevel level)
@@ -376,7 +376,7 @@ void pc_set_gm_level(AccountId account_id, GmLevel level)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -390,7 +390,7 @@ int distance(int x0, int y0, int x1, int y1)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -403,7 +403,7 @@ void pc_pvp_timer(TimerData *, tick_t, BlockId id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_setpvptimer(dumb_ptr<map_session_data> sd, interval_t val)
@@ -417,7 +417,7 @@ int pc_setpvptimer(dumb_ptr<map_session_data> sd, interval_t val)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_delpvptimer(dumb_ptr<map_session_data> sd)
@@ -429,7 +429,7 @@ int pc_delpvptimer(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -442,7 +442,7 @@ void pc_invincible_timer(TimerData *, tick_t, BlockId id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_setinvincibletimer(dumb_ptr<map_session_data> sd, interval_t val)
@@ -456,7 +456,7 @@ int pc_setinvincibletimer(dumb_ptr<map_session_data> sd, interval_t val)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_delinvincibletimer(dumb_ptr<map_session_data> sd)
@@ -468,7 +468,7 @@ int pc_delinvincibletimer(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_setrestartvalue(dumb_ptr<map_session_data> sd, int type)
@@ -537,7 +537,7 @@ void pc_counttargeted_sub(dumb_ptr<block_list> bl,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_counttargeted(dumb_ptr<map_session_data> sd, dumb_ptr<block_list> src,
@@ -636,7 +636,7 @@ int pc_setnewpc(dumb_ptr<map_session_data> sd, AccountId account_id, CharId char
}
/*==========================================
- *
+ *
*------------------------------------------
*/
EPOS pc_equippoint(dumb_ptr<map_session_data> sd, IOff0 n)
@@ -647,7 +647,7 @@ EPOS pc_equippoint(dumb_ptr<map_session_data> sd, IOff0 n)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -668,7 +668,7 @@ int pc_setinventorydata(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -683,7 +683,7 @@ int pc_calcweapontype(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -738,7 +738,7 @@ int pc_setequipindex(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -765,7 +765,7 @@ int pc_isequip(dumb_ptr<map_session_data> sd, IOff0 n)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_set_weapon_icon(dumb_ptr<map_session_data> sd, int count,
@@ -795,7 +795,7 @@ void pc_set_weapon_icon(dumb_ptr<map_session_data> sd, int count,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_set_attack_info(dumb_ptr<map_session_data> sd, interval_t speed, int range)
@@ -1021,7 +1021,7 @@ int pc_authfail(AccountId id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -1081,7 +1081,7 @@ int pc_checkweighticon(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -2075,7 +2075,7 @@ IOff0 pc_search_inventory(dumb_ptr<map_session_data> sd, ItemNameId item_id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_count_all_items(dumb_ptr<map_session_data> player, ItemNameId item_id)
@@ -2094,7 +2094,7 @@ int pc_count_all_items(dumb_ptr<map_session_data> player, ItemNameId item_id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_remove_items(dumb_ptr<map_session_data> player, ItemNameId item_id, int count)
@@ -2295,7 +2295,7 @@ int can_pick_item_up_from(dumb_ptr<map_session_data> self, BlockId other_id)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_takeitem(dumb_ptr<map_session_data> sd, dumb_ptr<flooritem_data> fitem)
@@ -2355,7 +2355,7 @@ int pc_takeitem(dumb_ptr<map_session_data> sd, dumb_ptr<flooritem_data> fitem)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -2805,7 +2805,7 @@ int pc_stop_walking(dumb_ptr<map_session_data> sd, int type)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_touch_all_relevant_npcs(dumb_ptr<map_session_data> sd)
@@ -3037,7 +3037,7 @@ int pc_stopattack(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3072,7 +3072,7 @@ int pc_checkbaselevelup(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
inline
@@ -3100,7 +3100,7 @@ int pc_skillpt_potential(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -3141,7 +3141,7 @@ int pc_checkjoblevelup(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_gainexp_reason(dumb_ptr<map_session_data> sd, int base_exp, int job_exp,
@@ -3238,7 +3238,7 @@ int pc_gainexp_reason(dumb_ptr<map_session_data> sd, int base_exp, int job_exp,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_extract_healer_exp(dumb_ptr<map_session_data> sd, int max)
@@ -4228,7 +4228,7 @@ static
int pc_itemheal_effect(dumb_ptr<map_session_data> sd, int hp, int sp);
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4254,7 +4254,7 @@ pc_heal_quick_speed(int amount)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4274,7 +4274,7 @@ void pc_heal_quick_accumulate(int new_amount,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_itemheal(dumb_ptr<map_session_data> sd, int hp, int sp)
@@ -4814,7 +4814,7 @@ int pc_signal_advanced_equipment_change(dumb_ptr<map_session_data> sd, IOff0 n)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_equipitem(dumb_ptr<map_session_data> sd, IOff0 n, EPOS)
@@ -5029,7 +5029,7 @@ int pc_unequipitem(dumb_ptr<map_session_data> sd, IOff0 n, CalcStatus type)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_unequipinvyitem(dumb_ptr<map_session_data> sd, IOff0 n, CalcStatus type)
@@ -5101,7 +5101,7 @@ int pc_checkitem(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_checkoverhp(dumb_ptr<map_session_data> sd)
@@ -5121,7 +5121,7 @@ int pc_checkoverhp(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_checkoversp(dumb_ptr<map_session_data> sd)
@@ -5327,7 +5327,7 @@ interval_t pc_hpheal(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5385,7 +5385,7 @@ int pc_natural_heal_hp(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5460,7 +5460,7 @@ int pc_quickregenerate_effect(struct quick_regeneration *quick_regen,
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5595,7 +5595,7 @@ void pc_autosave(TimerData *, tick_t)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_read_gm_account(Session *, const std::vector<Packet_Repeat<0x2b15>>& repeat)
@@ -5612,7 +5612,7 @@ int pc_read_gm_account(Session *, const std::vector<Packet_Repeat<0x2b15>>& repe
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_setstand(dumb_ptr<map_session_data> sd)
@@ -5626,7 +5626,7 @@ void pc_setstand(dumb_ptr<map_session_data> sd)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5647,7 +5647,7 @@ void pc_calc_sigma(void)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void do_init_pc(void)
@@ -5664,7 +5664,7 @@ void do_init_pc(void)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
void pc_invisibility(dumb_ptr<map_session_data> sd, int enabled)
@@ -5684,7 +5684,7 @@ void pc_invisibility(dumb_ptr<map_session_data> sd, int enabled)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
int pc_logout(dumb_ptr<map_session_data> sd) // [fate] Player logs out
diff --git a/src/map/script-call.cpp b/src/map/script-call.cpp
index f551ec4..0493ec3 100644
--- a/src/map/script-call.cpp
+++ b/src/map/script-call.cpp
@@ -31,7 +31,7 @@
#include "../high/core.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "globals.hpp"
#include "map.hpp"
#include "npc.hpp"
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 1efa006..3d5fe20 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -35,14 +35,14 @@
#include "../net/timer.hpp"
-#include "../proto2/net-HumanTimeDiff.hpp"
+#include "proto2/net-HumanTimeDiff.hpp"
#include "../high/core.hpp"
#include "../high/extract_mmo.hpp"
#include "atcommand.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
@@ -2964,7 +2964,7 @@ void builtin_mobinfo_droparrays(ScriptState *st)
char prefix = name.front();
char postfix = name.back();
-
+
int status = 0; // 0 = mob not found or error, 1 = mob found and has drops, 2 = mob found and has no drops
if (prefix != '$' && prefix != '@' && prefix != '.')
@@ -3020,7 +3020,7 @@ void builtin_mobinfo_droparrays(ScriptState *st)
push_int<ScriptDataInt>(st->stack, status);
return;
}
-
+
for (int i = 0; i < MaxDrops; ++i)
if (get_mob_db(mob_id).dropitem[i].nameid)
{
@@ -3737,9 +3737,9 @@ void builtin_issummon(ScriptState *st)
int val = 0;
if (md)
{
- val = bool(md->mode & MobMode::SUMMONED);
+ val = bool(md->mode & MobMode::SUMMONED);
}
-
+
push_int<ScriptDataInt>(st->stack, val);
}
@@ -4047,7 +4047,7 @@ void builtin_isloggedin(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4065,7 +4065,7 @@ void builtin_setmapflag(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4083,7 +4083,7 @@ void builtin_removemapflag(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4105,7 +4105,7 @@ void builtin_getmapflag(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4143,7 +4143,7 @@ void builtin_pvpon(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4177,7 +4177,7 @@ void builtin_pvpoff(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4194,7 +4194,7 @@ void builtin_setpvpchannel(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4250,7 +4250,7 @@ void builtin_emotion(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4277,7 +4277,7 @@ void builtin_mapwarp(ScriptState *st) // Added by RoVeRT
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4288,7 +4288,7 @@ void builtin_mobcount_sub(dumb_ptr<block_list> bl, NpcEvent event, int *c)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4316,7 +4316,7 @@ void builtin_mobcount(ScriptState *st) // Added by RoVeRT
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4335,7 +4335,7 @@ void builtin_marriage(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4353,7 +4353,7 @@ void builtin_divorce(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4381,7 +4381,7 @@ void builtin_getitemlink(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4406,7 +4406,7 @@ void builtin_l(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4417,7 +4417,7 @@ void builtin_chr(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4428,7 +4428,7 @@ void builtin_ord(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4524,7 +4524,7 @@ void builtin_getinventorylist(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4559,7 +4559,7 @@ void builtin_getactivatedpoolskilllist(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4592,7 +4592,7 @@ void builtin_getunactivatedpoolskilllist(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4607,7 +4607,7 @@ void builtin_poolskill(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4697,7 +4697,7 @@ void builtin_specialeffect(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -4715,7 +4715,7 @@ void builtin_specialeffect2(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5012,7 +5012,7 @@ void builtin_message(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5025,7 +5025,7 @@ void builtin_title(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5049,7 +5049,7 @@ void builtin_smsg(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5071,7 +5071,7 @@ void builtin_remotecmd(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5108,7 +5108,7 @@ void builtin_sendcollision(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5121,7 +5121,7 @@ void builtin_music(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5146,7 +5146,7 @@ void builtin_mapmask(ScriptState *st)
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
@@ -5307,7 +5307,7 @@ void builtin_areatimer_sub(dumb_ptr<block_list> bl, interval_t tick, NpcEvent ev
}
/*==========================================
- *
+ *
*------------------------------------------
*/
static
diff --git a/src/map/script-startup.cpp b/src/map/script-startup.cpp
index ad809db..82c4176 100644
--- a/src/map/script-startup.cpp
+++ b/src/map/script-startup.cpp
@@ -36,7 +36,7 @@
#include "globals.hpp"
#include "map.hpp"
-#include "map_conf.hpp"
+#include "map/map_conf.hpp"
#include "script-parse-internal.hpp"
#include "script-persist.hpp"
diff --git a/src/map/skill.cpp b/src/map/skill.cpp
index 87bbbda..6f01f2f 100644
--- a/src/map/skill.cpp
+++ b/src/map/skill.cpp
@@ -48,7 +48,7 @@
#include "../mmo/extract_enums.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "mob.hpp"
diff --git a/src/map/storage.hpp b/src/map/storage.hpp
index 5f118c3..aa48b1b 100644
--- a/src/map/storage.hpp
+++ b/src/map/storage.hpp
@@ -22,7 +22,7 @@
#include "fwd.hpp"
-#include "../proto2/net-Storage.hpp"
+#include "proto2/net-Storage.hpp"
#include "../mmo/clif.t.hpp"
diff --git a/src/map/tmw.cpp b/src/map/tmw.cpp
index 5422b3a..c9ab10b 100644
--- a/src/map/tmw.cpp
+++ b/src/map/tmw.cpp
@@ -34,7 +34,7 @@
#include "atcommand.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "chrif.hpp"
#include "clif.hpp"
#include "globals.hpp"
diff --git a/src/map/trade.cpp b/src/map/trade.cpp
index c03609c..251d8ce 100644
--- a/src/map/trade.cpp
+++ b/src/map/trade.cpp
@@ -25,7 +25,7 @@
#include "../io/cxxstdio.hpp"
#include "battle.hpp"
-#include "battle_conf.hpp"
+#include "map/battle_conf.hpp"
#include "clif.hpp"
#include "globals.hpp"
#include "itemdb.hpp"