Welcome Board Archive - Code Changes 5/9/2020

From LegendMUD
Revision as of 15:33, 27 February 2021 by Emrysia (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
From: Rufus         Title: Code Changes 5/9/2020                    
                    Posted On: Friday, May 08 2020, 10:08PM
---------------------------------------------------------------------------
Changes to druid commands:

 - Druid skills will now look for an herb anywhere in your inventory
   or bags, or even bundles (it will automatically unbundle one for 
   you if necessary). it will even find bundles inside of bags that 
   are inside bags that are inside of bags.
   
 - It will skip over any non-herb items (such as a bowl of garlic soup 
   or oils) to locate just the herb
   
 - The following druid skills use this:
 
        make poultice
        augment poultice
        brew
        powder
        flavor
        foul

 - The one caveat is really this doesn't play as nicely with 
   the number.d keyword (like 3.garlic). It will find 3.garlic in 
   your inventory, but if it doesn't find 3.garlic in your inventory, 
   it will only find the 3rd garlic item in any other container. 
   But it also pretty much gets rid of the need for that.

 - apply <oil keyword> will also search through your bags for the 
   appropriate oil. HOWEVER, it will leave any remaining in your 
   inventory.
   
Changes to shoot/reload:

- The game will now search for ammo anywhere. First that you're 
  carrying then through your bags. It follows the following rules:
  
  
    reload                 finds the first gun, reloads it by looking for 
                           the first ammo that will reload it (anywhere on
                           your person)
                        
    reload <gun>           finds the first ammo that will reload that specific
                           gun (anywhere on your person)
                           
    reload <gun> <keyword> finds the first ammo that has that keyword 
                           that will reload that gun (anywhere on your person)

- Single arrows and single crossbow bolts can now be bundled. Bundles 
  Like the druid commands above, if necessary, 'find the ammo' code 
  will unbundle ammo as necessary.

For both of these changes, if you want to ensure you're pulling ammo 
from a specific type of ammo automatically or using a specific set of 
herbs automatically, put it in your inventory. Otherwise it's up to 
how the pointers in the code are ordered to figure out which one 
gets taken first.