do -- local変数有効範囲 function MGBombRockInitialize(Object) Object:SetType(actor_manager.AT_DESTRUCTION_WALL); Object:AddNode(package_manager.MPD_M_OBJ_33); Object:SetAmount(4); Object:AddColor(142.0 / 255.0, 152.0 / 255.0, 121.0 / 255.0); Object:DisableAutoDead(); end function MGBombRockUpdate(Object) -- 何もしない end function MGBombRockCheckMove(Object,Type) if ( Type == actor_manager.AT_PLAYER or Type == actor_manager.AT_SWORD or Type == actor_manager.AT_BOMB ) then return actor_manager.MR_BLOCK; end return actor_manager.MR_NONE; end function MGBombRockCheckCollision(Object,Type) if ( Type == actor_manager.AT_BOOMERANG or Type == actor_manager.AT_SWORD ) then return actor_manager.MR_BLOCK; elseif ( Type == actor_manager.AT_BOMB ) then Object:CreateEffect(); Object:ResetMapGridData(); Object:Destroy(); return actor_manager.MR_BLOCK; else return actor_manager.MR_NONE; end end end -- local変数有効範囲