From 85a13ea581d350cfdbadc0666595981272d321b6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 22 Dec 2021 11:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A0=E9=99=90=E5=AD=90?= =?UTF-8?q?=E5=BC=B9=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 35f91525..853391dc 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -106,6 +106,15 @@ Human::Human():Creature() skin.skin_lv = 1; } weapons[0] = default_weapon; + inventory_[IS_1XSCOPE] = 1; + + if (MetaMgr::Instance()->fighting_mode) { + inventory_[IS_9MM] = FIGHTING_MODE_BULLET_NUM; + inventory_[IS_556MM] = FIGHTING_MODE_BULLET_NUM; + inventory_[IS_762MM] = FIGHTING_MODE_BULLET_NUM; + inventory_[IS_12GAUGE] = FIGHTING_MODE_BULLET_NUM; + inventory_[IS_RPG] = FIGHTING_MODE_BULLET_NUM; + } } Human::~Human()