[閒聊] 20140226修改事項

作者: laechan (揮淚斬馬雲)   2014-02-26 10:26:25
今天狀況不錯。
一、929 debug.log
程式: 0:0
物件: 0
執行時段錯誤: *Illegal to move or destruct an object
(/u/l/laechan/skycastle/room/skyfarm_worm2#817232)
defining actions from a verb function which returns zero.
這個 bug 最近又開始跑出來,原因我還在查,視情況我會關閉
農場的生怪。
locals were: "執行時段錯誤: *Bad argument 1 to call_other()
Expected: string or array or object Got: 0.
程式: /adm/daemons/room_d.c:56
物件: /adm/daemons/room_d
/d/map/cir/room/cir082 "reset" /std/ob/room.c:50
/adm/daemons/room_d "reset" /adm/daemons/room_d.c:56
/adm/daemons/room_d "CATCH" /adm/daemons/room_d.c:56
奧瑪村有個房間有問題,已修正。
locals were: "執行時段錯誤: *Bad argument 1 to userp()
Expected: object Got: 0.
程式: /std/mob/g_attack.c:19
物件: /d/dfire/caresa/npc/hydra#736709
生物名: hydra
0 "heart_beat" /std/gmonster.c:111
/adm/daemons/mob_d "continue_attack" /adm/daemons/mob_d.c:392
/adm/daemons/mob_d "execute_attack" /adm/daemons/mob_d.c:430
0 "special_fun" /d/dfire/caresa/npc/hydra.c:30
0 "shut" /std/mob/living.c:145
/adm/daemons/mob_d "shut" /adm/daemons/mob_d.c:522
/adm/daemons/shut_d "shut_tar" /adm/daemons/shut_d.c:126
/adm/obj/simul_efun "new_defance" /adm/simul_efun/new_defance.c
(/adm/obj/simul_efun.c):144
/std/user#934 "set_special_attack" /std/user.c:203
/std/user#934 "dump_special_attack" /std/user.c:190
/std/user#934 "shut2" /std/user/attack.c:172
/adm/daemons/user_d "shut2" /adm/daemons/user_d.c:1464
/adm/daemons/shut2_d "shut_tar" /adm/daemons/shut2_d.c:75
/adm/obj/simul_efun "show" /adm/simul_efun/show.c
(/adm/obj/simul_efun.c):250
/d/dfire/caresa/npc/hydra#736709 "receive_damage" /std/mob/g_attack.c:19
問題點在 new_defance 的獨孤反擊段,已做前期修正。
執行時段錯誤: *Value being indexed is zero.
程式: /u/j/justinj/area/sky/mob/sworm5.c:33
物件: /u/j/justinj/area/sky/mob/sworm5#703150
生物名: worm
/u/j/justinj/area/sky/mob/sworm5#703150 "heart_beat"
/u/j/justinj/area/sky/mob/sworm5.c:33
這個會請 justin 查一下。
二、修正 /std/pexp.c 程式段 bug
玩家 kelofox 反映隊長隊員之間均分經驗似乎有問題,經檢
查後發現確實有錯,已修正如下
if(leader_level-r>leadership ||
leader_level-r<-leadership)
continue; // 無法均分
假設隊長等級 60,leadership 100,隊員等級 10,則無法
均分經驗的判斷式是
if(60 - 10 > 100/10 || 60 - 10 < -100/10)
滿足了前面的算式。反過來說如果隊長等級 10,leadership
0,隊員等級 60
if(10 - 60 > 0/10 || 10 - 60 < 0/10)
滿足了後面的算式。若隊長等級 60,leadership 500,隊
員等級 40
if(60 - 40 > 500/10 || 60 - 40 < -500/10)
兩者都不滿足,就能均分經驗值。
kelofox 可申請回報 bug reward。
三、

Links booklink

Contact Us: admin [ a t ] ucptt.com