[wizs] 與 special_attack 有關的部份
[/adm/daemons/shut2_d.c]
這個檔案已修正, 原先寫在裡面的 light_wall 判斷復原.
[/std/user.c]
這個檔案已修正, 獨立出兩個函數
set_special_attacks ─→┐
dump_special_attacks ←─┘
在 heart_beat 內則改呼叫 dump_special_attack
[/cmds/std/_swoop.c]
這個檔案已修正, 全部改為呼叫 set_special_attack 函數
[/adm/simul_efun/new_defance.c]
這個檔案已修正, 簡化部份判斷.
/std/user.c
void set_special_attack(mixed terms)
{
if(!terms) return ;
// 先把舊的先 dump 掉
dump_special_attack();
// 然後若該人斷線就不設, 避免資料肥大
if(!interactive(me)) return ;
// 通過上面判斷才把 terms 設進 special_attacks
temp_data["special_attacks"]=({terms});
}
這次主要是改這個函數,然後把相關的設定全都改成以呼叫
這個函數為主,然後照理說這個函數應該挪到 /std/user/attack.c
有時間會挪動。
Laechan
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.3.82
→
08/17 23:20, , 1F
08/17 23:20, 1F
※ 編輯: laechan 來自: 180.207.238.251 (08/18 10:11)
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
21
49