[ashimms] Fwd: class occurances in smaug (For Coders)

  • From: "Dan Day" <hb_raz@xxxxxxxxxxx>
  • To: ashimms@xxxxxxxxxxxxx
  • Date: Mon, 30 Jun 2003 18:53:36 -0500

This is just a note for coders. Thanks!



Dan Day

"Accept nothing short of perfection!" - anon.
"Perfection is achieved only on the point of collapse." - C. N. Parkinson





>From: me <azure_13@xxxxxxxxx>
>To: Raz <hb_raz@xxxxxxxxxxx>
>Subject: class occurances in smaug
>Date: Mon, 30 Jun 2003 15:34:58 -0700 (PDT)
>
>Hey Raz,
>
>Attached is a text file that lists all the areas in the code that we might
>have to change when we do the new class system.  I left off anything that
>was just refering to a ch->class (for example) for a check, because we
>probably wouldn't have to change that kinda stuff.  The line numbers are
>from stock smaug.  Also, I didn't put in all of the various checks for
>CLASS_VAMPIRE (bloodpoints, bloodlust, etc), because there are quite a few
>of them, adn I wasn't sure we'd have to change them anyway.  But, a quick
>grep can pull all of those out.  Hopefully, I caught everything else.  :-P
>
>Mehand
>
>__________________________________
>Do you Yahoo!?
>SBC Yahoo! DSL - Now only $29.95 per month!
>http://sbc.yahoo.com
>Areas that will probably need code changes for the new class system
>
>mud.h
>       1) CLASS_X defines (lines 797 - 808)
>       2) clans typedef enum (lines 1112 - 1117)
>       3) obj extra flags typedef (lines 1691 - 1700)
>
>act_info.c
>       1) *format_obj_to_char (lines 50 - 112)
>                       tests for class == paladin to see glowing invis objs
>       2) show_char_to_char_0 (lines 549 - 553)
>                       tests for paladin class to add text to char descs
>       3) do_look (lines 1146, 1164)
>                       tests for thief class when looking into next room
>       4) do_glance (lines 1433 - 1437)
>                       gets NPC's class for glance output
>
>act_obj.c
>       1) wear_obj (lines 1428 - 1445)
>                       bunch of class checks to make sure you don't wear an 
> obj that's 
>anti-your-class
>
>act_wiz.c
>       1) do_newbieset (lines 5049 - 5066)
>                       equip diff weapons based on class
>       2) create_new_class (all of it)
>                       online class creation function
>       3) do_setclass (all of it)
>                       online class edit function
>       4) do_setrace (lines 7981 - 7994)
>                       add class restrictions to race
>       5) do_showrace (lines 8216 - 8241)
>                       show allowed and disallowed classes in showrace output
>
>ban.c
>       1) load_banlist (lines 67 - 73)
>                       loads class ban list
>       2) fread_ban (lines 132 - 140, 169 - 178, 179 - 180)
>                       gets class num for ban
>       3) save_banlist (lines 239 - 246)
>                       saves class banlist
>       4) do_ban (lines 369 - 386, 418 - 419)
>                       ban a class
>       5) do_allow (lines 558 - 577)
>                       allow a class
>       6) do_warn (lines 660 - 665)
>                       warn class
>       7) add_ban (lines 775 - 822)
>                       add ban for class
>       8) show_bans (lines 1047 - 1051)
>                       show class bans
>       9) check_bans (lines 1169 - 1187)
>                       checks for class ban
>       10) dispose_ban (line 1277)
>                       get rid of class ban
>
>build.c
>       1) char *       const   o_flags
>                       anti-classflags
>       2) do_mset (lines 1456 - 148)
>                       mset victim class
>
>clans.c
>       1) do_shove (lines 2315 - 2329)
>                       check for shove success percentage based on class
>       2) do_drag (lines 2526 - 2540)
>                       check for drag success percentage based on class
>
>comm.c
>       1) nanny (lines 1801 - 1878, 2064 - 2065)
>                       new char "choose a class" bits of code
>                       sets paladin alignment to 1000 at creation
>
>const.c
>       1) har * const npc_class (liones 54 - 60)
>                       NPC class list
>
>grub.c
>       1) gr_read (line 1508)
>                       first letter of each class used for grub
>
>handler.c
>       1) *extra_bit_name (lines 2878 - 2882)
>                       anti-class bit vector stuff
>
>ibuild.c
>       1) MENU_DATA obj_page_e_data[]
>                       contains anti-class stuff
>       2) fill_in_obj_page
>                       contains anti-class stuff
>       3) const char mob_page_a
>                       class menu for mob building?
>       4) const char obj_page_e
>                       anti-class flag stuff
>
>skills.c
>       1) learn_from_success (lines 1544 - 1545, 1553 - 1554)
>                       special mage and cleric gains
>       2) check_tumble (line 3787)
>                       checks for CLASS_THIEF
>
>tables.c
>       1) load_class_file, write_class_file (whole functions)
>                       loads/writes class a file (duh)
>
>update.c
>       1) check_alignment (line 595 - 602, 606 - 623)
>                       nephandi/paladin alignment checks
>
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


Other related posts:

  • » [ashimms] Fwd: class occurances in smaug (For Coders)