Skip to content

Commit

Permalink
Merge pull request #4 from tometeX/master
Browse files Browse the repository at this point in the history
重新提交青云鞭和辟邪剑PFM,修正代码错误
  • Loading branch information
oiuv authored Mar 10, 2018
2 parents 9b7037c + b76f04d commit 7c4e9f5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
* 修正对晕倒目标可释放PFM的BUG
* 小幅增强葵花魔攻
* 修正削弱辟邪剑法
* 修正青云鞭BUG
9 changes: 8 additions & 1 deletion kungfu/skill/pixie-jian/pi.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ int perform(object me, object target)
int i;
int skill;
int count;
int dp;

if (userp(me) && ! me->query("can_perform/pixie-jian/pi"))
return notify_fail("你所使用的外功中没有这种功能。\n");
Expand Down Expand Up @@ -61,7 +62,13 @@ int perform(object me, object target)
HIW "幻作数道虚影,顿时无数星光一齐射向$n" HIW "!\n" NOR;
message_combatd(msg, me, target);

count = skill / 4;
dp = target->query_skill("dodge", 1);
if (skill / 2 + random(skill) > dp){
count = skill / 4;
}
else{
count = skill/15;
}
me->add_temp("apply/attack", count);
me->add_temp("apply/damage", count);
me->add_temp("apply/unarmed_dage", count);
Expand Down
42 changes: 22 additions & 20 deletions kungfu/skill/qingyun-bian.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,76 @@
#include <ansi.h>

inherit SHAOLIN_SKILL;
int fc = (int)this_player()->query("max_neili")/4;
int dg = (int)this_player()->query("shen")/1500;

mapping *action = ({
([ "action":"$N一招"HIR" 聚火 "NOR",手扬鞭起,手中$w将$n团团围住,内力一吐,鞭圈匀速缩小。",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": -10,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "聚火",
"damage_type": "内伤"
]),
([ "action":"$N左手虚幻,右手$w一招"HIC" 起光 "NOR",手中$w由似一条青龙迅速击向$n。",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 5,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "起光",
"damage_type": "刺伤"
]),
([ "action":"$N腾空而起,手中$w舞成圆环,一招"HIB" 招雨 "NOR"压向$n,令$n无处可躲。",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 10,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "招雨",
"damage_type": "内伤"
]),
([ "action":"$N力贯鞭梢,一招"HIR" 动雷 "NOR",手中$w舞出满天鞭影,排山倒海般扫向$n全身",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": -5,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "动雷",
"damage_type": "淤伤"
]),
([ "action":"$N往前一纵, 但见$N身形一转,一招"HIC" 移电 "NOR",手中$w如鬼魅一般,神不知鬼不觉地袭向$n的$l!",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": -10,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "移电",
"damage_type": "刺伤"
]),
([ "action":"$N手持$w,力贯鞭稍,一招"HIR" 剪虹 "NOR"手中$w犹如彩虹般击向$n,已将$n笼罩于鞭下。",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": -20,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name": "剪虹",
]),
([ "action":"$N左手虚晃,右脚突然向前迈出,一招"CYN" 止风 "NOR",右手$w如同鬼魅一般无声无息的刺向$n!",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 0,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "止风",
"damage_type": "刺伤"
]),
([ "action":"$N向前纵出,身体飞过$n头顶,一招"HIW" 断云 "NOR"手中$w击向$n的$l",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 100,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "断云",
"damage_type": "内伤"
]),
([ "action":"$N手中$w晃出满天鞭影,一招"HIB" 遮月 "NOR"虚虚实实的鞭影,铺天盖地的击向$n",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 50,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "遮月",
"damage_type": "淤伤"
]),
([ "action":"$N一招"YEL" 掩日 "NOR"手中$w形似蛟龙又似飞蝗,密不透风的罩向$n!",
"force": (int)this_player()->query("max_neili")/4,
"force": fc>200?200:fc,
"dodge": 40,
"damage": (int)this_player()->query("shen")/1500,
"damage": dg>100?100:dg,
"skill_name" : "掩日",
"damage_type": "淤伤"
]),
Expand Down

0 comments on commit 7c4e9f5

Please sign in to comment.