Beispiel #1
0
        public static string Get(EntityAlive entity, string key)
        {
            if (key.StartsWith("$"))
            {
                key = key.Substring(1);
            }
            int    cvar  = (int)Math.Round(entity.GetCVar(key));
            string value = (cvar == 0) ? "" : Map[cvar];

            Printer.Log(35, "StringMap Get()", entity, key, value);
            return(value);
        }