Changes between Version 1 and Version 2 of Ticket #10615, comment 17


Ignore:
Timestamp:
Dec 27, 2018, 9:47:08 AM (5 years ago)
Author:
Vhati

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10615, comment 17

    v1 v2  
    44  * Set a temporary speed for unfurling the cloth.
    55  * Restore the original slider speed.
     6  * handsOn()
    67* State 4
     8  * handsOff()
    79  * Decide whether to cross (states 5-7) or abort (8).
    810* State 5-7
     
    1517  * Set a temporary speed for folding up the cloth
    1618  * Restore the original slider speed, and normalize hero.
     19  * handsOn()
    1720\\
    1821\\
     
    4245)
    4346
     47(4
     48        4
     49        (g1_Glory handsOff:)
     50# ...
     51        # Cross if Levitate set register=1, or abort.
     52        (if register (= cycles 1) else (self changeState: 8))
     53)
     54
     55(5
     56        5
     57# ...
     58        (if register  # Always 1.
     59                # Move left. Always.
     60                (g0_hero setMotion: MoveTo 143 83 self)
     61        else
     62                # Move right. Never happens.
     63                #   This is derelict code.
     64                (g0_hero setMotion: MoveTo 218 48 self)
     65        )
     66)
     67
    4468# ...
    4569
    4670(9
    4771        9
    48         # Cache original slider speed again!?
     72        # Cache original slider speed again.
     73        # Player could've adjusted the speed between
     74        #   state 3 (cloth deployed) and state 4 (Levitate).
     75        #
    4976        (= local2 (g0_hero cycleSpeed?))
    5077
     
    6895sLevitateOverPit already caches in state 1 and restores in state 10. That's good.
    6996
    70 In the middle, a patch clobbers state 3's restoration... setting a fixed speed that lasts throughout the crossing.
     97In the middle, a patch clobbers state 5's derelict code... setting a fixed speed that lasts throughout the crossing.
    7198
    7299At state 9, we don't want the fixed speed cached, so that line is erased. This has to be a second patch because the CD and floppy editions have different byte counts.