Skip to content
kmalone86 edited this page Mar 27, 2019 · 9 revisions

This is just a place to store some extra things to keep it out of master's code area.

jsonAct.py is a python program to modify the json in project faster when Databuilder is overkill.

Uncommitted runs saved:



(Fix awakening)
./jsonAct.py set all eff 0.12 findVal 0.06 "path=['list:awakening','*']"
./jsonAct.py set all eff 0.06 findVal 0.03 "path=['list:awakening','*']"
./jsonAct.py set all efr 0.12 findVal 0.06 "path=['list:awakening','*']"
./jsonAct.py set all efr 0.06 findVal 0.03 "path=['list:awakening','*']"
./jsonAct.py set all chc 0.08 findVal 0.06 "path=['list:awakening','*']"
./jsonAct.py set all chc 0.04 findVal 0.03 "path=['list:awakening','*']"
./jsonAct.py set all chd 0.10 findVal 0.06 "path=['list:awakening','*']"
./jsonAct.py set all chd 0.05 findVal 0.03 "path=['list:awakening','*']"

(add def,hp,spd modifiers to skill on hero)
./jsonAct.py addToList zzz damageModifiers "{\"name\":\"statModifier\",\"description\":\"\",\"section\":\"additive\",\"stat\":\"def\",\"type\":\"multiplier\",\"target\":\"self\",\"value\":0.0,\"soulburn\":0.0}" "path=['list:skills', 'item:1']" filename kitty-clarissa.json

./jsonAct.py addToList zzz damageModifiers "{\"name\":\"statModifier\",\"description\":\"\",\"section\":\"additive\",\"stat\":\"hp\",\"type\":\"multiplier\",\"target\":\"self\",\"value\":0.0,\"soulburn\":0.0}" "path=['list:skills', 'item:1']" filename kitty-clarissa.json

./jsonAct.py addToList zzz damageModifiers "{\"name\":\"statModifier\",\"description\":\"\",\"section\":\"multiplicative\",\"stat\":\"spd\",\"type\":\"multiplier\",\"target\":\"self\",\"value\":0.0,\"soulburn\":0.0}" "path=['list:skills', 'item:1']" filename kitty-clarissa.json

(Fix stats order)
./jsonAct.py move all cp 0
./jsonAct.py move all atk 1
./jsonAct.py move all hp 2
./jsonAct.py move all spd 3
./jsonAct.py move all def 4
./jsonAct.py move all chc 5
./jsonAct.py move all chd 6
./jsonAct.py move all eff 7
./jsonAct.py move all efr 8
./jsonAct.py move all dac 9

(Create 5* awakened stat section and copy max 5* as closest to value)
./jsonAct.py insert all lv60SixStarNoAwaken lv50FiveStarFullyAwakened
./jsonAct.py copy all lv50FiveStarNoAwaken lv50FiveStarFullyAwakened

./jsonAct.py insert luna.json specialtySkill camping {}
./jsonAct.py addToDict luna.json camping chatOptions []
./jsonAct.py addToDict luna.json camping chatReactions {}

./jsonAct.py fromFile camping_values.json "['var:{\\'type\\':\\'dict\\', \\'value\\':[\\'name\\']}', 'chats']" luna.json "['dict:camping', 'list:chatOptions']"



./jsonAct.py insert all debuffs damageModifiers []
./jsonAct.py addToList all damageModifiers "{\"name\":\"pow\",\"value\":0}"
./jsonAct.py addToList all damageModifiers "{\"name\":\"statModifier\",\"stat\":\"atk\",\"type\":\"additive\",\"target\":\"\",\"value\":0}"
./jsonAct.py addToList a damageModifiers "{\"name\":\"statModifier\",\"stat\":\"hp\",\"type\":\"additive\",\"target\":\"\",\"value\":0}" filename luna.json

./jsonAct.py set all target self

./jsonAct.py addToList a damageModifiers "{\"name\":\"statModifier\",\"stat\":\"hp\",\"type\":\"additive\",\"target\":\"\",\"value\":0}" filename 
./jsonAct.py addToList a damageModifiers "{\"name\":\"statModifier\",\"stat\":\"def\",\"type\":\"additive\",\"target\":\"\",\"value\":0}" filename 
./jsonAct.py addToList a damageModifiers "{\"name\":\"statModifier\",\"stat\":\"spd\",\"type\":\"additive\",\"target\":\"\",\"value\":0}" filename 
./jsonAct.py addToList a damageModifiers "{\"name\":\"hpMissing\",\"stat\":\"spd\",\"type\":\"multiplicative\",\"target\":\"\",\"value\":0}" filename 

Clone this wiki locally