Skip to content

Commit

Permalink
SQUASH: feat: HP摘要配色从此可以定制了
Browse files Browse the repository at this point in the history
  • Loading branch information
dzpao committed Nov 30, 2023
1 parent d38be01 commit cde5973
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions mud/pkuxkx/plugins/basic/char/hp.tin
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ hp -neili 格式:
#local head {};
#local tail {};
#local safety {};
#local label {};
#local width {@prompt.ScreenWidth{}};

#if { $char[HP][气血百分比] < 30 || $char[HP][精神百分比] < 70 } {
Expand All @@ -333,6 +334,10 @@ hp -neili 格式:
#local safety {安全};
};

#if { "$char[HP][战斗中]" == "true" } {
#local label {<188>};
};

#local theme {$char.HPSummarize.Theme};
#switch {"$char[HP][战斗中]/$char[HP][忙]/$safety"} {
#case {"false/false/%*"} {
Expand Down Expand Up @@ -379,7 +384,7 @@ hp -neili 格式:
#else {
#local 每秒气血变化 {};
};
#format 气血 {气血: %s%s/%s}
#format 气血 {$label气血: %s%s/%s}
{@char.hp.colorit{$char[HP][气血百分比]}} {${每秒气血变化}}
{@char.hp.colorit{$char[HP][气血健康度]}};

Expand All @@ -395,7 +400,7 @@ hp -neili 格式:
#else {
#local 每秒内力变化 {};
};
#format 内力 { 内力: %s%s} {@char.hp.colorit{$char[HP][内力百分比]}} {${每秒内力变化}};
#format 内力 { $label内力: %s%s} {@char.hp.colorit{$char[HP][内力百分比]}} {${每秒内力变化}};
};

#local 精神 {};
Expand All @@ -410,7 +415,7 @@ hp -neili 格式:
#else {
#local 每秒精神变化 {};
};
#format 精神 { 精神: %s%s/%s}
#format 精神 { $label精神: %s%s/%s}
{@char.hp.colorit{$char[HP][精神百分比]}} {${每秒精神变化}}
{@char.hp.colorit{$char[HP][精神健康度]}};
};
Expand All @@ -427,7 +432,7 @@ hp -neili 格式:
#else {
#local 每秒精力变化 {};
};
#format 精力 { 精力: %s%s} {@char.hp.colorit{$char[HP][精力百分比]}} {${每秒精力变化}};
#format 精力 { $label精力: %s%s} {@char.hp.colorit{$char[HP][精力百分比]}} {${每秒精力变化}};
};

#local 回气 {};
Expand All @@ -436,7 +441,7 @@ hp -neili 格式:
#local {气血恢复} {@math.Int{@math.Eval{$char[STATUS][气血恢复] * 100 * 60 / $char[HP][最大气血]}}};
#nop 气血治疗的数值展示为每分钟可以治疗的最大血量的倍数(以百分比形式);
#local {气血治疗} {@math.Int{@math.Eval{$char[STATUS][气血治疗] * 100 * 60 / $char[HP][最大气血]}}};
#format {回气} { 回气: %s/%s} {@char.hp.colorit{${气血恢复}}} {@char.hp.colorit{${气血治疗}}};
#format {回气} { $label回气: %s/%s} {@char.hp.colorit{${气血恢复}}} {@char.hp.colorit{${气血治疗}}};
};

#local 食水 {};
Expand Down Expand Up @@ -554,6 +559,10 @@ hp -neili 格式:
};
};

///=== {
// ## char.UncolorEnemy
// 擦掉敌人的血量告警提示的颜色,防止麻痹眼睛。
// };
#alias {char.UncolorEnemy} {
#class char.UncolorEnemy open;

Expand All @@ -574,6 +583,7 @@ hp -neili 格式:
#sub {^( %+2..5u已经一副头重脚轻的模样,正在勉力支撑著不倒下去。} {%%0};
#sub {^( %+2..5u已经伤痕累累,正在勉力支撑著不倒下去。} {%%0};
#sub {^( %+2..5u已经陷入半昏迷状态,随时都可能摔倒晕去。} {%%0};
#sub {^( %+2..5u受伤过重,已经有如风中残烛,随时都可能断气。} {%%0};

#class char.UncolorEnemy close;
};

0 comments on commit cde5973

Please sign in to comment.