Add Isaac.GetChampionColor()

Open
#726 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, lua
Domain
api, game-dev

Research direction

Start by locating entityNPC:GetChampionColorIdx and the existing Lua API bindings for color objects. The change is done when Isaac.GetChampionColor accepts a ChampionColorIdx and returns the corresponding color object for use by entities such as the bone projectile.

Written by the indexing model from the issue text.

Description

enhancement non-callback-request

This function would be different from entityNPC:GetChampionColorIdx(), as it would return a color object of the specified champion, so that we could replicate some entities changing color based on their spawner's champion color. (Eg. the bone projectile thrown by bonies) The function would accept a ChampionColorIdx to determine what color to return, so a use for this feature would look like:

entityProjectile.Color = Isaac.GetChampionColor(entityProjectile.SpawnerEntity:ToNPC():GetChampionColorIDX())

This could also make compatibility better with the custom champions feature if that ends up getting added.

Dominant language
C++
Stars
345
Forks
51
Avg merge
11h 2m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TeamREPENTOGON/REPENTOGON

All issues in TeamREPENTOGON/REPENTOGON

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.