-
Notifications
You must be signed in to change notification settings - Fork 774
Convert Pet db to Libconfig #2000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f680b82 to
7dbc431
Compare
140abdb to
9556275
Compare
| bool pet_read_db_sub_intimacy(int idx, struct config_setting_t *t) | ||
| { | ||
| int i32 = 0; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need assert for idx
502a51a to
d09e8fc
Compare
|
You can implement pet evolution? |
| //========================================================================= | ||
|
|
||
| pet_db:( | ||
| // entries in this file will override the ones in /(pre-)re/pet_db.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the comment with the documentation about the existing keys and their meaning? (the same as in the other two .conf files)
| ChangeTargetRate: change target (int, defaults to 0) | ||
| PetScript: <" Pet Script (can also be multi-line) "> | ||
| EquipScript: <" Equip Script (can also be multi-line) "> | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to use this chance to change the spelling of some of these keys (because it gets more annoying to do this later, once people have converted their databases). My suggested keys are:
Id: Ok.SpriteName: OkName: OkTamingItemID: I'd shorten this toTamingItemto hint that we don't ask for a numberEggItemID: As above,EggItemAccessoryItemID: As above,AccessoryItemFoodItemID: As above,FoodItemFullness: I'd change this to the more meaningfulFoodEffectivenessHungryDelay: I'd correct this toHungerDelayIntimacy/Start: I'd perhaps change this toIntimacy/Initial, orIntimacy/Startingif you preferIntimacy/Feed: I'd clarify this asIntimacy/FeedIncrementIntimacy/OverFeed: Same as above,Intimacy/OverFeedDecrementIntimacy/OwnerDie: Same as above,Intimacy/OwnerDeathDecrementCaptureRate: OkSpeed: OkSpecialPerformance: OkTalkConvertClass: This should probably be a boolean, namedTalkWithEmotesorUseEmotesAttackRate: OkDefenceAttackRate: Should be corrected toDefendRate(considering "attack" above as a verb)ChangeTargetRate: OkPetScript: OkEquipScript: Ok
you can use this tool as follows ./petdbconverter.py re ../ ../db/re/pet_db.txt > pet_db.conf or for pre-re mode ./petdbconverter.py pre-re ../ ../db/pre-re/pet_db.txt > pet_db.conf
Pull Request Prelude
Known Issues and TODO List