polarstoat / stardew-crop-data Goto Github PK
View Code? Open in Web Editor NEWParses Stardew Valley data files, extracting crop and seed data as JSON for use in web apps
License: MIT License
Parses Stardew Valley data files, extracting crop and seed data as JSON for use in web apps
License: MIT License
This is how the game parses the data and can be seen in Object.cs::Object()
.
The crop.seed
property for Coffee Bean contains the same data as crop
, as the Coffee Bean crop is its own seed.
Should the crop.seed
property somehow point to it's parent, or should the duplicated data be left?
{
"433": {
"name": "Coffee Bean",
"description": "Plant in spring or summer to grow a coffee plant. Place five beans in a keg to make coffee.",
"id": 433,
"category": "Seeds -74",
"cropsTilesheetIndex": 40,
"seasons": [
"spring",
"summer"
],
"growthStages": [
1,
2,
2,
3,
2
],
"regrowTime": 2,
"sellPrice": 15,
"healthRestored": -300,
"scythe": false,
"trellis": false,
"yield": {
"minimum": 4,
"maximum": 6,
"levelIncrease": 10,
"extraChance": 0.02
},
"seed": {
"name": "Coffee Bean",
"description": "Plant in spring or summer to grow a coffee plant. Place five beans in a keg to make coffee.",
"id": 433,
"category": "Seeds -74",
"sellPrice": 15,
"healthRestored": -300
},
"flowerColors": []
}
}
It could be useful to support extracting the data in languages other than English. This could be as simple as changing which ObjectInformation.xnb
file is loaded, as the other translations appear to be in the same Data
directory with localisation information appended to the filenames:
ObjectInformation.de-DE.xnb
ObjectInformation.es-ES.xnb
ObjectInformation.fr-FR.xnb
ObjectInformation.hu-HU.xnb
ObjectInformation.it-IT.xnb
ObjectInformation.ja-JP.xnb
ObjectInformation.ko-KR.xnb
ObjectInformation.pt-BR.xnb
ObjectInformation.ru-RU.xnb
ObjectInformation.tr-TR.xnb
ObjectInformation.xnb
ObjectInformation.zh-CN.xnb
This could be a good feature for major version v2, which may also include a CLI.
Implement checks to ensure that the format of the Stardew Valley data files is exactly as expected. This way users can be sure that the data they receive is valid, despite whether stardew-crop-data has been confirmed to work with a particular version of Stardew Valley.
The checks should include the length and types of data that is parsed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.