Implement original gadget panel and playable shrink ray
This commit is contained in:
1 parent
0272f7bef7
commit
7b5230ceb8
57 files changed
+3545
-48
No files matched your search
@@ -32,6 +32,7 @@ public sealed class SceneInteractions
|
||||
public event Action<Vector3>? CheckpointCaptured;
|
||||
public event Action<DirectorActor, string>? ConversationStarted;
|
||||
public event Action<int>? ObjectiveChanged;
|
||||
public void ChangeScore(int delta) => Score = Math.Max(0,unchecked(Score + delta));
|
||||
|
||||
public SceneInteractions(SceneDirector director, TaskStates tasks, OriginalSave save)
|
||||
{
|
||||
@@ -134,8 +135,8 @@ public sealed class SceneInteractions
|
||||
private void CollectPickup(DirectorActor actor, GamEntity source, Vector3 playerRoot)
|
||||
{
|
||||
var id = source.Integer("PickupIndex", -1);
|
||||
// The source tag is SHRINKRAY; original objective art120 calls this
|
||||
// pickup the jet pack, matching group0/item3 and powered-jump ownership.
|
||||
//Group0/item3 is the combined shrink ray/jetpack. Objective120 names its
|
||||
//jetpack action; original gadget tile14 and controls113 also name SHRINK.
|
||||
var jetpack = Equal(source.Tag, "SHRINKRAY");
|
||||
var ordinaryStar = id is >= 3000 and < 4000 && source.Integer("PointValue") == 5;
|
||||
if (id is <= 0 or >= OriginalSave.ItemCount || !(ordinaryStar || jetpack && source.Integer("PointValue") == 50)
|
||||
|
||||
Reference in new issue
Block a user