Method code for $climate.add_weather_cmd()

[Turn on line numbering]
arg cmdstr, cmd, this, p1, weather, p2, probs;
var i;

(> .perms(sender()) <);
probs = map i in (probs.explode()) to (toint(i));
if (probs.length() != seasons.length())
    throw(~parse, "Wrong number of probabilities.");
weathers = weathers.add(weather, probs);
return "Weather `" + weather.name() + "' added.";

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

the Cold Dark