Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

🦹 Make a new Leader #6

@erlend-sh

Description

@erlend-sh

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.

  1. create the skill definitions (see current SkillDefinition)
  2. create the handler systems for any skill interacting directly with the world (see AoeDamageSystem)
  3. create a hero entity (See the bottom of main.rs)
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions