Changeset 717

Show
Ignore:
Timestamp:
02/26/08 04:35:02 (6 months ago)
Author:
takkaria
Message:

Fix #450:

  • Enable level feelings again.
  • Use the OAngband level feeling algorithm. This seems like it might weight things a bit better.
  • Add a birth option to control whether feelings appear or not. Expect it gone by 3.2.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd4.c

    r653 r717  
    43234323void do_cmd_feeling(void) 
    43244324{ 
     4325        /* Don't show feelings for cold-hearted characters */ 
     4326        if (OPT(birth_feelings)) return; 
     4327 
    43254328        /* Verify the feeling */ 
    43264329        if (feeling >= N_ELEMENTS(feeling_text)) 
  • trunk/src/generate.c

    r716 r717  
    33933393 
    33943394        /* Town gets no feeling */ 
    3395         if (!depth == 0) return 0; 
     3395        if (depth == 0) return 0; 
    33963396 
    33973397#if 0 
  • trunk/src/option.c

    r705 r717  
    8585                OPT_birth_maximize, 
    8686                OPT_birth_randarts, 
     87                OPT_birth_ai_sound, 
     88                OPT_birth_ai_smell, 
     89                OPT_birth_ai_packs, 
     90                OPT_birth_ai_learn, 
     91                OPT_birth_ai_cheat, 
     92                OPT_birth_ai_smart, 
    8793                OPT_birth_ironman, 
    8894                OPT_birth_no_stores, 
     
    9197                OPT_birth_no_preserve, 
    9298                OPT_birth_no_stairs, 
    93                 OPT_birth_ai_sound, 
    94                 OPT_birth_ai_smell, 
    95                 OPT_birth_ai_packs, 
    96                 OPT_birth_ai_learn, 
    97                 OPT_birth_ai_cheat, 
    98                 OPT_birth_ai_smart, 
    99                 OPT_NONE, 
     99                OPT_birth_feelings 
    100100        }, 
    101101 
     
    267267{ "birth_no_preserve",   "Lose artifacts when leaving level",           FALSE }, /* 135 */ 
    268268{ "birth_no_stairs",     "Don't generate connected stairs",             FALSE }, /* 136 */ 
    269 { NULL,                  NULL,                                          FALSE }, /* 137 */ 
     269{ "birth_feelings",      "Don't show level feelings",                   FALSE }, /* 137 */ 
    270270{ NULL,                  NULL,                                          FALSE }, /* 138 */ 
    271271{ NULL,                  NULL,                                          FALSE }, /* 139 */ 
  • trunk/src/option.h

    r698 r717  
    9292#define OPT_birth_no_preserve       (OPT_BIRTH+7) 
    9393#define OPT_birth_no_stairs                     (OPT_BIRTH+8) 
     94#define OPT_birth_feelings                              (OPT_BIRTH+9) 
    9495/* leave four spaces for future */ 
    9596#define OPT_birth_ai_sound                      (OPT_BIRTH+13) 
     
    115116#define OPT_adult_no_preserve       (OPT_ADULT+7) 
    116117#define OPT_adult_no_stairs                     (OPT_ADULT+8) 
     118#define OPT_adult_feelings                              (OPT_ADULT+9) 
    117119/* leave four spaces for future */ 
    118120#define OPT_adult_ai_sound                      (OPT_ADULT+13)