diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-01 08:14:47 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-01 08:14:47 +0000 |
commit | 6b1e40e08d0d42abad80cc8bad1b848091bf0b30 (patch) | |
tree | 73066f776fe1da7ffd7d967fed365e342f54c763 /src/map | |
parent | 243405af6a72368e732566b2d9f50b7d5214251c (diff) | |
download | hercules-6b1e40e08d0d42abad80cc8bad1b848091bf0b30.tar.gz hercules-6b1e40e08d0d42abad80cc8bad1b848091bf0b30.tar.bz2 hercules-6b1e40e08d0d42abad80cc8bad1b848091bf0b30.tar.xz hercules-6b1e40e08d0d42abad80cc8bad1b848091bf0b30.zip |
Added Ai4rei's "gm can view all players' equips" feature (topic:186519).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12751 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 1 | ||||
-rw-r--r-- | src/map/battle.h | 1 | ||||
-rw-r--r-- | src/map/clif.c | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index cb6d95b2a..c767891a0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3698,6 +3698,7 @@ static const struct _battle_data { { "ksprotection", &battle_config.ksprotection, 5000, 0, INT_MAX, }, { "auction_feeperhour", &battle_config.auction_feeperhour, 12000, 0, INT_MAX, }, { "auction_maximumprice", &battle_config.auction_maximumprice, 500000000, 0, MAX_ZENY, }, + { "gm_viewequip_min_lv", &battle_config.gm_viewequip_min_lv, 0, 0, 99, }, }; diff --git a/src/map/battle.h b/src/map/battle.h index 4b272c85f..93ead772d 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -451,6 +451,7 @@ extern struct Battle_Config int ksprotection; int auction_feeperhour; int auction_maximumprice; + int gm_viewequip_min_lv; } battle_config; void do_init_battle(void); diff --git a/src/map/clif.c b/src/map/clif.c index 5b9b3cfc1..5f807a86f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -12158,7 +12158,7 @@ void clif_parse_ViewPlayerEquip(int fd, struct map_session_data* sd) if (!tsd) return; - if( tsd->status.show_equip ) + if( tsd->status.show_equip || (battle_config.gm_viewequip_min_lv && pc_isGM(sd) >= battle_config.gm_viewequip_min_lv) ) clif_viewequip_ack(sd, tsd); else clif_viewequip_fail(sd); |