I would like to add a few new daily deeds options, for the eternal car battery for example, and was reading the notes in the code about it. I'm a bit confused as to what I need to do in order to get this code to work properly.
The instructions say:
/*
* Built-in deeds. {Type, Name, ...otherArgs}
* Type: one of { Command, Item, Skill, Special }
*
* NOTE: when adding a new built-in deed, also add an appropriate entry for it in getVersion and increment dailyDeedsVersion
* in defaults.txt.
*/
So is that all I have to do to add it? And where is the defaults.txt located? Do I need to declare the batteryUsed variable somewhere, or does the program automatically handle that somewhere else?
Code:
{
"Item", "Eternal Car Battery", "batteryUsed", "Eternal Car Battery", "1", "~50 mp gained, once per day"
},
The instructions say:
/*
* Built-in deeds. {Type, Name, ...otherArgs}
* Type: one of { Command, Item, Skill, Special }
*
* NOTE: when adding a new built-in deed, also add an appropriate entry for it in getVersion and increment dailyDeedsVersion
* in defaults.txt.
*/
So is that all I have to do to add it? And where is the defaults.txt located? Do I need to declare the batteryUsed variable somewhere, or does the program automatically handle that somewhere else?