// 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