mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-12-02 13:36:03 +00:00
Processing custom strings for some properties, like skill-rand. https://d2mods.info/forum/kb/viewarticle?a=345. fixed
This commit is contained in:
parent
c40f67545f
commit
db3c6473ca
@ -95,8 +95,6 @@ class D2ItemData {
|
|||||||
// val = Prop1,Prop2 etc.
|
// val = Prop1,Prop2 etc.
|
||||||
// for each propr, get all 7 stats in ISC
|
// for each propr, get all 7 stats in ISC
|
||||||
// for now only get stat1, and for else, use dgrp
|
// for now only get stat1, and for else, use dgrp
|
||||||
|
|
||||||
|
|
||||||
// prop funcs
|
// prop funcs
|
||||||
/*
|
/*
|
||||||
* 1 - Applies a value to a stat, can use SetX parameter.
|
* 1 - Applies a value to a stat, can use SetX parameter.
|
||||||
@ -172,15 +170,17 @@ class D2ItemData {
|
|||||||
* getDesc should process string1, not file guide copy pasta
|
* getDesc should process string1, not file guide copy pasta
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ( (!empty($v['desc'])) ) {
|
if ((!empty($v['desc']))) {
|
||||||
require_once 'D2ItemDesc.php';
|
require_once 'D2ItemDesc.php';
|
||||||
$idesc = new D2ItemDesc();
|
$idesc = new D2ItemDesc();
|
||||||
$props[$k]['string'][] = ($idesc->getDesc($params));
|
|
||||||
if ($v['stat']['func1'] == '12'){
|
|
||||||
$props[$k]['string'] = "+{$params['par']} to a Random Skill";
|
|
||||||
}
|
|
||||||
ddump($props[$k]['string']);
|
|
||||||
|
|
||||||
|
// process all properties.txt func1 here, total 25 in comments above
|
||||||
|
//process property func 12, random skill
|
||||||
|
if ($v['stat']['func1'] == '12') {
|
||||||
|
$props[$k]['string'][] = "+{$params['par']} to Random Skill";
|
||||||
|
} else {
|
||||||
|
$props[$k]['string'][] = ($idesc->getDesc($params));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
@ -259,4 +259,5 @@ class D2ItemData {
|
|||||||
$this->strings[$v['prop']] = $v;
|
$this->strings[$v['prop']] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user