import { Action } from "./Action";
import { ActionType } from "./ActionType";
import { StrayKittyState } from "../StrayKittyState";
import { StandingAction } from "./StandingAction";
import { ActionHelpers } from "./ActionHelpers";

export class GrabbedAction implements Action {
    do(kitty: StrayKittyState, dt: number) {
    }

    readonly type = ActionType.Grabbed;

    readonly frames = [1, 2, 3];
}

import { Action } from "./Action";
import { ActionType } from "./ActionType";
import { StrayKittyState } from "../StrayKittyState";
import { StandingAction } from "./StandingAction";
import { ActionHelpers } from "./ActionHelpers";

export class GrabbedAction implements Action {
    do(kitty: StrayKittyState, dt: number) {
        if (kitty.y < window.innerHeight - 32) {
            kitty.yVector += dt / 250;
        } else {
            if (Math.abs(kitty.yVector) < dt / 100) {
                kitty.y = window.innerHeight - 32;
                kitty.action = new StandingAction();
            }
            kitty.yVector *= -0.5;
        }
    }

    readonly type = ActionType.Falling;

    readonly frames = [1, 2, 3];
}

--- 
+++ 
@@ -6,18 +6,9 @@
 
 export class GrabbedAction implements Action {
     do(kitty: StrayKittyState, dt: number) {
-        if (kitty.y < window.innerHeight - 32) {
-            kitty.yVector += dt / 250;
-        } else {
-            if (Math.abs(kitty.yVector) < dt / 100) {
-                kitty.y = window.innerHeight - 32;
-                kitty.action = new StandingAction();
-            }
-            kitty.yVector *= -0.5;
-        }
     }
 
-    readonly type = ActionType.Falling;
+    readonly type = ActionType.Grabbed;
 
     readonly frames = [1, 2, 3];
 }
Fix kitties can't be grabbed
