📄 pfm4.c
字号:
// sui.c 加攻击力#include <ansi.h>void remove_effect(object me, int a_amount, int d_amount);inherit F_SSERVER;int perform(object me, object target){ object weapon; int skill; string msg; if( !target ) target = offensive_target(me); if( !target || !target->is_character() || !me->is_fighting(target) ) return notify_fail("加攻击力只能在战斗中使用。\n"); if( (int)me->query_skill("puyaogedou", 1) < 40 ) return notify_fail("你不会使用加攻击力。\n"); if( me->query("up1") < 1 ) return notify_fail("你现在不能使用此pfm.\n"); if( me->query("pfm4") < 1 ) return notify_fail("你现在不能使用此pfm.\n"); if( (int)me->query_temp("upatt") ) return notify_fail("你已经在运功中了。\n"); skill = me->query_skill("puyaogedou"); msg = HIB "$N狂叫几声,发起狂来,全身发红,力大无比。\n"NOR; message_combatd(msg, me, target); me->add_temp("apply/damage", skill/4); me->add_temp("apply/attack", skill/3); me->set_temp("upatt", 1);if (me->query("up1")==2){ me->add_temp("apply/damage", skill/4); me->add_temp("apply/attack", skill/3);} me->start_call_out( (: call_other, __FILE__, "remove_effect", me, skill/4, skill/3 :), skill/4); if( me->is_fighting() ) me->start_busy(2); return 1;}void remove_effect(object me, int a_amount, int d_amount){ int skill; skill = me->query_skill("puyaogedou"); me->add_temp("apply/damage", -skill/4); me->add_temp("apply/attack", -skill/3);if (me->query("up1")==2){ me->add_temp("apply/damage", -skill/4); me->add_temp("apply/attack", -skill/3);} me->delete_temp("upatt"); tell_object(me, HIY "你的一阵力气用完了。\n");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -