Comments (7)
Could we integrate the script into soracli
(may be translated into Golang)? So that when the formulas in game are updated in the future, we wouldn't need to manually update it anymore
from backend-next.
from backend-next.
Issue merged
from backend-next.
Comparing to the old formulas:
- 芯片 and 碳 etc. were included.
- fixed 晶体元件‘s id from "30133" to "31033"
- fixed 晶体电路's id from "30134" to "31034"
- added 精炼溶剂 and 切削原液 to some formula's extra outcomes
from backend-next.
new formulas.json
:
[{"id":"30135","name":"D32钢","goldCost":400,"costs":[{"id":"30084","name":"三水锰矿","rarity":3,"count":1},{"id":"30094","name":"五水研磨石","rarity":3,"count":1},{"id":"30104","name":"RMA70-24","rarity":3,"count":1}],"extraOutcome":[{"id":"30014","name":"提纯源岩","rarity":3,"count":1,"weight":84},{"id":"30024","name":"糖聚块","rarity":3,"count":1,"weight":63},{"id":"30034","name":"聚酸酯块","rarity":3,"count":1,"weight":63},{"id":"30044","name":"异铁块","rarity":3,"count":1,"weight":56},{"id":"30054","name":"酮阵列","rarity":3,"count":1,"weight":56},{"id":"30064","name":"改量装置","rarity":3,"count":1,"weight":42},{"id":"30074","name":"白马醇","rarity":3,"count":1,"weight":72},{"id":"30084","name":"三水锰矿","rarity":3,"count":1,"weight":63},{"id":"30094","name":"五水研磨石","rarity":3,"count":1,"weight":63},{"id":"30104","name":"RMA70-24","rarity":3,"count":1,"weight":56},{"id":"31014","name":"聚合凝胶","rarity":3,"count":1,"weight":72},{"id":"31024","name":"炽合金块","rarity":3,"count":1,"weight":63},{"id":"31034","name":"晶体电路","rarity":3,"count":1,"weight":56},{"id":"31044","name":"精炼溶剂","rarity":3,"count":1,"weight":63},{"id":"31054","name":"切削原液","rarity":3,"count":1,"weight":63}],"totalWeight":935},{"id":"30125","name":"双极纳米片","goldCost":400,"costs":[{"id":"30064","name":"改量装置","rarity":3,"count":1},{"id":"30074","name":"白马醇","rarity":3,"count":2}],"extraOutcome":[{"id":"30014","name":"提纯源岩","rarity":3,"count":1,"weight":84},{"id":"30024","name":"糖聚块","rarity":3,"count":1,"weight":63},{"id":"30034","name":"聚酸酯块","rarity":3,"count":1,"weight":63},{"id":"30044","name":"异铁块","rarity":3,"count":1,"weight":56},{"id":"30054","name":"酮阵列","rarity":3,"count":1,"weight":56},{"id":"30064","name":"改量装置","rarity":3,"count":1,"weight":42},{"id":"30074","name":"白马醇","rarity":3,"count":1,"weight":72},{"id":"30084","name":"三水锰矿","rarity":3,"count":1,"weight":63},{"id":"30094","name":"五水研磨石","rarity":3,"count":1,"weight":63},{"id":"30104","name":"RMA70-24","rarity":3,"count":1,"weight":56},{"id":"31014","name":"聚合凝胶","rarity":3,"count":1,"weight":72},{"id":"31024","name":"炽合金块","rarity":3,"count":1,"weight":63},{"id":"31034","name":"晶体电路","rarity":3,"count":1,"weight":56},{"id":"31044","name":"精炼溶剂","rarity":3,"count":1,"weight":63},{"id":"31054","name":"切削原液","rarity":3,"count":1,"weight":63}],"totalWeight":935},{"id":"30115","name":"聚合剂","goldCost":400,"costs":[{"id":"30014","name":"提纯源岩","rarity":3,"count":1},{"id":"30044","name":"异铁块","rarity":3,"count":1},{"id":"30054","name":"酮阵列","rarity":3,"count":1}],"extraOutcome":[{"id":"30014","name":"提纯源岩","rarity":3,"count":1,"weight":84},{"id":"30024","name":"糖聚块","rarity":3,"count":1,"weight":63},{"id":"30034","name":"聚酸酯块","rarity":3,"count":1,"weight":63},{"id":"30044","name":"异铁块","rarity":3,"count":1,"weight":56},{"id":"30054","name":"酮阵列","rarity":3,"count":1,"weight":56},{"id":"30064","name":"改量装置","rarity":3,"count":1,"weight":42},{"id":"30074","name":"白马醇","rarity":3,"count":1,"weight":72},{"id":"30084","name":"三水锰矿","rarity":3,"count":1,"weight":63},{"id":"30094","name":"五水研磨石","rarity":3,"count":1,"weight":63},{"id":"30104","name":"RMA70-24","rarity":3,"count":1,"weight":56},{"id":"31014","name":"聚合凝胶","rarity":3,"count":1,"weight":72},{"id":"31024","name":"炽合金块","rarity":3,"count":1,"weight":63},{"id":"31034","name":"晶体电路","rarity":3,"count":1,"weight":56},{"id":"31044","name":"精炼溶剂","rarity":3,"count":1,"weight":63},{"id":"31054","name":"切削原液","rarity":3,"count":1,"weight":63}],"totalWeight":935},{"id":"30104","name":"RMA70-24","goldCost":300,"costs":[{"id":"30103","name":"RMA70-12","rarity":2,"count":1},{"id":"30013","name":"固源岩组","rarity":2,"count":2},{"id":"30053","name":"酮凝集组","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30094","name":"五水研磨石","goldCost":300,"costs":[{"id":"30093","name":"研磨石","rarity":2,"count":1},{"id":"30043","name":"异铁组","rarity":2,"count":1},{"id":"30063","name":"全新装置","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30084","name":"三水锰矿","goldCost":300,"costs":[{"id":"30083","name":"轻锰矿","rarity":2,"count":2},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1},{"id":"30073","name":"扭转醇","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30074","name":"白马醇","goldCost":300,"costs":[{"id":"30073","name":"扭转醇","rarity":2,"count":1},{"id":"30023","name":"糖组","rarity":2,"count":1},{"id":"30103","name":"RMA70-12","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30062","name":"装置","goldCost":100,"costs":[{"id":"30061","name":"破损装置","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30063","name":"全新装置","goldCost":200,"costs":[{"id":"30062","name":"装置","rarity":1,"count":4}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30064","name":"改量装置","goldCost":300,"costs":[{"id":"30063","name":"全新装置","rarity":2,"count":1},{"id":"30013","name":"固源岩组","rarity":2,"count":2},{"id":"30093","name":"研磨石","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30052","name":"酮凝集","goldCost":100,"costs":[{"id":"30051","name":"双酮","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30053","name":"酮凝集组","goldCost":200,"costs":[{"id":"30052","name":"酮凝集","rarity":1,"count":4}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30054","name":"酮阵列","goldCost":300,"costs":[{"id":"30053","name":"酮凝集组","rarity":2,"count":2},{"id":"30023","name":"糖组","rarity":2,"count":1},{"id":"30083","name":"轻锰矿","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30042","name":"异铁","goldCost":100,"costs":[{"id":"30041","name":"异铁碎片","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30043","name":"异铁组","goldCost":200,"costs":[{"id":"30042","name":"异铁","rarity":1,"count":4}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30044","name":"异铁块","goldCost":300,"costs":[{"id":"30043","name":"异铁组","rarity":2,"count":2},{"id":"30063","name":"全新装置","rarity":2,"count":1},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30032","name":"聚酸酯","goldCost":100,"costs":[{"id":"30031","name":"酯原料","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30033","name":"聚酸酯组","goldCost":200,"costs":[{"id":"30032","name":"聚酸酯","rarity":1,"count":4}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30034","name":"聚酸酯块","goldCost":300,"costs":[{"id":"30033","name":"聚酸酯组","rarity":2,"count":2},{"id":"30053","name":"酮凝集组","rarity":2,"count":1},{"id":"30073","name":"扭转醇","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30022","name":"糖","goldCost":100,"costs":[{"id":"30021","name":"代糖","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30023","name":"糖组","goldCost":200,"costs":[{"id":"30022","name":"糖","rarity":1,"count":4}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30024","name":"糖聚块","goldCost":300,"costs":[{"id":"30023","name":"糖组","rarity":2,"count":2},{"id":"30043","name":"异铁组","rarity":2,"count":1},{"id":"30083","name":"轻锰矿","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30012","name":"固源岩","goldCost":100,"costs":[{"id":"30011","name":"源岩","rarity":0,"count":3}],"extraOutcome":[{"id":"30011","name":"源岩","rarity":0,"count":1,"weight":15},{"id":"30021","name":"代糖","rarity":0,"count":1,"weight":10},{"id":"30031","name":"酯原料","rarity":0,"count":1,"weight":10},{"id":"30041","name":"异铁碎片","rarity":0,"count":1,"weight":8},{"id":"30051","name":"双酮","rarity":0,"count":1,"weight":8},{"id":"30061","name":"破损装置","rarity":0,"count":1,"weight":6}],"totalWeight":57},{"id":"30013","name":"固源岩组","goldCost":200,"costs":[{"id":"30012","name":"固源岩","rarity":1,"count":5}],"extraOutcome":[{"id":"30012","name":"固源岩","rarity":1,"count":1,"weight":15},{"id":"30022","name":"糖","rarity":1,"count":1,"weight":10},{"id":"30032","name":"聚酸酯","rarity":1,"count":1,"weight":10},{"id":"30042","name":"异铁","rarity":1,"count":1,"weight":8},{"id":"30052","name":"酮凝集","rarity":1,"count":1,"weight":8},{"id":"30062","name":"装置","rarity":1,"count":1,"weight":6}],"totalWeight":57},{"id":"30014","name":"提纯源岩","goldCost":300,"costs":[{"id":"30013","name":"固源岩组","rarity":2,"count":4}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"31024","name":"炽合金块","goldCost":300,"costs":[{"id":"30063","name":"全新装置","rarity":2,"count":1},{"id":"30093","name":"研磨石","rarity":2,"count":1},{"id":"31023","name":"炽合金","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"31014","name":"聚合凝胶","goldCost":300,"costs":[{"id":"30043","name":"异铁组","rarity":2,"count":1},{"id":"31013","name":"凝胶","rarity":2,"count":1},{"id":"31023","name":"炽合金","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"30145","name":"晶体电子单元","goldCost":400,"costs":[{"id":"31034","name":"晶体电路","rarity":3,"count":1},{"id":"31014","name":"聚合凝胶","rarity":3,"count":2},{"id":"31024","name":"炽合金块","rarity":3,"count":1}],"extraOutcome":[{"id":"30014","name":"提纯源岩","rarity":3,"count":1,"weight":84},{"id":"30024","name":"糖聚块","rarity":3,"count":1,"weight":63},{"id":"30034","name":"聚酸酯块","rarity":3,"count":1,"weight":63},{"id":"30044","name":"异铁块","rarity":3,"count":1,"weight":56},{"id":"30054","name":"酮阵列","rarity":3,"count":1,"weight":56},{"id":"30064","name":"改量装置","rarity":3,"count":1,"weight":42},{"id":"30074","name":"白马醇","rarity":3,"count":1,"weight":72},{"id":"30084","name":"三水锰矿","rarity":3,"count":1,"weight":63},{"id":"30094","name":"五水研磨石","rarity":3,"count":1,"weight":63},{"id":"30104","name":"RMA70-24","rarity":3,"count":1,"weight":56},{"id":"31014","name":"聚合凝胶","rarity":3,"count":1,"weight":72},{"id":"31024","name":"炽合金块","rarity":3,"count":1,"weight":63},{"id":"31034","name":"晶体电路","rarity":3,"count":1,"weight":56},{"id":"31044","name":"精炼溶剂","rarity":3,"count":1,"weight":63},{"id":"31054","name":"切削原液","rarity":3,"count":1,"weight":63}],"totalWeight":935},{"id":"31034","name":"晶体电路","goldCost":300,"costs":[{"id":"31033","name":"晶体元件","rarity":2,"count":2},{"id":"31013","name":"凝胶","rarity":2,"count":1},{"id":"31023","name":"炽合金","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"31044","name":"精炼溶剂","goldCost":300,"costs":[{"id":"31043","name":"半自然溶剂","rarity":2,"count":1},{"id":"31053","name":"化合切削液","rarity":2,"count":1},{"id":"31013","name":"凝胶","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609},{"id":"31054","name":"切削原液","goldCost":300,"costs":[{"id":"31053","name":"化合切削液","rarity":2,"count":1},{"id":"31033","name":"晶体元件","rarity":2,"count":1},{"id":"30103","name":"RMA70-12","rarity":2,"count":1}],"extraOutcome":[{"id":"30013","name":"固源岩组","rarity":2,"count":1,"weight":60},{"id":"30023","name":"糖组","rarity":2,"count":1,"weight":50},{"id":"30033","name":"聚酸酯组","rarity":2,"count":1,"weight":50},{"id":"30043","name":"异铁组","rarity":2,"count":1,"weight":40},{"id":"30053","name":"酮凝集组","rarity":2,"count":1,"weight":40},{"id":"30063","name":"全新装置","rarity":2,"count":1,"weight":30},{"id":"30073","name":"扭转醇","rarity":2,"count":1,"weight":45},{"id":"30083","name":"轻锰矿","rarity":2,"count":1,"weight":40},{"id":"30093","name":"研磨石","rarity":2,"count":1,"weight":36},{"id":"30103","name":"RMA70-12","rarity":2,"count":1,"weight":30},{"id":"31013","name":"凝胶","rarity":2,"count":1,"weight":36},{"id":"31023","name":"炽合金","rarity":2,"count":1,"weight":40},{"id":"31033","name":"晶体元件","rarity":2,"count":1,"weight":40},{"id":"31043","name":"半自然溶剂","rarity":2,"count":1,"weight":36},{"id":"31053","name":"化合切削液","rarity":2,"count":1,"weight":36}],"totalWeight":609}]
Comparing to the old formulas:
- fixed 晶体元件‘s id from "30133" to "31033"
- fixed 晶体电路's id from "30134" to "31034"
- added 精炼溶剂 and 切削原液 to some formula's extra outcomes
from backend-next.
also, new script:
const fs = require("fs");
const building_data_json = JSON.parse(fs.readFileSync("./building_data.json", "utf8"));
const item_table_json = JSON.parse(fs.readFileSync("./item_table.json", "utf8"));
const items = item_table_json.items;
const rawFormulas = building_data_json.workshopFormulas;
const newFormulas = Object.entries(rawFormulas)
.filter(([, formula]) => formula.formulaType === "F_EVOLVE") // only include evolve materials
.map(([, formula]) => {
let costs = formula.costs.map((costItem) => ({
id: costItem.id,
name: items[costItem.id].name,
rarity: items[costItem.id].rarity,
count: costItem.count,
}));
let extraOutcome = formula.extraOutcomeGroup.map((extraOutcomeItem) => ({
id: extraOutcomeItem.itemId,
name: items[extraOutcomeItem.itemId].name,
rarity: items[extraOutcomeItem.itemId].rarity,
count: extraOutcomeItem.itemCount,
weight: extraOutcomeItem.weight,
}));
let totalWeight = extraOutcome.map((extraOutcomeItem) => extraOutcomeItem.weight).reduce((a, b) => a + b, 0);
let newFormula = {
id: formula.itemId,
name: items[formula.itemId].name,
goldCost: formula.goldCost,
costs: costs,
extraOutcome: extraOutcome,
totalWeight: totalWeight,
};
return newFormula;
});
fs.writeFileSync("./formulas.json", JSON.stringify(newFormulas, null, null));
from backend-next.
lgtm
✅ FlandiaYingman approved this issue 1 minute ago.
✅ AlvISsReimu approved this issue 1 minute ago.
This issue is ready to merge
from backend-next.
Related Issues (20)
- Dependency Dashboard
- Drop Matrix and Trend Calc Job Optimization
- LiveHouse Implementation
- Arkplanner returns with only "Operation Barrenland Supplies" HOT 3
- The Adoption of T-test Instead of Z-test Might Improve the Accuracy HOT 1
- `/PenguinStats/api/v2/recognition/defects/report/init` 可能需要改善 HOT 2
- Typo in item name HOT 1
- Failed to do advanced query if `interval` is specified and `endTime` is not specified HOT 2
- Add Recognition WASM & Assets Version Report Support HOT 1
- Data Inconsistency & Unexpected Structure Monitoring
- Shorten Cache TTL
- Improve GitHub Community Experience
- Compose `CONTRIBUTING.md`
- `/PenguinStats/api/v2/result/advanced` not overriding response `startTime`
- Use more precise annotations on reliability != 0 situations
- Ignore items that are not presenting in DB rather than throwing an error
- Cronjob-based Automatic Report Rejections based on Dynamic Rules
- Report Verifier should not Short Circuit on Looping Reports HOT 1
- SemVerPrefixed Validation Rule should be Enforced to Always Prefixed
- Change Snowflake to Actual Node ID HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backend-next.