switch(mt)
        case 0
                addexp(mg*mn*5*exptime+45*mn*exptime)
		addJB(mg*mn*5*moneytime)
                if(probability(30))
                    ID=random(3)+1
                    if(probability(50))
                        ID=random(13,14)
                    endif
                    addGoods(ID,0,1)
                endif
                if(isEnemy(82))
                    if(isGetMission(50))
                        addGoods(32,2,1)
                    endif
                endif
	case 1
		addexp(mg*mn*10*exptime+75*mn*exptime)
		addJB(mg*mn*15*moneytime)
                if(probability(80))
                    ID=random(3)+1
                    if(probability(10))
                        ID=random(5,9)
                    endif
                    addGoods(ID,0,1)
                endif
                if(probability(40))
                    quality=0
                    if(probability(20))
                        quality=4
                    endif
                    addGoods(getEquiID(mg,random(0,4)),1,-1,quality,0)
                endif
                if(probability(20))
                    addGoods(1,3,1)
                endif
                if(isEnemy(93)|isEnemy(94))
                    addGoods(26,2,1)
                endif
                if(isEnemy(100))
                    addGoods(15,2,1)
                endif
                if(probability(30))
                    addGoods(28,2,1)
                endif
                if(probability(30))
                    addGoods(29,2,1)
                endif
	case 2
		addexp(mg*mn*100*exptime)
		addJB(mg*mn*10*moneytime)
                 if(isEnemy(112))
                    if (probability(10))
                        addGoods(28,2,1)
                    endif
                    ret

                endif
                if(probability(60))
                    ID=random(3)+1
                    addGoods(ID,0,1)
                endif
                if(probability(30))
                    ID=random(5,9)
                    addGoods(ID,0,1)
                endif
                if(probability(50))
                    quality=0
                    if(probability(40))
                        quality=4
                    endif
                    if(probability(30))
                        quality=8
                    endif
                    addGoods(getEquiID(mg,random(0,4)),1,-1,quality,0)
                endif
                if(probability(50))
                    addGoods(1,3,1)
                endif
                if(probability(30))
                    ID=random(2,5)
                    addGoods(ID,3,1)
                endif
                if(probability(40))
                    addGoods(29,2,1)
                endif
                if(isEnemy(114))
                    if (isGetMission(1009))
                        addGoods(1,2,1)
                    else
                        if (probability(50))
                            addGoods(1,2,1)
                        endif
                    endif
                endif
                if(isEnemy(113))
                    if (isGetMission(1019))
                        addGoods(4,2,1)
                    endif
                endif
                if(isEnemy(124))
                    addGoods(22,2,1)
                endif
                if(isEnemy(125))
                    addGoods(23,2,1)
                endif
                if(isEnemy(122))
                    addGoods(12,2,1)
                endif
                if(isEnemy(120))
                    addGoods(11,2,1)
                endif
                if(isEnemy(123))
                    addGoods(14,2,1)
                endif
                if(isEnemy(131)|isEnemy(111))
                    if (probability(40))
                        addGoods(11,0,1)
                    endif
                endif
                if(isEnemy(127))
                    if (probability(50))
                        quality=0
                        if(probability(30))
                            quality=4
                        endif
                        if(probability(20))
                            quality=8
                         endif
                        addGoods(random(50,67),1,-1,quality,0)
                    endif
                endif
endswitch
