添加爆炸效果

This commit is contained in:
aozhiwei 2020-06-03 17:10:25 +08:00
parent a39bab2e4b
commit 7fd65b85e7
2 changed files with 3 additions and 1 deletions

View File

@ -151,7 +151,8 @@ void Bullet::ProcBomb()
{
//榴弹炮
a8::Vec2 bomb_pos = GetPos();
room->frame_event.AddExplosionEx(player, 0, bomb_pos, 0);
room->frame_event.AddExplosionEx(player, meta->i->id(), bomb_pos,
meta->i->explosion_effect());
OnHit(objects);
}
break;

View File

@ -91,6 +91,7 @@ message Equip
optional float rad2 = 37;
optional int32 buffid = 38;
optional int32 drop_id = 40;
optional int32 explosion_effect = 42;
optional string inventory_slot = 31; //
optional int32 _inventory_slot = 32; //