看板 mud_sanc 關於我們 聯絡資訊
目前影響抗性的確定只有裝備而已。 所以理論上跟 ppl->temp_mod() 沒啥關係吧? 莫名的sd之後是進來是負數。穿上裝備變為0。 然後在重新quit進來就又會正常了 話說在31測試好像沒問題..sd後進來會是anti_percent([ ]); > checkvar -p anti_percent 下列玩家的資料有anti_percent 冰狩 怜(Torr:盜賊)的資料為([ "all" : 5, "dark" : 10, "dam" : 5, "fire" : 25, "ice" : 5 ]) 野望(Nozomi)的資料為([ "earth" : 0, "fire" : 0, "wind" : -10 ]) ローケン(Rocken:盜賊)的資料為([ "wind" : 0, "holy" : 0 ]) 尋金使者(Golds:戰士)的資料為([ "earth" : 0, "wind" : 0 ]) 綠左(Diso:劍士)的資料為([ ]) 月魂(Moonsoul:牧師)的資料為([ ]) 武國好棒歡迎入國(Might)[斷線中]的資料為([ ]) 八神闇(Bghades:刀客)的資料為([ ]) 七宗罪ω傲慢.路西法(Bah:騎士)的資料為([ ]) 鬼眼哈雷(Ghostrider:騎士)的資料為([ ]) 四月天(Forapril:牧師)的資料為([ "all" : 15 ]) 艾爾文特(Alvint:騎士)的資料為([ "all" : -5 ]) 偽女王陛下(WEAPON:法師)的資料為([ "wind" : 0, "thunder" : 0 ]) -- Norr@Sanc 風,吹散了一切煩惱,只留下平靜的思考。 雨,淋落了一切紛亂,只剩下無比的快樂。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.117.46.189
laechan :檢查 /adm/daemons/user_d.c 的 quit 函數 07/29 11:00
laechan :另外玩家 login 時在 complete_setup 函數那裡也加上 07/29 11:00
laechan :anti_percent = ([]) 07/29 11:00
laechan :這樣就可確定玩家 login 時至少會重置 anti_percent 07/29 11:01
laechan :另外防具抗性設定要公定為 anti_percent 還是別的? 07/29 11:02
justinj :anti_effect :([ "water" : 50 ]) 07/29 11:05
justinj :目前防具設定方法 07/29 11:05
laechan :那第一步就是先移除在 wear 該裝備時, 會造成玩家身 07/29 11:19
laechan :上數值變化的程式段, 先讓防具設定單純化 07/29 11:20
hlead :防具會在wear轉換為anti_percent.. 07/29 12:45
hlead :ob->set("effect/anti_percent-"+ap,ob->query("anti 07/29 12:45
hlead :_effect/"+ap)); 07/29 12:45
laechan :這就要看你了,設在effect欄位就可能會有你早上貼的那 07/29 14:07
laechan :個問題(值有可能為負),不設在effect區就把加設的移除 07/29 14:07
laechan :而當初設在effect區則是為了讓相關顯示集中,所以有好 07/29 14:08
laechan :有壞,我有solution,不過你可以把它當成練習 07/29 14:08
hlead :全部改為anti_effect然後不同化看看好了.. 07/29 14:41
laechan :嗯,然後讓你的抗性計算函數只先讀玩家的特定部位防具 07/29 15:27
laechan :的 anti_effect 欄位看看,先實裝這一部份比較單純 07/29 15:27