Skip to content
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

Enemy Database #7

Open
Balthizar01 opened this issue Mar 25, 2024 · 0 comments
Open

Enemy Database #7

Balthizar01 opened this issue Mar 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Balthizar01
Copy link
Owner

We can have a single JSON file that contains all the enemies in the game as JSON objects that can be called whenever needed. Sample JSON would look like this:

{
  "enemyID": 1,
  "name": "Goblin",
  "spawnArea": "Forest",
  "spawnChance": 25,
  "lootTable": [
    {"item": "Gold Coin", "dropChance": 50},
    {"item": "Rusty Sword", "dropChance": 5}
  ]
}

With this we'd be able to have the player encounter enemies on a % chance based on the area they're in and what the spawn chance of the enemy is.

@Balthizar01 Balthizar01 added the enhancement New feature or request label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant