[CF-Devel] Collect them all! (god code)

Jan Echternach echter at informatik.uni-rostock.de
Fri Jan 5 06:11:04 CST 2001


On Thu, Jan 04, 2001 at 11:20:23PM -0800, Peter Mardahl wrote:
>
     
      It seems that at the cost of a great deal of experience,
     
     >
     
      a player can cycle through the gods and collect all the
     
     >
     
      artifacts available by praying.
     
     >
     
     
     >
     
      Probably on conversion blessed artifacts should be withdrawn
     
     >
     
      as well as special prayers.
     
     
Indeed, there is nothing that prevents this.  A solution similar to
special prayers would look like this:

* god_gives_present() will insert a marker object like do_learn_spell()
if the present has FLAG_STARTEQUIP.

* A function similar to check_special_prayers() checks all marker
objects and tries to see if the god still hands out such an item.  If
not, it'll remove all such items with FLAG_STARTEQUIP from the player's
inventory.

I'm not sure how the marker object can identify the special item.
Maybe all items given by god_gives_present() need their own archetype,
and the archetype name is stored in the marker object (but not in
marker->other_arch, because you may want to remove a special item
completely, and the server wouldn't like the ->other_arch references
anymore).

I don't think we need to do anything about the treasure lists that can
also be used to hand out items.  You wouldn't use them for things like
a helmet of Mostrai anyway.

-- 
Jan

    
    


More information about the crossfire mailing list