Re: [問題] about enchant kr

作者: laechan (揮淚斬馬雲)   2015-01-13 23:57:32
這程式段寫在 /adm/daemons/mob_d.c 的 die 函數,所有沒有
自訂 die 函數的怪物,陣亡時都會呼叫該函數,並執行底下:
189: // Laechan@Sanc add in 2012/08/10 for 魔法武器
190: if(wp)
191: if((int)wp->enchant("kr")>99)
192: killer->full_3p(111);
我用 running code 去跑:
obs=users();
foreach(ob in obs)
{
if(ob=ob->query("weapon1"))
{
if(ob->enchant("kr"))
write(ob->enchant("kr")+"\n");
}
}
========== 程式執行區 ==========
1500
1500
1500
1500
1500
1500
700
1500
========== 程式執行區 ==========
所以上面 >99 的判斷是絕對會 init 到的。
> score l
第[120]級 男性妖精戰神司祭

Links booklink

Contact Us: admin [ a t ] ucptt.com