Code:
> ashq import zlib; my_defstat().print()
Running ZLib version: r31 (current)
1710
When you did
Code:
> ashq import zlib; setvar("spaaace_othergoal", $item[none]);
> ashq import zlib; my_defstat().print()
Running ZLib version: r31 (current)
1710
> ashq import zlib; setvar("spaaace_othergoal", $item[none]);
Bale's UR is still using the clunky old versioning as well. One of these days I'm going to post a smaller, ZLib-powered version of that script in his own thread, with the exact same name and version. Sweet revenge!
my two concerns
1) Yes, of course. ZLib is non-proprietary.
2) I could see a setting allowing users to specify the degree of alerting they want.... I believe script authors are more or less conforming to the 4-group standard which fronobulax put forward earlier...
3) ZLib no longer delays during check_version(), so functionally speaking there is no difference between being alerted vs. not (and therefore settings to configure the alert are just 'luxury' settings).
Haha!
It still does that, as well as checking for other paths. Creating a new function with another name seemed redundant, and changing the name would break scripts, I guess.Right now be_good() is a function designed to determine if something is acceptable to the beecore path specifically.
Not having seen the typeII list yet, I don't know which of these are trendy vs. not, but it's a factor for implementing a universal path_safe(string) function, rather than one per type as ASH did.
boolean be_good(string it) {
switch (my_path()) {
case "Bees Hate You": return it.to_lower_case().index_of("b") == -1;
case "Trendy":
foreach f in $familiars[] if (it.to_string() == f.to_string()) return is_trendy(f);
foreach s in $skills[] if (it.to_string() == s.to_string()) return is_trendy(s);
if (it.to_item() != $item[none]) return is_trendy(to_item(it));
return is_trendy(it);
case "Way of the Surprising Fist": return !($slots[weapon,offhand] contains it.to_item().to_slot());
}
return true;
}
result = TrendyRequest.isTrendy( "Items", key ) &&
TrendyRequest.isTrendy( "Campground", key ) &&
TrendyRequest.isTrendy( "Bookshelf", key ) &&
TrendyRequest.isTrendy( "Familiars", key ) &&
TrendyRequest.isTrendy( "Skills", key ) &&
TrendyRequest.isTrendy( "Clan Item", key );
> ash is_trendy("coffee")
Returned: true
> ash is_trendy("coffee pixie")
Returned: false
> ash to_item("coffee")
Returned: none
> ash to_familiar("coffee")
Returned: Coffee Pixie
> ash to_skill("coffee")
Returned: none