Puppy.Event( pottyInsideHouse );

sometimes a puppy destroys everything and poops on it too - my job is to smile and laugh about it

Sometimes a puppy destroys everything and poops on it too – my job is to smile and laugh about it. I programmed myself to deal. Here’s the code:


/* POTTY EVENT HANDLER */
    
ziggiesmalls.event( pottyInsideHouse ) {
    nick.dealWith( this, pottyInsideHouse );
    );
    
nick.dealWith = function( puppy, potty ):void {
    
    if ( puppy.caughtInTheAct ) {
        throwError( "NO! BAD!", Loud );
        puppy.goToCrate( now );
        }
    
    /* if it is poop */
    if ( potty.isPoop ) {
        
        throwError( "F-CK D--MIT!", Muttered );
        
        dispose( plasticBag, potty.location );
        spray( naturesMiracle );
        clean( paperTowel, potty.location );
        
        throwError( "SH-T!! F-----CK!", Muttered );
        
        spray( naturesMiracle );
        clean( paperTowel, potty.location );
        empty( trash );
        
    /* else it is pee */
    } else {
        
        clean( paperTowel, potty.location );
        
        spray( naturesMiracle );
        clean( paperTowel, potty.location );
        
        }
    
    wash( hands );
    
    if ( puppy.inCrate ) {
        puppy.releaseFromCrate( "i love you?" );
        }
    
    puppy.forgiveAndLove();
    potty.forget();
    
    }

Leave a Reply