Skip to content

Conversation

@Asheraf
Copy link
Contributor

@Asheraf Asheraf commented Mar 28, 2018

Pull Request Prelude

Known Issues and TODO List

  • test this stuff

@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

@Asheraf Asheraf force-pushed the petdb branch 5 times, most recently from f680b82 to 7dbc431 Compare March 28, 2018 19:27
@Asheraf Asheraf added component:databases Affecting the databases available in the db/ folder status:code-review Awaiting code review labels Mar 28, 2018
@Asheraf Asheraf requested review from 4144 and MishimaHaruna March 28, 2018 19:28
@Asheraf Asheraf added this to the Release v2018.04.08 milestone Mar 28, 2018
@Asheraf Asheraf force-pushed the petdb branch 2 times, most recently from 140abdb to 9556275 Compare March 28, 2018 21:54
bool pet_read_db_sub_intimacy(int idx, struct config_setting_t *t)
{
int i32 = 0;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need assert for idx

@Asheraf Asheraf force-pushed the petdb branch 3 times, most recently from 502a51a to d09e8fc Compare March 28, 2018 23:31
@idamonli
Copy link

idamonli commented Apr 2, 2018

You can implement pet evolution?

//=========================================================================

pet_db:(
// entries in this file will override the ones in /(pre-)re/pet_db.conf
Copy link
Member

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) ">
},
Copy link
Member

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: Ok
  • Name: Ok
  • TamingItemID: I'd shorten this to TamingItem to hint that we don't ask for a number
  • EggItemID: As above, EggItem
  • AccessoryItemID: As above, AccessoryItem
  • FoodItemID: As above, FoodItem
  • Fullness: I'd change this to the more meaningful FoodEffectiveness
  • HungryDelay: I'd correct this to HungerDelay
  • Intimacy/Start: I'd perhaps change this to Intimacy/Initial, or Intimacy/Starting if you prefer
  • Intimacy/Feed: I'd clarify this as Intimacy/FeedIncrement
  • Intimacy/OverFeed: Same as above, Intimacy/OverFeedDecrement
  • Intimacy/OwnerDie: Same as above, Intimacy/OwnerDeathDecrement
  • CaptureRate: Ok
  • Speed: Ok
  • SpecialPerformance: Ok
  • TalkConvertClass: This should probably be a boolean, named TalkWithEmotes or UseEmotes
  • AttackRate: Ok
  • DefenceAttackRate: Should be corrected to DefendRate (considering "attack" above as a verb)
  • ChangeTargetRate: Ok
  • PetScript: Ok
  • EquipScript: Ok

Asheraf added 4 commits April 7, 2018 17:59
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
@MishimaHaruna MishimaHaruna merged commit 766b03c into HerculesWS:master Apr 7, 2018
@Asheraf Asheraf deleted the petdb branch September 24, 2018 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:databases Affecting the databases available in the db/ folder status:code-review Awaiting code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants