Explosion damage affected by transonic warp
also cap stat scalers
This commit is contained in:
parent
ef6ed85c25
commit
fb499c3820
4 changed files with 34 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
|||
How to convert:
|
||||
|
||||
0. start in the `js` directory
|
||||
1. edit `atree_constants.js`
|
||||
2. run `python3 ../py_script/atree-generateID.py
|
||||
3. check that the site still works
|
||||
|
|
|
@ -750,6 +750,7 @@ const atree_stats = new (class extends ComputeNode {
|
|||
for (const [scaling, input] of zip2(effect.scaling, effect.inputs)) {
|
||||
total += scaling * item_stats.get(input.name);
|
||||
}
|
||||
if (total < 0) { total = 0; } // Normal stat scaling will not go negative.
|
||||
if ('max' in effect && total > effect.max) { total = effect.max; }
|
||||
// TODO: output (list...)
|
||||
if (Array.isArray(effect.output)) {
|
||||
|
|
|
@ -4981,7 +4981,7 @@ const atrees = {
|
|||
"behavior": "modify",
|
||||
"target_part": "Total Damage",
|
||||
"base_spell": 2,
|
||||
"hits": {"Wind Slash": 1}
|
||||
"hits": {"Wind Slash": 1, "Explosion Damage": 1}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -5074,30 +5074,48 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Winded",
|
||||
"output": {
|
||||
"output": [
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "nConvBase:2.Wind Slash"
|
||||
},
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "nConvBase:2.Explosion Damage"
|
||||
}
|
||||
],
|
||||
"scaling": [30]
|
||||
},
|
||||
{
|
||||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Winded",
|
||||
"output": {
|
||||
"output": [
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "tConvBase:2.Wind Slash"
|
||||
},
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "tConvBase:2.Explosion Damage"
|
||||
}
|
||||
],
|
||||
"scaling": [10]
|
||||
},
|
||||
{
|
||||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Winded",
|
||||
"output": {
|
||||
"output": [
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "aConvBase:2.Wind Slash"
|
||||
},
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "aConvBase:2.Explosion Damage"
|
||||
}
|
||||
],
|
||||
"scaling": [5]
|
||||
}
|
||||
]
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue