Method code for $climate.match_weather()

[Turn on line numbering]
arg weather_str;
var i, out;

if ((out = find i in (weathers.keys()) where (i.name() == weather_str)))
    return (weathers.keys())[out];
if ((out = find i in (weathers.keys()) where (weather_str.match_begin(i.name()))))
    return (weathers.keys())[out];
throw(~keynf, "No such weather in this climate.");

["// Miroslav Silovic ", "// Created 12-Aug-1996 as a part of ColdCore, see: @help Credit"]

the Cold Dark