|
软猬甲反弹发动的几率在哪里修改?
--蓝烟清:装备软蝟甲反弹拳系武功10%伤害,非拳系则减伤10%,弹不死
if WAR.Person[emenyid]["我方"] and JY.Person[eid]["防具"] == 58 then
if (wugong >= 1 and wugong <= 26) or wugong == 109 then
--拳系武功
local selfhurt = math.modf(hurt/10)
local selfhurt3 = math.modf(hurt/5)
if WAR.Person[emenyid][CC.TXWZ1] ~= nil then
WAR.Person[emenyid][CC.TXWZ1] = WAR.Person[emenyid][CC.TXWZ1] .. "+" ..JY.Thing[58]["名称"]..CC.WARS106
else
WAR.Person[emenyid][CC.TXWZ1] = JY.Thing[58]["名称"]..CC.WARS106
end
if WAR.Person[emenyid][CC.TXDH] == -1 then
WAR.Person[emenyid][CC.TXDH] = math.fmod(97, 10) + 85
end
SetWarMap(WAR.Person[WAR.CurID]["坐标X"], WAR.Person[WAR.CurID]["坐标Y"], 4, 2)
if JY.Thing[58]["未知6"] == 0 then
JY.Person[pid]["生命"] = JY.Person[pid]["生命"] - selfhurt3;
else
JY.Person[pid]["生命"] = JY.Person[pid]["生命"] - selfhurt;
end
if JY.Person[pid]["生命"] <= 0 then
--弹不死
JY.Person[pid]["生命"] = 1;
WAR.FXXS[pid]=1 --封穴判定
WAR.FXDS[pid]=50 --封穴点数
end
if JY.Thing[58]["未知6"] == 0 then
WAR.Person[WAR.CurID]["生命点数"] = (WAR.Person[WAR.CurID]["生命点数"] or 0)-selfhurt3;
else
WAR.Person[WAR.CurID]["生命点数"] = (WAR.Person[WAR.CurID]["生命点数"] or 0)-selfhurt
end
else --非拳系减伤5%
if JY.Thing[58]["未知6"] == 0 then
hurt=math.modf(hurt*0.7)
else
hurt=math.modf(hurt*0.9)
end
end
end
-------------------------
bug:明教焚我残躯特技会让对手内伤和灼烧到200多,然后伤害就 不正常了
if MPPD(eid) == 9 then
if WAR.Person[WAR.CurID]["我方"] ~=true then
effect(77,"特效文字2","焚我残躯",0,0)
JY.Person[pid]["生命"] = JY.Person[pid]["生命"]- (MPDJ(eid) * 10)
JY.Person[pid]["受伤程度"]=JY.Person[pid]["受伤程度"]+(MPDJ(eid) * 3)
WAR.HOT[pid] = (WAR.HOT[pid] or 0) + (MPDJ(eid) * 3)
if JY.Person[pid]["生命"]<=0 then
JY.Person[pid]["生命"]=1
end
end
end
|
|