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

Expand addStructure() and changePlayerColour() functions #3202

Merged
merged 3 commits into from
Aug 7, 2023

Conversation

DARwins1
Copy link
Member

Allows addStructure to accept an additional direction argument, which specifies the direction (in degrees) the new structure will face.
image

Allows changePlayerColour to set color values up to 15, utilizing the previously unused(?) team colors specified in pallete.txt.
The colors available to be assigned are now:
green, orange, gray, black,
red, blue, pink, cyan,
yellow, purple, white, bright blue,
neon green, infrared, ultraviolet, and brown.
playerColours

@IHateOrangeRocks
Copy link

With the power of these new colors, there can be three green people.

@KJeff01 KJeff01 added this to the 4.4.0-beta1 milestone Apr 21, 2023
Copy link
Member

@past-due past-due left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small changes - otherwise, looks good.

src/wzapi.cpp Outdated Show resolved Hide resolved
src/wzapi.cpp Show resolved Hide resolved
addStructure() now takes the direction argument as an int instead of a float.
Added lines in functions.md and wzapi.cpp to clarify that the direction argument is optional.
@past-due past-due self-requested a review August 7, 2023 03:19
@past-due past-due merged commit 6e5c9cf into Warzone2100:master Aug 7, 2023
36 of 38 checks passed
@DARwins1 DARwins1 deleted the dr-5 branch August 7, 2023 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants