Ejemplo n.º 1
0
        public void BackStep(string[] @Params, TPlayObject PlayObject)
        {
            int nType  = @Params.Length > 0 ? int.Parse(@Params[0]) : 0;
            int nCount = @Params.Length > 1 ? int.Parse(@Params[1]) : 0;

            if ((PlayObject.m_btPermission < 6))
            {
                return;
            }
            nType = HUtil32._MIN(nType, 8);
            if (nType == 0)
            {
                PlayObject.CharPushed(PlayObject.GetBackDir(PlayObject.m_btDirection), nCount);
            }
            else
            {
                PlayObject.CharPushed((byte)HUtil32.Random(nType), nCount);
            }
        }