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

feat: Objective wrappers #316

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open

Conversation

VALERA771
Copy link

Description

Describe the changes
Adding wrappers for Objective instances. Possible new objectives will be added soon (ScpObjectiveBase is not used...)

What is the current behavior? (You can also link to an open issue here)
No wrappers

What is the new behavior? (if this is a feature change)
Profit

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:
I don't know english so idk what to write in docs. Pls help me ;(


Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentations

Submission checklist

  • I have checked the project can be compiled
  • I have tested my changes and it worked as expected

Patches (if there are any changes related to Harmony patches)

  • I have checked no IL patching errors in the console

Other

  • Still requires more testing

they seem kinda useless but yamato wasnts them so ok
@VALERA771 VALERA771 changed the title Objective feat: Objective wrappers Dec 18, 2024
@github-actions github-actions bot added the API label Dec 18, 2024
@louis1706 louis1706 changed the base branch from scpsl14 to dev December 27, 2024 15:13
@LumiFae
Copy link

LumiFae commented Dec 28, 2024

@VALERA771 would be great to also have this type of stuff in an event, for when influence is gained and for when the timer is reduced

@skyfr0676
Copy link

maybe it's need an event too..... if no one done that i can make it

@LumiFae
Copy link

LumiFae commented Dec 30, 2024

@VALERA771 I see you added a completing objective event, is this event related to my earlier comment? if so I can't see any method to get how the stats changed by completing the objective, is there some sort of method already existing?

@LumiFae
Copy link

LumiFae commented Jan 6, 2025

@VALERA771 is this getting merged soon?

Comment on lines +45 to +53
if (newRole == RoleTypeId.None)
{
if (player.Role == RoleTypeId.ClassD)
newRole = RoleTypeId.ChaosConscript;
else if (player.Role == RoleTypeId.Scientist)
newRole = RoleTypeId.NtfSpecialist;
else
newRole = player.Role;
}

Choose a reason for hiding this comment

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

remove this it's not logical for what name you gave as argument newRole

@VALERA771
Copy link
Author

@VALERA771 is this getting merged soon?

I wanted to test event. Don't have time rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants