lexys-labyrinth icon indicating copy to clipboard operation
lexys-labyrinth copied to clipboard

Ghost inventory behaviour not consistent with CC2

Open idarob opened this issue 4 years ago • 2 comments

A ghost that picks up first a bowling ball and then 4 other items will drop the bowling ball. It will then, in most cases, "trip" over the recently dropped bowling ball, and die. An edge case is when the 4th item after the bowling ball is next to a steel wall in the direction the ghost is travelling. In LL, the ghost picks up the item but doesn't die to the bowling ball (the ball is destroyed to the steel wall?). In CC2, however, the ghost does not pick up the item, but still seems to loose the bowling ball as it can pick up another item later on without dropping anything.

See this example level (in CC2, the gravel boot will be left by the wall and only suction boot will be dropped.) https://c.eev.ee/lexys-labyrinth/?level=Q0MyTQIAAAA3AE9QVE4DAAAAAAAAUEFDSzgAAAANBAMgIAH_AQMBAVCgIA1ZAT0BPgE8AQFoAYsDuUcFATsBARaaP4X_AZDz__9z__L_______-P_0tFWSAQAAAAAAAAAAAAAAAAAAAAAAAAAEVORCAAAAAA

idarob avatar Feb 23 '21 20:02 idarob

Ghost CC2 Ghost LL

idarob avatar Feb 23 '21 20:02 idarob

ok. ok. i think i have a guess about this.

if you have four tools already and step onto a tool, you have a slight problem. the rules of the game say that you pick up the new tool and drop your oldest tool. but at no point during that process do you want to have five items in your inventory, or two items in the same cell. so what LL does is:

  • take away the oldest tool and just hold onto it for a moment
  • pick up whatever's on the ground
  • place the taken tool down

i think what cc2 might be doing here is:

  • take away the oldest tool and hold onto it
  • take what's on the ground and hold onto it
  • attempt to place the taken tool down
  • if that fails, undo what we just did: put the thing we dropped back in our inventory (? if it still exists?), and put what was on the ground back down
  • if it succeeds, of course, swap them

this is just kind of ridiculous because the only real "failure" state is a bowling ball that's blocked, but that also means the bowling ball immediately explodes, so there's no problem and we can keep taking the item.

it wouldn't be hard to emulate this; i think my main question is whether to consider it a bug or not. i'm willing to bet the same thing happens to the player, so there are gameplay implications unfortunately

eevee avatar Apr 12 '24 07:04 eevee