子弹无限
This commit is contained in:
parent
f70fe3c598
commit
6dfeb77c1e
@ -148,3 +148,5 @@ const int MAP_WIDTH = 8192;
|
||||
const int MAP_CELL_WIDTH = 64 * 8;
|
||||
|
||||
const int DOOR_THING_ID = 61701;
|
||||
|
||||
const int FIGHTING_MODE_BULLET_NUM = 10000 * 10000;
|
||||
|
@ -36,6 +36,13 @@ Human::Human():Entity()
|
||||
weapons[0] = default_weapon;
|
||||
curr_weapon = &weapons[0];
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Human::~Human()
|
||||
|
@ -96,6 +96,7 @@ public:
|
||||
MetaMgr::Instance()->K = MetaMgr::Instance()->GetSysParamAsFloat("K");
|
||||
MetaMgr::Instance()->kill_param = MetaMgr::Instance()->GetSysParamAsFloat("kill_parameter");
|
||||
MetaMgr::Instance()->rank_param = MetaMgr::Instance()->GetSysParamAsFloat("rank_parameter");
|
||||
MetaMgr::Instance()->fighting_mode = MetaMgr::Instance()->GetSysParamAsInt("fighting_mode", 1);
|
||||
if (MetaMgr::Instance()->K < 0.01f) {
|
||||
abort();
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ class MetaMgr : public a8::Singleton<MetaMgr>
|
||||
float K = 100.0f;
|
||||
float kill_param = 0.0f;
|
||||
float rank_param = 0.0f;
|
||||
int fighting_mode = 0;
|
||||
|
||||
private:
|
||||
MetaDataLoader* loader_ = nullptr;
|
||||
|
@ -471,6 +471,10 @@ void Room::CreateLoot(int equip_id, Vector2D pos, int count)
|
||||
{
|
||||
MetaData::Equip* equip_meta = MetaMgr::Instance()->GetEquip(equip_id);
|
||||
if (equip_meta) {
|
||||
if (equip_meta->i->equip_type() == 2 &&
|
||||
MetaMgr::Instance()->fighting_mode) {
|
||||
return;
|
||||
}
|
||||
Loot* entity = new Loot();
|
||||
entity->room = this;
|
||||
entity->meta = equip_meta;
|
||||
|
Loading…
x
Reference in New Issue
Block a user