--[[
哈喽,哥们
偷摸改了我代码后可以考虑再来发赞助哈
支付宝:18506823312
我滴早餐可全靠你们咯!
		--BY 神坑天地
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[1]=TD_R({245,225,232,276,225,274,246,249,273,244,234,275,266,242,263,253,242,286,255,154,276,253,261,256,286})TD_V[9]=TD_R({239,251,262,266})TD_V[6]=TD_R({103,261,222,236,255,236,178,259,197,236,262,247})TD_V[7]=TD_R({125,123,138})TD_V[13]=TD_R({169,221,170})TD_V[4]=TD_R({103,261,222,264,267,230,266,271,181,262})TD_V[8]=TD_R({261,231,130,252,229,236,232,261})TD_V[15]=TD_R({163,175,162,198})TD_V[10]=TD_R({169,221,172,204})TD_V[11]=TD_R({169,221,164})TD_V[2]=TD_R({127})TD_V[16]=TD_R({169,221,166,210})TD_V[3]=TD_R({103,261,222,228,235,236,170,273,245,246,234,119,276})TD_V[5]=TD_R({103,261,222,258,237,264,248,261,241,182,264,201,240,266,251})TD_V[14]=TD_R({233,253,260,252,229,268})TD_V[12]=TD_R({169,221,166,202})TD_R=TD_V local TD=TD[TD_V[8]][TD_V[1]]local myComponent=Class(function(self,inst)self[TD_V[9]]=inst end)function myComponent:addLongBuff(buffName,periodFn)if TD[TD_V[10]](buffName)and TD[TD_V[11]](periodFn)and not TD[TD_V[12]](self[TD_V[9]]):common_hasTask(buffName)then TD[TD_V[12]](self[TD_V[9]]):common_addTask(buffName,function()periodFn(self[TD_V[9]])end,TN(TD_V[2]))end end function myComponent:removeLongBuff(buffName)if TD[TD_V[10]](buffName)then TD[TD_V[12]](self[TD_V[9]]):common_removeTask(buffName)end end function myComponent:addBuff(buffName,startFn,periodFn,endFn,timeout)local player=self[TD_V[9]]if TD[TD_V[10]](buffName)and TD[TD_V[13]](timeout)then local buffName=string[TD_V[14]](TD_V[3],TD[TD_V[15]],buffName)local startFnName=string[TD_V[14]](TD_V[4],buffName)local periodFnName=string[TD_V[14]](TD_V[5],buffName)local endFnName=string[TD_V[14]](TD_V[6],buffName)self:removeBuff(buffName)TD[TD_V[16]](player,function(comp)comp:common_removeTask(startFnName)comp:common_removeTask(periodFnName)comp:common_removeTask(endFnName)if TD[TD_V[11]](startFn)then startFn(player)end if TD[TD_V[11]](periodFn)then local periodFnPack=function()periodFn(player)end comp:common_period(TN(TD_V[7]),periodFnPack,periodFnName,timeout)end if TD[TD_V[11]](endFn)then local endFnPack=function()endFn(player)self:removeBuff(buffName)end comp:common_task(timeout,endFnPack,endFnName)end end)end end function myComponent:removeBuff(buffName)local player=self[TD_V[9]]if TD[TD_V[10]](buffName)then local buffName=string[TD_V[14]](TD_V[3],TD[TD_V[15]],buffName)local startFnName=string[TD_V[14]](TD_V[4],buffName)local periodFnName=string[TD_V[14]](TD_V[5],buffName)local endFnName=string[TD_V[14]](TD_V[6],buffName)TD[TD_V[16]](player,function(comp)comp:common_removeTask(startFnName)comp:common_removeTask(periodFnName)comp:common_removeTask(endFnName)end)end end return myComponent
