3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 8466|回复: 36
打印 上一主题 下一主题

[推荐] [搬运工]官方bbs bug修复方法[发布自用补丁,patch2出后请自行删除]

  [复制链接]

36

主题

788

帖子

715

积分

超级玩家

Rank: 5Rank: 5

贡献度
30
金元
5946
积分
715
精华
0
注册时间
2008-1-10
跳转到指定楼层
主题
发表于 2012-11-8 13:45 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 csyyses 于 2012-11-9 17:42 编辑



code完成,2个文件直接放addon文件夹下
对未打1号补丁或者安装了其它修复补丁导致的错误,不负任何责任


z_csyyses_bug.lua (49.27 KB, 下载次数: 960)
visa_power_hint.lua (9.15 KB, 下载次数: 827)



外交术 - 不会再超出英雄领导
In skills.lua, line 383:
Code:
local can_join = math.floor(hero_lead/Logic.cp_leadship(atom)) -count




local can_join = math.floor(hero_lead/Logic.cp_leadship(atom)) - hero[atom]
大法师 - 护盾技能有效了
In unit_special_attacks.lua, line 2199:
Code:
if Attack.act_is_spellattacker, "special_magic_shield") then





if Attack.act_is_spell(receiver, "special_magic_shield") then
恶魔之书 - 智力加成改为物品加成
In spells_power.lua, line 1365:
Code:
local bonus = math.floor(100*(creator_power + int_bonus)*int_bonus)





local bonus = math.floor(100*(creator_power + item_bonus)*int_bonus)
斯瓦塔尔法海姆之歌 - 正确的加钱和主动
In visa.lua, line 170:
Code:
local bonus, penalty = pwr_visa_svartalfheim()





local gold, bonus, penalty = pwr_visa_svartalfheim()
感觉迟钝 - 修复没点这个技能时也能有效果
In arena.lua, line 553:
Code:
if kritProbRnd > kritProb then





if kritProbRnd >= kritProb then
法术/怒气技能暴击 - 正确使怒气技能暴击
in arena.lua, starting line 880:
insert the following code (in red):
Code:
   
   end        else
          if iskrit then -- íà êðèòàõ
        sdmg = -sdmg * krit
        if receiver_human then
          item_bonus_on_krit(attacker)
        end
      end
    end
    -- Óìåíèÿ Ìàðîäåðà
    if attacker_human and killed>0 and 1000==10 then
怒气之盾 - 显示是10%几率,实际上市90%,这不科学
in addon_arena.lua, line 1265:
Code:
if (rage_shield_i < Game.Random(1, 100)) then





if (rage_shield_i >= Game.Random(1, 100)) then
怒气平复 - 奖励向上取整改为向下...完全蛋疼
in spells_power.lua, line 990:
Code:
local rage_can_give = math.ceil(mana_can_get/convert_mod)





local rage_can_give = math.floor(mana_can_get/convert_mod)
先知的冰风暴 - 现在可以冰冻范围内所有人而不是仅仅中间那个
in unit_special_attacks.lua, line 1190:
Code:
effect_freeze_attack(target, dmgts+dmgts1+1, duration, 0)





effect_freeze_attack(cell, dmgts+dmgts1+1, duration, 0)
战歌奖励加成 - sb程序员把单词拼错了
in visa_power_hint.lua:
所有"skald_edda"替换为"edda_skald" (共9处)

恐惧 - 一些东西在被恐惧了还能放技能,放你妹啊
in arena.lua, line 3700:
Code:
if h > max_hazard then        max_hazard = h        target = act        prob = k * (1 + hit_count*0.5)endif h > max_hazard then        if (mover.spells.spell_scare or mover.spells.effect_fear) then                if (mover.level >= act.level) then                        max_hazard = h                        target = act                        prob = k * (1 + hit_count*0.5)                end        else                max_hazard = h                target = act                prob = k * (1 + hit_count*0.5)        endend


巨魔的安抚 - sb程序员写了2个not
in unit_features_master.lua, line 1469:
Code:
if not not hitbacking thenif not hitbacking then

冰牢+女武神之箭 - 之前可以秒杀任何单位,袁芳你说呢?
in addon_pet.lua, line 192:
Code:
everebody_dies = (Attack.act_damage( cell, ignore_posthitmaster ))if everebody_dies theneverebody_dies = (Attack.act_damage( cell, ignore_posthitmaster ))if Attack.act_is_spell(cell, "spell_ice_prison") then        everebody_dies = falseendif everebody_dies then


Mista的闪电 - 如果目标移动前对其释放这个法术,你当前的单位将跳过这个回合,理论上应该是目标跳过,算了,直接注释掉好了
in addon_pet.lua, line 79:
Code:
Attack.done_timeshift(Attack.aseq_time(0))





--Attack.done_timeshift(Attack.aseq_time(0))
冰龙死亡时跳出 - sb程序员用了个不存在的变量
in unit_features_ondamage.lua, line 307:
Code:
if initsize == 1 then  Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name","   "..blog_side_unit(0), "special", mana_count)else  Attack.log(dmgts, "add_blog_ice_dragon_death_2", "name","   "..blog_side_unit(0), "special", mana_count)if initsize == 1 then  Attack.log(dmgts, "add_blog_ice_dragon_death_1", "name","   "..blog_side_unit(0), "special", manaval)else  Attack.log(dmgts, "add_blog_ice_dragon_death_2", "name","   "..blog_side_unit(0), "special", manaval)



一些提示 - Main unit special abilities (such as the Skald's curse song or the Royal Griffin's Heavenly Guard) would have their warnings pop up when under AI control
in unit_special_attacks.lua
there are multiple spots where the change needs to be made, I'm giving a single example here, but you can find all of them by doing a search forGame.InvokeMsgBox("warning" and cycling through them. Most work just like this example:
Code:
Game.InvokeMsgBox("warning", "<label=sw_default>")Attack.log_label("null")if not Attack.is_computer_move() then        Game.InvokeMsgBox("warning", "<label=sw_default>")        Attack.log_label("null")end

暴风雪 - 暴风雪现在能正确的冰冻单位了
in spells.lua, line 6100:
Code:
effect_freeze_attack(cell_found, t_shift, 3, nil, 1)





effect_freeze_attack(cell, t_shift, 3, nil, 1)
___




评分

1

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-3-28 15:50 , Processed in 0.031417 second(s), 20 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表