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

Allow hunt mechanics to have multiple targets #566

Open
GregHib opened this issue Dec 18, 2024 · 0 comments
Open

Allow hunt mechanics to have multiple targets #566

GregHib opened this issue Dec 18, 2024 · 0 comments
Labels
enhancement New feature or request system

Comments

@GregHib
Copy link
Owner

GregHib commented Dec 18, 2024

Nora T Hagg and Sorceress's Garden can target multiple players at once.

TODO:

  • Change HuntPlayer NPC, Object & FloorItem to accept a list of target's but also randomly select one and leave it up to the calling code to decide which it wants to use
data class HuntPlayer(
    val mode: String,
    val targets: List<Player>,
    val target: Player
) : Event

Hunting.kt

val targets = getCharacters(npc, players, range, definition)
if (targets.isEmpty()) {
   continue
}
val target = targets.random(seed)
npc.emit(HuntPlayer(mode, targets, target))
spotting:
  type: player
  check_visual: line_of_sight
  check_afk: false
  check_not_to_strong: false
  check_not_combat: false
  check_not_combat_self: false
  check_not_busy: false
  check_afk: false
@GregHib GregHib added enhancement New feature or request system labels Dec 18, 2024
GregHib added a commit to jarryd229/void that referenced this issue Dec 22, 2024
@GregHib GregHib changed the title Change hunt mechanics to allow multiple targets Allow hunt mechanics to have multiple targets Dec 28, 2024
GregHib added a commit to jarryd229/void that referenced this issue Dec 30, 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 system
Projects
None yet
Development

No branches or pull requests

1 participant