Loot 3 fix1: the stand-in pose check derives its progress from the rule, not from FieldTester
The pull-progress input came from FieldTester.PullProgress, so a mutant of that function agreed with itself. The smoke now spells the pull start from Extend and Envelop independently. Builds; both smokes green; Unity mutant u-f killed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a345bd3dcb
commit
c1eee662f9
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ public static class FloatingItemsDrawnSmoke
|
|||
var claimedAt = new CultMath.float3(early.HeldFrom.x, 0f, early.HeldFrom.y);
|
||||
foreach (var elapsed in new[] { 0f, extend + envelop - .01f, extend + envelop + .3f, extend + envelop + .75f, extend + envelop + pull })
|
||||
{
|
||||
zone.SetHeldProgress(early.Id, FieldTester.PullProgress(elapsed, extend, envelop, pull));
|
||||
zone.SetHeldProgress(early.Id, Mathf.Clamp01((elapsed - extend - envelop) / pull)); // the pull starts after Extend and Envelop
|
||||
zone.Update(.01f);
|
||||
var want = FieldTester.PulledPosition(claimedAt, holderAt, elapsed, extend, envelop, pull);
|
||||
Require(Mathf.Abs(early.Body.Position.x - want.x) < 1e-3f && Mathf.Abs(early.Body.Position.y - want.z) < 1e-3f,
|
||||
|
|
|
|||
Loading…
Reference in a new issue