Search results

  1. soolar

    Feature - Implemented Handle record literals as function parameters in ASH

    Ooh yeah, didn't know about typedefs in ASH, that makes it a lot cleaner!
  2. soolar

    Feature - Implemented Handle record literals as function parameters in ASH

    Right now, you can create record literals in variable definitions in ASH, so this example code works like you'd expect (prints 'hello: world') void testFunction(string[string] example) { foreach a,b in example { print(a + ': ' + b); } } string[string] var = { 'hello': 'world' }...
  3. soolar

    Bug - Fixed $class[none] causes java.lang.NullPointerException

    It took me a bit to narrow this down, but the simplest reproducible example I've found is just > ash $class[none] Returned: none id => -1 primestat => none Unexpected error, debug log printed. The debug log contains Unexpected error, debug log printed. class java.lang.NullPointerException...
  4. soolar

    Bug - Fixed Javascript toJson leaves object keys in underscore_format rather than camelCase

    The complexity of not wanting it to modify actual objects with underscores is a very good point. I'll just write something to make it adapt the results where I'm using it. The goal is to have objects that mirror what they would look like in normal kolmafia javascript scripts available in the...
  5. soolar

    Bug - Fixed Javascript toJson leaves object keys in underscore_format rather than camelCase

    Per the title. I imagine this function isn't widely used (I wouldn't be surprised if Yorick and now tome are the only scripts making use of it), so I don't THINK changing the behavior would cause widespread issues. It seems likely unintentional to me that the keys aren't transformed to the...
  6. soolar

    New Content April 2022 IotM: Unbreakable Umbrella

    That did the trick, thanks as always!
  7. soolar

    New Content April 2022 IotM: Unbreakable Umbrella

    Seems that currently (as of r26335 anyway) equipped_item($slot[off-hand]) will return $item[none] when the umbrella is equipped there.
  8. soolar

    Character Info Toolbox

    Are you sure you're up to date ckb? Because I did that with this commit.
  9. soolar

    Character Info Toolbox

    it should be set to true, not bonus. Not sure why it would change to false though. Will investigate. EDIT: OH. I SEE. Fixing, sorry about that. Bonus is indeed a valid option, my mistake!
  10. soolar

    Character Info Toolbox

    It may have been a while since you requested this, but it's implemented now! They're treated more like expressions than songs though.
  11. soolar

    Character Info Toolbox

    @shkspr Do you have the "Display Quest Tracker in a scrollable sub-frame" enabled in KoL's native settings? If so, disable it. I might work on supporting it some day (if that's possible, I haven't actually investigated enough to say with certainty that it is) but atm I'm working on at least...
  12. soolar

    New Content IOTM - December 2020 - Box of Ghosts

    It'd be nice to track the number of times you've been buffed by the ghost of crimbo carols that day so far, since that's finite and mildly useful.
  13. soolar

    Character Info Toolbox

    A little late with the reply, but no, there is no license atm, and given that I'm not the original maintainer I'm not sure what the right move is as far as theoretically adding one...
  14. soolar

    Feature - Implemented Ability to give a flat bonus to the scores of certain items in the maximizer

    Alright, I've done some performance testing. There seems to be a minor hit, but I really do mean minor. It adds up to less than a second in a large aftercore inventory with no combination limit. Here are the maximizer strings and the durations they took to run, in a situation where I built...
  15. soolar

    Feature - Implemented Ability to give a flat bonus to the scores of certain items in the maximizer

    I'll try out profiling the maximizer with and without my patch and see if there is a noteworthy performance hit, but especially with a minor optimization I've made since the posted patch I don't think there will be... Can't say for sure until I've tried it though.
  16. soolar

    Feature - Implemented Ability to give a flat bonus to the scores of certain items in the maximizer

    I've written a patch which I have tested for the last couple days and it definitely seems to work. I went with using bonus as a new keyword. Patch is attached. Java is not my strongest language, so please do let me know if there are any issues with it and I'll try to fix them.
  17. soolar

    Feature - Implemented Ability to give a flat bonus to the scores of certain items in the maximizer

    I would love to be able to give certain items that are useful for things other than just their numeric modifiers a bonus score to account for their useful abilities without outright forcing their equipment, so that they can become naturally equipped if I don't have anything particularly well...
  18. soolar

    BatBrain -- a central nervous system for consult scripts

    Oooh, so it is! I'll do that then :)
  19. soolar

    BatBrain -- a central nervous system for consult scripts

    Spittoon Monsoon and Dragoon Platoon have been spaded, and they're actually fairly powerful considering they're free. You can change "10 stench|10 sleaze" to "0.3*buffedmys stench|0.3*buffedmys sleaze" for Spittoon Monsoon and "10|10" to "0.3*buffedmus|0.3*buffedmus" for Dragoon Platoon, I believe.
  20. soolar

    CanAdv -- check whether you can adventure at a given location

    It's either because the war isn't started or because the island isn't accessible. Both are the case in the situation I'm running in to it.
Top