• Visit Rebornbuddy
  • request: have Monster.IsCursable consider the current area mods

    Discussion in 'Archives' started by pd9, May 7, 2014.

    1. pd9

      pd9 New Member

      Joined:
      May 1, 2014
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      0
      The bot will constantly try to curse in a corrupted area if there is a "no curse" mod.

      I understand the corrupted area support is beta, this will also be an issue with maps.

      Currently I just stuck a cooldown in, to cap it at a certain rate. I can't seem to find where map mods are exposed.

      thanks for your hard work :D
       
    2. pushedx

      pushedx Moderator Moderator Buddy Core Dev

      Joined:
      Sep 24, 2013
      Messages:
      4,252
      Likes Received:
      290
      Trophy Points:
      83
      The API has been updated to support this properly, and will be in the next Release. It's pretty hard to find the right area to test though, so keep an eye on it to see if it works properly.

      Code for showing the map mods would look like this, for example:
      Code:
                      foreach (var mod in LokiPoe.LocalData.MapMods)
                      {
                          Log.DebugFormat("{0} : {1}", mod.Key, mod.Value);
                      }
      
       

    Share This Page