Skip to content

Commit d119419

Browse files
author
Michael Chaudhary
committed
Merge branch 'master' into 'master'
Description Update See merge request hydrawiki/extensions/pvxcode!12
2 parents fe27730 + dafbf18 commit d119419

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

css/pvxcode.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ span.pvx_attrib_bg img {
153153
display:block;
154154
margin:0;
155155
padding:0;
156-
padding-left:7px;
156+
padding-left:1px;
157157
}
158158

159159
/* Tooltips - Left column - sacrifice, energy, overcast, recharge, activation, adrenaline. */

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PvX Code",
3-
"version": "2.0.0.3",
3+
"version": "2.0.0.4",
44
"author": [
55
"Hydra Wiki Platform Team",
66
"PvX Wiki 2010-2020 Contributors"

gwbbcode/constants.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
//gwBBCode's version
3-
define('GWBBCODE_VERSION', '2.0.0.3');
3+
define('GWBBCODE_VERSION', '2.0.0.4');
44

55
// DATABASE PATHS
66
// Skill ids to details

gwbbcode/databases/skill_db.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8708,7 +8708,7 @@
87088708
'recharge'=>25,
87098709
'pve_only'=>0,
87108710
'elite'=>1,
8711-
'desc'=>'If Oath Shot hits, all of your skills except Oath Shot are recharged. If it misses, all of your skills are disabled for 10 seconds. (50% miss chance with Expertise 7 or less.)',
8711+
'desc'=>'If Oath Shot hits, all of your skills except Oath Shot are recharged. If it misses, all of your skills are disabled for 10..4 seconds. (50% miss chance with Expertise 7 or less.)',
87128712
'name_id'=>'oath shot',
87138713
),
87148714
406=>

gwbbcode/gwbbcode.inc.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ function skill_replace($reg) {
644644
if ($sacrifice != 0) {
645645
$required[] = infuse_values($gwbbcode_tpl['requirement'], Array(
646646
'type' => 'sacr',
647-
'value' => $sacrifice
647+
'value' => $sacrifice . '%'
648648
));
649649
}
650650

@@ -1231,8 +1231,12 @@ function fork_val_pve_only($val_0, $val_15, $attr_lvl, $rank_limit) {
12311231
function add_strength($desc, &$extra_desc, $attr_list, $type) {
12321232
if (isset($attr_list['Strength']) && $attr_list['Strength'] > 0 && strpos($type, 'Attack') !== false) {
12331233
// Strength does not stack with skills with inherent armor penetration
1234-
if (!preg_match('@[Tt]his (attack|axe attack) has ([0-9]+)% armor penetration@', $desc, $reg)) {
1235-
$extra_desc = 'This attack skill has <b>' . $attr_list['Strength'] . '</b>% armor penetration.';
1234+
if (preg_match('@[Tt]his (attack|axe attack) has ([0-9]+)% armor penetration@', $desc, $reg)) {
1235+
if ($reg[2] < $strength) {
1236+
$extra_desc = 'This attack skill has <b>' . $strength . '</b>% armor penetration. Its inherent armor penetration is overwritten.';
1237+
}
1238+
} else {
1239+
$extra_desc = 'This attack skill has <b>' . $strength . '</b>% armor penetration.';
12361240
}
12371241
}
12381242
}

0 commit comments

Comments
 (0)