-
Notifications
You must be signed in to change notification settings - Fork 11
🦹 Make a new Leader #6
Description
Part 1: Design
Here are two example drafts of a leader specification:
Generic-person 1
Default: Melee attack, every 3 attacks deals 200% damage.
Special: Deals damage in an AOE around it for 100 damage whenever >3 units are within range. Cooldown: 12s.
Mechanics notes:
AOE: should be able to basically take whatever the minimum distance to attack another enemy is, multiply that by 1.5x and you have your radius.
Passive is triggered automatically, IF at least one enemy is present.
Generic-person 2
Default: Ranged attack. Increased attack speed by 10% with every subsequent attack up to a 100% increase.
Special: Deals damage in a large AOE around it for 50 damage and MS-slows all enemy units by 50% for 4 seconds whenever >3 units are within range.
Suggest your Leader ideas below, in an issue that refers here (#6) or in chat.
Part 2: Code
See the Leaders (aka Heroes / Champions) doc.
- create the skill definitions (see current SkillDefinition)
- create the handler systems for any skill interacting directly with the world (see AoeDamageSystem)
- create a hero entity (See the bottom of main.rs)
- assign the skills to this new hero (See the bottom of main.rs, just before the entity creation of the hero
Full documentation available here:
https://github.com/amethyst/shotcaller/blob/master/doc/create_leader.md
This is a repeatable task.
For reference examples see all leader
PRs.
See also: 📦 Make a new item.