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

Singularity #5960

Merged
merged 25 commits into from
Feb 8, 2021
Merged

Singularity #5960

merged 25 commits into from
Feb 8, 2021

Conversation

ThatDan123
Copy link
Contributor

@ThatDan123 ThatDan123 commented Feb 7, 2021

image

-Adds singularity

-Adds functioning field generators and emitters, can be brought from cargo

-Adds radiation collectors

Todo:
-Animate radiation collectors

-Balance energy consumption of emitters and energy generation of radiation collectors, this will probably happen after the PR has been merged and so can be play tested on staging.

Out of Scope for this PR:

-Particle accelerator as we need a proper multi tile machine system
-Therefore spawning singularity in game via PA is not possible, you'll need to beg admins

-Radiation collector fuel canister interaction

NOTE TO MERGER: please squash commits

-Lightning is invisible for clients bug: #5962
-All bullets including emitter shots are invisible for clients bug: #5961

CL: Adds singularity

CL: Adds field generators, emitters and radiation collectors

@ThatDan123 ThatDan123 added the Status: DNM "Do Not Merge". Don't merge this Pull Request, as changes where requor further additions are needed. label Feb 7, 2021
@ThatDan123 ThatDan123 marked this pull request as ready for review February 7, 2021 13:54
@ThatDan123 ThatDan123 removed the Status: DNM "Do Not Merge". Don't merge this Pull Request, as changes where requor further additions are needed. label Feb 7, 2021
@ThatDan123 ThatDan123 added the Status: Awaiting Review for PRs that are awaiting reviews/rereviews label Feb 7, 2021
@@ -246,6 +248,12 @@ public void MergeInto(SpriteChange spriteChange, bool pool = false)
PushClear = spriteChange.PushClear;
}

if (spriteChange.AnimateOnce)
{
if (AnimateOnce) AnimateOnce = false;
Copy link
Member

Choose a reason for hiding this comment

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

so, this is just for late clients, idk how should be handled to get the correct state but if I think if push texture has been applied Then cancel AnimateOnce it's a little bit more complex this bit

Copy link
Member

Choose a reason for hiding this comment

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

note there may be more times when other stuff overrides it

@@ -82,6 +83,14 @@ public override void Process()
SP.ChangeSprite(int.Parse(SerialiseData.Substring(Start, Scanning - Start)), false);
}

if (SerialiseData.Length > Scanning && SerialiseData[Scanning] == '#')
Copy link
Member

Choose a reason for hiding this comment

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

also need to add for the SkipSection so it can skip messages properly for a sprite manipulation (yeah is Messy idk what I was thinking when making this what I was thinking when making this, probably could just replace with json serialise and deserialise object)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does that change seem correct?

@github-actions github-actions bot added the Status: Merge Conflicts No one likes conflicts, solve them! label Feb 7, 2021
@corp-0 corp-0 removed the Status: Merge Conflicts No one likes conflicts, solve them! label Feb 7, 2021
@ThatDan123
Copy link
Contributor Author

I'll finish the rest at some point tomorrow unless you want to do it as you know the spritehandler better than me :p

@ThatDan123 ThatDan123 added the Status: DNM "Do Not Merge". Don't merge this Pull Request, as changes where requor further additions are needed. label Feb 8, 2021
@ThatDan123 ThatDan123 removed the Status: DNM "Do Not Merge". Don't merge this Pull Request, as changes where requor further additions are needed. label Feb 8, 2021
@ThatDan123
Copy link
Contributor Author

Assuming the sprite handler changes are good, then its good to merge whenever

@Bod9001 Bod9001 merged commit cef27f1 into unitystation:develop Feb 8, 2021
@ThatDan123 ThatDan123 deleted the SingForMe branch February 8, 2021 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Review for PRs that are awaiting reviews/rereviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants