Merge pull request #158 from hppeng-wynn/atree-spec-doc
Add more doc for atree specification
This commit is contained in:
commit
f99e813348
3 changed files with 12 additions and 15 deletions
14
js/atree.js
14
js/atree.js
|
@ -79,12 +79,16 @@ stat_scaling: {
|
||||||
round: Optional[bool] // Control floor behavior. True for stats and false for slider by default
|
round: Optional[bool] // Control floor behavior. True for stats and false for slider by default
|
||||||
slider_behavior: Optional[str] // One of: "merge", "modify". default: merge
|
slider_behavior: Optional[str] // One of: "merge", "modify". default: merge
|
||||||
// merge: add if exist, make new part if not exist
|
// merge: add if exist, make new part if not exist
|
||||||
// modify: change existing part. do nothing if not exist
|
// modify: change existing part, by incrementing properties. do nothing if not exist
|
||||||
slider_max: Optional[float] // affected by slider_behavior
|
slider_max: Optional[float] // affected by slider_behavior
|
||||||
"inputs": Optional[list[scaling_target]],
|
inputs: Optional[list[scaling_target]] // List of things to scale. Omit this if using slider
|
||||||
"output": scaling_target | List[scaling_target],
|
|
||||||
"scaling": list[float],
|
output: Optional[scaling_target | List[scaling_target]] // One of the following:
|
||||||
"max": float
|
// 1. Single output scaling target
|
||||||
|
// 2. List of scaling targets (all scaled the same)
|
||||||
|
// 3. Omitted. no output (useful for modifying slider only without input or output)
|
||||||
|
scaling: Optional[list[float]] // One float for each input. Sums into output.
|
||||||
|
max: float
|
||||||
}
|
}
|
||||||
scaling_target: {
|
scaling_target: {
|
||||||
"type": "stat" | "prop",
|
"type": "stat" | "prop",
|
||||||
|
|
|
@ -10499,7 +10499,7 @@ const atrees = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"display_name": "Marked",
|
"display_name": "Marked",
|
||||||
"desc": "Smoke Bomb will add +1 Mark to enemies it hits. (Max 5, 0.5s Cooldown)",
|
"desc": "Smoke Bomb will add +1 Mark to enemies it hits. (Max 5, 0.5s Cooldown) Marked enemies will take +10% damage for each mark they have.",
|
||||||
"archetype": "Shadestepper",
|
"archetype": "Shadestepper",
|
||||||
"archetype_req": 5,
|
"archetype_req": 5,
|
||||||
"parents": [
|
"parents": [
|
||||||
|
@ -11127,14 +11127,7 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Marked",
|
"slider_name": "Marked",
|
||||||
"slider_max": 2,
|
"slider_max": 2
|
||||||
"output": [
|
|
||||||
{
|
|
||||||
"type": "stat",
|
|
||||||
"name": "damMult.Marked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"scaling": [10]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue