📄 fei.c
字号:
// fei.c 飞仙术#include <ansi.h>#include <skill.h>#include <weapon.h>#include <combat.h>inherit F_SSERVER; int perform(object me, object target){ object weapon; string msg; int count; int i; if (! target) { me->clean_up_enemy(); target = me->select_opponent(); } if (! target || ! me->is_fighting(target)) return notify_fail("蛇岛飞仙术只能对战斗中的对手使用。\n"); if (! objectp(weapon = me->query_temp("weapon")) || (string)weapon->query("skill_type") != "sword" && (string)weapon->query("skill_type") != "staff") return notify_fail("你必须持剑或杖才能施展蛇岛飞仙术!\n"); if ((int)me->query("neili") < 150) return notify_fail("你的真气不够!\n"); if ((int)me->query_skill("force") < 100) return notify_fail("你的内功火候不够!\n"); if ((int)me->query_skill("shedao-qigong", 1) < 180) return notify_fail("你的蛇岛奇功的修为法还不到家,无法使用飞仙术!\n"); if (me->query_skill("shenlong-xinfa", 1) < 50) return notify_fail("你的本门内功修为有限,不能使用「神龙再现」!\n"); if (! living(target)) return notify_fail("对方都已经这样了,用不着这么费力吧?\n"); switch (random(3)) { case 0: msg = HIY "$N" HIY "怪叫一声,手中的" + weapon->name() + HIY "一晃,化作数道光影飞向$n" HIY "!\n" NOR; break; case 1: msg = HIY "$N" HIY "口中念念有词,手中的" + weapon->name() + HIY "越使越快,渐渐形成一团光芒,笼罩了$n" HIY "!\n" NOR; break; default: msg = HIY "$N" HIY "怪笑两声,欺身近来,步法极其怪异,手中的" + weapon->name() + HIY "忽然击出,一连数招逼向$n" HIY "!\n" NOR; break; } message_combatd(msg, me, target); me->add("neili", -100); count = me->query_skill("shedao-qigong", 1) / 5; me->add_temp("apply/attack", count); for (i = 0; i < 7; i++) { if (! me->is_fighting(target)) break; if (random(3) == 0 && ! target->is_busy()) target->start_busy(1); COMBAT_D->do_attack(me, target, weapon, 0); } me->add_temp("apply/attack", -count); me->start_busy(2 + random(4)); return 1;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -