int wield() { object me = environment(); if (query_amount() > 1){ if ((me->query_skill("riyue-lun", 1) + me->query_skill("hammer", 1)/2)/query_amount() < 50 || (me->query_str() - 10 )/5 < query_amount() || query_amount() > 5 || me->query_skill("longxiang-banruo", 1) < 101) return notify_fail("你使不了那么多法轮。\n"); } return ::wield(); }
int value() { return query_amount() * (int)query("base_value"); }
void add_amount(int v) { set_amount((int)query_amount()+v); }
string query_autoload() { return query_amount() + ""; }