回文章列表
作者giant70.bbs@ptt.cc (劉伯溫) 看板: mud
標題[心得] 亂世群雄技能 literate
時間批踢踢實業 (2008/08/31 Sun 13:50:46)
// literate.c

#include <ansi.h>

inherit SKILL;

string type() { return "knowledge"; }

void skill_improved(object me)
{
        int s;

        s = me->query_skill("force", 1);
        if( s%10==9 && (int)me->query("int") < s/4) {
                tell_object(me, HIW "由於你的勤學苦讀,你的悟性提高了。\n" NOR);
                me->add("int", 2);
        }
}

string color()
{
        return HIG"讀書識字"NOR;
}

--
※ 發信站: 批踢踢實業坊(ptt.cc) 
◆ From: 61.31.141.177
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻