-
Notifications
You must be signed in to change notification settings - Fork 186
Update mod to release-20250330 #814
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
Open
penev92
wants to merge
21
commits into
OpenRA:master
Choose a base branch
from
penev92:update-to-20250330
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
55e571d
Updated .editorconfig
penev92 f6e3d88
Updated GitHub workflow
penev92 134044e
Updated all links to HTTPS
penev92 d67cd5a
Use appimagetool with non-glibc linux support
penev92 88b0c2a
Update targeted engine version to release-20250330
penev92 77229f4
Replace hardcoded mod.yaml Packages list with a mod-defined filesyste…
penev92 d4e96ec
Turn ModelRenderer and VoxelCache into traits
penev92 bba8aca
Reworked Fluent file path and yaml references
penev92 cf421a5
Updated map editor - Part 1
penev92 610966d
Updated custom code to build with the new engine
penev92 5db0c45
Updated custom code to match OpenRA code style
penev92 d7b3739
Manual mod updates PART 1 - mod.yaml
penev92 ce88fc9
Rework mod content installation
penev92 4d149dc
Ran the utility update-mode command
penev92 707d083
Ran automatic extraction of chrome strings
penev92 acf430c
Ran automatic extraction of rule strings
penev92 f5b815b
Fixed a bunch of Utility warnings
penev92 d207352
MISC
penev92 316ae3d
Updated the CREDITS/AUTHORS file
penev92 110f94c
Removed spurious multi.mix package reference
penev92 40786c2
Reimport map The Alamo
penev92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,15 +9,14 @@ | |
| */ | ||
| #endregion | ||
|
|
||
| using OpenRA.Mods.Common.Activities; | ||
| using OpenRA.Mods.Common.Traits; | ||
| using OpenRA.Mods.RA2.Activities; | ||
| using OpenRA.Traits; | ||
|
|
||
| namespace OpenRA.Mods.RA2.Traits | ||
| { | ||
| [Desc("When returning to a refinery to deliver resources, this actor will teleport if possible.")] | ||
| public class ChronoResourceDeliveryInfo : TraitInfo, Requires<HarvesterInfo> | ||
| public sealed class ChronoResourceDeliveryInfo : TraitInfo, Requires<HarvesterInfo> | ||
| { | ||
| [Desc("The number of ticks between each check to see if we can teleport to the refinery.")] | ||
| public readonly int CheckTeleportDelay = 10; | ||
|
|
@@ -46,12 +45,11 @@ public class ChronoResourceDeliveryInfo : TraitInfo, Requires<HarvesterInfo> | |
| public override object Create(ActorInitializer init) { return new ChronoResourceDelivery(this); } | ||
| } | ||
|
|
||
| public class ChronoResourceDelivery : INotifyHarvesterAction, ITick | ||
| public sealed class ChronoResourceDelivery : INotifyHarvestAction, ITick | ||
| { | ||
| readonly ChronoResourceDeliveryInfo info; | ||
|
|
||
| CPos? destination; | ||
| Actor refinery; | ||
| int ticksTillCheck; | ||
|
|
||
| // TODO: Rewrite this entire thing, possible to be a subclass of harvester | ||
|
|
@@ -76,28 +74,27 @@ void ITick.Tick(Actor self) | |
| ticksTillCheck--; | ||
| } | ||
|
|
||
| void INotifyHarvesterAction.MovingToResources(Actor self, CPos targetCell) | ||
| { | ||
| Reset(); | ||
| } | ||
| void INotifyHarvestAction.Harvested(Actor self, string resourceType) { } | ||
|
|
||
| void INotifyHarvesterAction.MovingToRefinery(Actor self, Actor refineryActor) | ||
| void INotifyHarvestAction.MovingToResources(Actor self, CPos targetCell) | ||
| { | ||
| var iao = refineryActor.Trait<IAcceptResources>(); | ||
| var targetCell = self.World.Map.CellContaining(iao.DeliveryPosition); | ||
| if (destination != null && destination.Value != targetCell) | ||
| ticksTillCheck = 0; | ||
|
|
||
| refinery = refineryActor; | ||
| destination = targetCell; | ||
| Reset(); | ||
| } | ||
|
|
||
| public void MovementCancelled(Actor self) | ||
| void INotifyHarvestAction.MovementCancelled(Actor self) | ||
| { | ||
| Reset(); | ||
| } | ||
|
|
||
| public void Harvested(Actor self, string resourceType) { } | ||
| // void INotifyHarvestAction.MovingToRefinery(Actor self, Actor refineryActor) | ||
| // { | ||
| // var iao = refineryActor.Trait<IAcceptResources>(); | ||
| // var targetCell = self.World.Map.CellContaining(iao.DeliveryPosition); | ||
| // if (destination != null && destination.Value != targetCell) | ||
| // ticksTillCheck = 0; | ||
| // refinery = refineryActor; | ||
| // destination = targetCell; | ||
| // } | ||
| public void Docked() { } | ||
| public void Undocked() { } | ||
|
|
||
|
|
@@ -119,8 +116,8 @@ void TeleportIfPossible(Actor self) | |
| self.QueueActivity(new ChronoResourceTeleport(dest, info)); | ||
|
|
||
| // HACK: Manually queue a delivery and new find since we just cancelled all activities | ||
| self.QueueActivity(new DeliverResources(self, refinery)); | ||
| self.QueueActivity(new FindAndDeliverResources(self, refinery)); | ||
| // self.QueueActivity(new DeliverResources(self, refinery)); | ||
| // self.QueueActivity(new FindAndDeliverResources(self, refinery)); | ||
|
Comment on lines
+119
to
+120
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete it or keep it. We track the changes in revision control. |
||
| Reset(); | ||
| } | ||
| } | ||
|
|
@@ -129,7 +126,6 @@ void Reset() | |
| { | ||
| ticksTillCheck = 0; | ||
| destination = null; | ||
| refinery = null; | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out commented function.