[CF-Devel] Technical Object Questions

Nils Lohner lohner at debian.org
Wed Aug 1 06:47:55 CDT 2001


I'm still working on the autopickup, and have a few questions.

- some items (keys, shields, arrows) have no names
...answer: they use their archetype name tmp->arch->name

- daggers aren't throwable
...find throwing daggers :)


- chairs and tables are classed as 'weapons'
item name chair
item type 15
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
...and chairs (if weapons :) should at least be throwable as well.
...should/could a type 'FURNITURE' be created for them?


- looking at food (generic food)
FOOD
item name==NULL food
item type 6
0 [31] 0010 0000 0000 0000 0000 0000 0000 1100 [0] 
1 [63] 0000 0000 0000 0000 0000 0000 0000 0000 [32]
2 [95] 0000 0000 0000 0001 0000 0000 0000 0000 [64]
3 [127] 0000 0000 0000 0000 0000 0000 0000 0000 [96]
...the flag[2] is #define FLAG_CAN_USE_SKILL      79 /* The monster can use skills */
...is this normal??!??


Otherwise, I have a good idea of how I want it to work, how to integrate
it with the existing one, and how to finish it.  Suggestions for other
autopickup classes welcome.

two more to add:
LITERATURE books, scrolls
DRINKS drinks
POTIONS

Maybe even get more detailed, but at that point the functionality should
come from search-items since that takes game-time.  Just grabbing one
type of thing shouldn't take time, sorting for something should.

Also, can I get read-only CVS access on SF?  I don't need write, I don't
know how much I'll contribute, and I can submit a lot as patches if
someone's willing to apply them.

Thanks,
Nils.

    
    


More information about the crossfire mailing list