Changeset 996

Show
Ignore:
Timestamp:
10/01/08 01:41:31 (2 months ago)
Author:
takkaria
Message:

Move xtra1.c to player/calcs.c, splitting modify_stat_value() out into player/util.c.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/Makefile.inc

    r993 r996  
    1616attack.o: attack.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    1717  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    18   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    19   externs.h object/tvalsval.h 
     18  defines.h option.h types.h object/types.h object/object.h \ 
     19  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     20  object/tvalsval.h 
    2021birth.o: birth.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2122  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    22   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    23   object/tvalsval.h cmds.h game-event.h game-cmd.h ui-menu.h 
     23  option.h types.h object/types.h object/object.h monster/types.h \ 
     24  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h \ 
     25  game-event.h game-cmd.h ui-menu.h 
    2426button.o: button.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    2527  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    26   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    27   externs.h 
     28  defines.h option.h types.h object/types.h object/object.h \ 
     29  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    2830cave.o: cave.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    2931  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    30   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    31   object/tvalsval.h game-event.h 
     32  option.h types.h object/types.h object/object.h monster/types.h \ 
     33  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 
     34  game-event.h 
    3235cmd0.o: cmd0.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3336  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    34   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    35   wizard.h cmds.h ui-menu.h 
     37  option.h types.h object/types.h object/object.h monster/types.h \ 
     38  player/types.h store.h ui.h z-type.h externs.h wizard.h cmds.h \ 
     39  ui-menu.h 
    3640cmd1.o: cmd1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    3741  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    38   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     42  option.h types.h object/types.h object/object.h monster/types.h \ 
     43  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h 
     44cmd2.o: cmd2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     45  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     46  option.h types.h object/types.h object/object.h monster/types.h \ 
     47  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 
     48cmd3.o: cmd3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     49  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     50  option.h types.h object/types.h object/object.h monster/types.h \ 
     51  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 
     52cmd4.o: cmd4.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     53  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     54  option.h types.h object/types.h object/object.h monster/types.h \ 
     55  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 
     56  ui-menu.h 
     57cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     58  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     59  option.h types.h object/types.h object/object.h monster/types.h \ 
     60  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 
     61cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     62  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     63  option.h types.h object/types.h object/object.h monster/types.h \ 
     64  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h cmds.h \ 
     65  effects.h list-effects.h 
     66cmd-obj.o: cmd-obj.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     67  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     68  defines.h option.h types.h object/types.h object/object.h \ 
     69  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
    3970  object/tvalsval.h cmds.h 
    40 cmd2.o: cmd2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    41   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    42   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    43   object/tvalsval.h 
    44 cmd3.o: cmd3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    45   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    46   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    47   object/tvalsval.h 
    48 cmd4.o: cmd4.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    49   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    50   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    51   object/tvalsval.h ui-menu.h 
    52 cmd5.o: cmd5.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    53   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    54   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    55   object/tvalsval.h 
    56 cmd6.o: cmd6.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    57   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    58   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    59   object/tvalsval.h cmds.h effects.h list-effects.h 
    60 cmd-obj.o: cmd-obj.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    61   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    62   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    63   externs.h object/tvalsval.h cmds.h 
    6471death.o: death.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    6572  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    66   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
     73  option.h types.h object/types.h object/object.h monster/types.h \ 
     74  player/types.h store.h ui.h z-type.h externs.h ui-menu.h cmds.h 
     75debug.o: debug.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     76  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     77  option.h types.h object/types.h object/object.h monster/types.h \ 
     78  player/types.h store.h ui.h z-type.h externs.h debug.h 
     79dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     80  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     81  defines.h option.h types.h object/types.h object/object.h \ 
     82  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     83  object/tvalsval.h cmds.h game-event.h 
     84effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     85  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     86  defines.h option.h types.h object/types.h object/object.h \ 
     87  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     88  effects.h list-effects.h 
     89files.o: files.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
     90  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
     91  option.h types.h object/types.h object/object.h monster/types.h \ 
     92  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 
    6793  ui-menu.h cmds.h 
    68 debug.o: debug.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    69   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    70   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    71   debug.h 
    72 dungeon.o: dungeon.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    73   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    74   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    75   externs.h object/tvalsval.h cmds.h game-event.h 
    76 effects.o: effects.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    77   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    78   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    79   externs.h effects.h list-effects.h 
    80 files.o: files.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    81   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    82   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    83   object/tvalsval.h ui-menu.h cmds.h 
    8494game-cmd.o: game-cmd.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    8595  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    86   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    87   externs.h game-cmd.h 
     96  defines.h option.h types.h object/types.h object/object.h \ 
     97  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     98  game-cmd.h 
    8899game-event.o: game-event.c z-virt.h h-basic.h game-event.h 
    89100generate.o: generate.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    90101  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    91   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    92   externs.h 
     102  defines.h option.h types.h object/types.h object/object.h \ 
     103  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    93104history.o: history.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    94105  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    95   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    96   externs.h 
     106  defines.h option.h types.h object/types.h object/object.h \ 
     107  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    97108init1.o: init1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    98109  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    99   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    100   object/tvalsval.h effects.h list-effects.h init.h 
     110  option.h types.h object/types.h object/object.h monster/types.h \ 
     111  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h \ 
     112  effects.h list-effects.h init.h 
    101113init2.o: init2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    102114  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    103   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    104   init.h cmds.h game-event.h game-cmd.h 
     115  option.h types.h object/types.h object/object.h monster/types.h \ 
     116  player/types.h store.h ui.h z-type.h externs.h init.h cmds.h \ 
     117  game-event.h game-cmd.h 
    105118load.o: load.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    106119  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    107   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    108   object/tvalsval.h 
     120  option.h types.h object/types.h object/object.h monster/types.h \ 
     121  player/types.h store.h ui.h z-type.h externs.h object/tvalsval.h 
    109122melee1.o: monster/melee1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    110123  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    111   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    112   externs.h object/tvalsval.h 
     124  defines.h option.h types.h object/types.h object/object.h \ 
     125  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     126  object/tvalsval.h 
    113127melee2.o: monster/melee2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    114128  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    115   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    116   externs.h bitflag.h object/tvalsval.h 
     129  defines.h option.h types.h object/types.h object/object.h \ 
     130  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     131  bitflag.h object/tvalsval.h 
    117132monster1.o: monster/monster1.c angband.h h-basic.h z-file.h z-form.h \ 
    118133  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    119   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    120   z-type.h externs.h 
     134  config.h defines.h option.h types.h object/types.h object/object.h \ 
     135  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    121136monster2.o: monster/monster2.c angband.h h-basic.h z-file.h z-form.h \ 
    122137  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    123   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    124   z-type.h externs.h 
     138  config.h defines.h option.h types.h object/types.h object/object.h \ 
     139  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    125140obj-desc.o: object/obj-desc.c angband.h h-basic.h z-file.h z-form.h \ 
    126141  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    127   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    128   z-type.h externs.h object/tvalsval.h 
     142  config.h defines.h option.h types.h object/types.h object/object.h \ 
     143  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     144  object/tvalsval.h 
    129145obj-info.o: object/obj-info.c angband.h h-basic.h z-file.h z-form.h \ 
    130146  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    131   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    132   z-type.h externs.h effects.h list-effects.h cmds.h object/tvalsval.h 
     147  config.h defines.h option.h types.h object/types.h object/object.h \ 
     148  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     149  effects.h list-effects.h cmds.h object/tvalsval.h 
    133150obj-make.o: object/obj-make.c angband.h h-basic.h z-file.h z-form.h \ 
    134151  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    135   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    136   z-type.h externs.h object/tvalsval.h 
     152  config.h defines.h option.h types.h object/types.h object/object.h \ 
     153  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     154  object/tvalsval.h 
    137155obj-ui.o: object/obj-ui.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    138156  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    139   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    140   externs.h object/tvalsval.h 
     157  defines.h option.h types.h object/types.h object/object.h \ 
     158  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     159  object/tvalsval.h 
    141160obj-util.o: object/obj-util.c angband.h h-basic.h z-file.h z-form.h \ 
    142161  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
    143   config.h defines.h option.h types.h object/types.h monster/types.h ui.h \ 
    144   z-type.h externs.h randname.h object/tvalsval.h 
     162  config.h defines.h option.h types.h object/types.h object/object.h \ 
     163  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     164  randname.h object/tvalsval.h 
     165randart.o: object/randart.c angband.h h-basic.h z-file.h z-form.h \ 
     166  z-util.h z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h \ 
     167  config.h defines.h option.h types.h object/types.h object/object.h \ 
     168  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     169  object/tvalsval.h init.h randname.h 
    145170option.o: option.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    146171  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    147   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    148   externs.h 
    149 randart.o: randart.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    150   z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    151   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    152   externs.h object/tvalsval.h init.h randname.h 
     172  defines.h option.h types.h object/types.h object/object.h \ 
     173  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    153174randname.o: randname.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    154175  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    155   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    156   externs.h randname.h 
     176  defines.h option.h types.h object/types.h object/object.h \ 
     177  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     178  randname.h 
    157179pathfind.o: pathfind.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    158180  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    159   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    160   externs.h 
     181  defines.h option.h types.h object/types.h object/object.h \ 
     182  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
     183calcs.o: player/calcs.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
     184  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
     185  defines.h option.h types.h object/types.h object/object.h \ 
     186  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     187  game-event.h object/tvalsval.h 
    161188score.o: score.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    162189  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    163   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
     190  option.h types.h object/types.h object/object.h monster/types.h \ 
     191  player/types.h store.h ui.h z-type.h externs.h 
    164192signals.o: signals.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    165193  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    166   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    167   externs.h 
     194  defines.h option.h types.h object/types.h object/object.h \ 
     195  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    168196save.o: save.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    169197  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    170   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
     198  option.h types.h object/types.h object/object.h monster/types.h \ 
     199  player/types.h store.h ui.h z-type.h externs.h 
    171200spells1.o: spells1.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    172201  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    173   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    174   externs.h object/tvalsval.h 
     202  defines.h option.h types.h object/types.h object/object.h \ 
     203  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     204  object/tvalsval.h 
    175205spells2.o: spells2.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    176206  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    177   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    178   externs.h object/tvalsval.h 
     207  defines.h option.h types.h object/types.h object/object.h \ 
     208  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     209  object/tvalsval.h 
    179210squelch.o: squelch.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    180211  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    181   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    182   externs.h cmds.h ui-menu.h object/tvalsval.h 
     212  defines.h option.h types.h object/types.h object/object.h \ 
     213  monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 
     214  ui-menu.h object/tvalsval.h 
    183215store.o: store.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    184216  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    185   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    186   cmds.h ui-menu.h game-event.h object/tvalsval.h 
     217  option.h types.h object/types.h object/object.h monster/types.h \ 
     218  player/types.h store.h ui.h z-type.h externs.h cmds.h ui-menu.h \ 
     219  game-event.h object/tvalsval.h 
    187220tables.o: tables.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    188221  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    189   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    190   externs.h object/tvalsval.h 
     222  defines.h option.h types.h object/types.h object/object.h \ 
     223  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     224  object/tvalsval.h 
    191225target.o: target.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    192226  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    193   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    194   externs.h cmds.h 
     227  defines.h option.h types.h object/types.h object/object.h \ 
     228  monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h 
    195229trap.o: trap.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    196230  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    197   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
     231  option.h types.h object/types.h object/object.h monster/types.h \ 
     232  player/types.h store.h ui.h z-type.h externs.h 
    198233ui.o: ui.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    199234  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    200   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h 
     235  option.h types.h object/types.h object/object.h monster/types.h \ 
     236  player/types.h store.h ui.h z-type.h externs.h 
    201237ui-birth.o: ui-birth.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    202238  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    203   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    204   externs.h ui-menu.h game-event.h game-cmd.h 
     239  defines.h option.h types.h object/types.h object/object.h \ 
     240  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     241  ui-menu.h game-event.h game-cmd.h 
    205242ui-event.o: ui-event.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    206243  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    207   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    208   externs.h 
     244  defines.h option.h types.h object/types.h object/object.h \ 
     245  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    209246ui-menu.o: ui-menu.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    210247  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    211   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    212   externs.h ui-menu.h 
     248  defines.h option.h types.h object/types.h object/object.h \ 
     249  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     250  ui-menu.h 
    213251util.o: util.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    214252  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    215   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    216   randname.h 
     253  option.h types.h object/types.h object/object.h monster/types.h \ 
     254  player/types.h store.h ui.h z-type.h externs.h randname.h 
    217255variable.o: variable.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    218256  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    219   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    220   externs.h 
     257  defines.h option.h types.h object/types.h object/object.h \ 
     258  monster/types.h player/types.h store.h ui.h z-type.h externs.h 
    221259wiz-spoil.o: wiz-spoil.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    222260  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    223   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    224   externs.h cmds.h object/tvalsval.h 
     261  defines.h option.h types.h object/types.h object/object.h \ 
     262  monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 
     263  object/tvalsval.h 
    225264wiz-stats.o: wiz-stats.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    226265  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    227   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    228   externs.h cmds.h wizard.h object/tvalsval.h 
     266  defines.h option.h types.h object/types.h object/object.h \ 
     267  monster/types.h player/types.h store.h ui.h z-type.h externs.h cmds.h \ 
     268  wizard.h object/tvalsval.h 
    229269wizard.o: wizard.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    230270  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    231   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    232   externs.h wizard.h cmds.h object/tvalsval.h 
     271  defines.h option.h types.h object/types.h object/object.h \ 
     272  monster/types.h player/types.h store.h ui.h z-type.h externs.h wizard.h \ 
     273  cmds.h object/tvalsval.h 
    233274x-spell.o: x-spell.c angband.h h-basic.h z-file.h z-form.h z-util.h \ 
    234275  z-virt.h z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h \ 
    235   defines.h option.h types.h object/types.h monster/types.h ui.h z-type.h \ 
    236   externs.h object/tvalsval.h 
    237 xtra1.o: xtra1.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    238   z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    239   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    240   game-event.h object/tvalsval.h 
     276  defines.h option.h types.h object/types.h object/object.h \ 
     277  monster/types.h player/types.h store.h ui.h z-type.h externs.h \ 
     278  object/tvalsval.h 
    241279xtra2.o: xtra2.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    242280  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    243   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    244   cmds.h object/tvalsval.h 
     281  option.h types.h object/types.h object/object.h monster/types.h \ 
     282  player/types.h store.h ui.h z-type.h externs.h cmds.h object/tvalsval.h 
    245283xtra3.o: xtra3.c angband.h h-basic.h z-file.h z-form.h z-util.h z-virt.h \ 
    246284  z-rand.h z-term.h ui-event.h z-quark.h z-msg.h config.h defines.h \ 
    247   option.h types.h object/types.h monster/types.h ui.h z-type.h externs.h \ 
    248   game-event.h ui-birth.h object/tvalsval.h 
     285  option.h types.h object/types.h object/object.h monster/types.h \ 
     286  player/types.h store.h ui.h z-type.h externs.h game-event.h ui-birth.h \ 
     287  object/tvalsval.h 
    249288z-file.o: z-file.c z-file.h h-basic.h z-virt.h z-util.h z-form.h 
    250289z-form.o: z-form.c z-form.h h-basic.h z-type.h z-util.h z-virt.h 
  • trunk/src/Makefile.src

    r993 r996  
    9090        randname.o \ 
    9191        pathfind.o \ 
     92        player/calcs.o \ 
     93        player/util.o \ 
    9294        score.o \ 
    9395        signals.o \ 
     
    110112        wizard.o \ 
    111113        x-spell.o \ 
    112         xtra1.o \ 
    113114        xtra2.o \ 
    114115        xtra3.o 
  • trunk/src/angband.h

    r993 r996  
    3939#include "object/object.h" 
    4040#include "monster/types.h" 
     41#include "player/types.h" 
     42#include "player/player.h" 
    4143#include "store.h" 
    4244 
  • trunk/src/externs.h

    r993 r996  
    639639extern bool cast_spell(int tval, int index); 
    640640 
    641 /* xtra1.c */ 
    642 s16b modify_stat_value(int value, int amount); 
    643 int calc_blows(const object_type *o_ptr); 
    644 void notice_stuff(void); 
    645 void update_stuff(void); 
    646 void redraw_stuff(void); 
    647 void handle_stuff(void); 
    648  
    649641/* xtra2.c */ 
    650642bool set_timed(int idx, int v); 
  • trunk/src/player/calcs.c

    • Property svn:mergeinfo set
    r993 r996  
    11/* 
    2  * File: xtra1.c 
     2 * File: player/calcs.c 
    33 * Purpose: Player status calculation, signalling ui events based on status 
    44 *          changes. 
     
    2121#include "object/tvalsval.h" 
    2222 
    23  
    24 struct flag_event_trigger 
    25 { 
    26         u32b flag; 
    27         game_event_type event; 
    28 }; 
    29  
    30 /* 
    31  * Modify a stat value by a "modifier", return new value 
    32  * 
    33  * Stats go up: 3,4,...,17,18,18/10,18/20,...,18/220 
    34  * Or even: 18/13, 18/23, 18/33, ..., 18/220 
    35  * 
    36  * Stats go down: 18/220, 18/210,..., 18/10, 18, 17, ..., 3 
    37  * Or even: 18/13, 18/03, 18, 17, ..., 3 
    38  */ 
    39 s16b modify_stat_value(int value, int amount) 
    40 { 
    41         int i; 
    42  
    43         /* Reward */ 
    44         if (amount > 0) 
    45         { 
    46                 /* Apply each point */ 
    47                 for (i = 0; i < amount; i++) 
    48                 { 
    49                         /* One point at a time */ 
    50                         if (value < 18) value++; 
    51  
    52                         /* Ten "points" at a time */ 
    53                         else value += 10; 
    54                 } 
    55         } 
    56  
    57         /* Penalty */ 
    58         else if (amount < 0) 
    59         { 
    60                 /* Apply each point */ 
    61                 for (i = 0; i < (0 - amount); i++) 
    62                 { 
    63                         /* Ten points at a time */ 
    64                         if (value >= 18+10) value -= 10; 
    65  
    66                         /* Hack -- prevent weirdness */ 
    67                         else if (value > 18) value = 18; 
    68  
    69                         /* One point at a time */ 
    70                         else if (value > 3) value--; 
    71                 } 
    72         } 
    73  
    74         /* Return new value */ 
    75         return (value); 
    76 } 
    7723 
    7824 
     
    16611607 
    16621608 
     1609struct flag_event_trigger 
     1610{ 
     1611        u32b flag; 
     1612        game_event_type event; 
     1613}; 
     1614 
     1615 
     1616 
    16631617/* 
    16641618 * Events triggered by the various flags. 
     
    16831637        { PR_DTRAP,   EVENT_DETECTIONSTATUS }, 
    16841638        { PR_BUTTONS, EVENT_MOUSEBUTTONS }, 
    1685          
     1639 
    16861640        { PR_INVEN,   EVENT_INVENTORY }, 
    16871641        { PR_EQUIP,   EVENT_EQUIPMENT }, 
  • trunk/src/types.h

    r993 r996  
    352352 
    353353 
    354 /* 
    355  * Most of the "player" information goes here. 
    356  * 
    357  * This stucture gives us a large collection of player variables. 
    358  * 
    359  * This entire structure is wiped when a new character is born. 
    360  * 
    361  * This structure is more or less laid out so that the information 
    362  * which must be saved in the savefile precedes all the information 
    363  * which can be recomputed as needed. 
    364  */ 
    365 struct player_type 
    366 { 
    367         s16b py;                        /* Player location */ 
    368         s16b px;                        /* Player location */ 
    369  
    370         byte psex;                      /* Sex index */ 
    371         byte prace;                     /* Race index */ 
    372         byte pclass;            /* Class index */ 
    373         byte oops;                      /* Unused */ 
    374  
    375         byte hitdie;            /* Hit dice (sides) */ 
    376         byte expfact;           /* Experience factor */ 
    377  
    378         s16b age;                       /* Characters age */ 
    379         s16b ht;                        /* Height */ 
    380         s16b wt;                        /* Weight */ 
    381         s16b sc;                        /* Social Class */ 
    382  
    383         s32b au;                        /* Current Gold */ 
    384  
    385         s16b max_depth;         /* Max depth */ 
    386         s16b depth;                     /* Cur depth */ 
    387  
    388         s16b max_lev;           /* Max level */ 
    389         s16b lev;                       /* Cur level */ 
    390  
    391         s32b max_exp;           /* Max experience */ 
    392         s32b exp;                       /* Cur experience */ 
    393         u16b exp_frac;          /* Cur exp frac (times 2^16) */ 
    394  
    395         s16b mhp;                       /* Max hit pts */ 
    396         s16b chp;                       /* Cur hit pts */ 
    397         u16b chp_frac;          /* Cur hit frac (times 2^16) */ 
    398  
    399         s16b msp;                       /* Max mana pts */ 
    400         s16b csp;                       /* Cur mana pts */ 
    401         u16b csp_frac;          /* Cur mana frac (times 2^16) */ 
    402  
    403         s16b stat_max[A_MAX];   /* Current "maximal" stat values */ 
    404         s16b stat_cur[A_MAX];   /* Current "natural" stat values */ 
    405  
    406         s16b timed[TMD_MAX];    /* Timed effects */ 
    407  
    408         s16b word_recall;       /* Word of recall counter */ 
    409  
    410         s16b energy;            /* Current energy */ 
    411  
    412         s16b food;                      /* Current nutrition */ 
    413  
    414         byte confusing;         /* Glowing hands */ 
    415         byte searching;         /* Currently searching */ 
    416  
    417         byte spell_flags[PY_MAX_SPELLS]; /* Spell flags */ 
    418  
    419         byte spell_order[PY_MAX_SPELLS];        /* Spell order */ 
    420  
    421         s16b player_hp[PY_MAX_LEVEL];   /* HP Array */ 
    422  
    423         char died_from[80];             /* Cause of death */ 
    424         char history[250];      /* Initial history */ 
    425  
    426         u16b total_winner;              /* Total winner */ 
    427         u16b panic_save;                /* Panic save */ 
    428  
    429         u16b noscore;                   /* Cheating flags */ 
    430  
    431         bool is_dead;                   /* Player is dead */ 
    432  
    433         bool wizard;                    /* Player is in wizard mode */ 
    434  
    435  
    436         /*** Temporary fields ***/ 
    437  
    438         bool playing;                   /* True if player is playing */ 
    439  
    440         bool leaving;                   /* True if player is leaving */ 
    441  
    442         bool create_up_stair;   /* Create up stair on next level */ 
    443         bool create_down_stair; /* Create down stair on next level */ 
    444  
    445         s32b total_weight;              /* Total weight being carried */ 
    446  
    447         s16b inven_cnt;                 /* Number of items in inventory */ 
    448         s16b equip_cnt;                 /* Number of items in equipment */ 
    449  
    450         s16b health_who;                /* Health bar trackee */ 
    451  
    452         s16b monster_race_idx;  /* Monster race trackee */ 
    453  
    454         s16b object_kind_idx;   /* Object kind trackee */ 
    455  
    456         s16b energy_use;                /* Energy use this turn */ 
    457  
    458         s16b resting;                   /* Resting counter */ 
    459         s16b running;                   /* Running counter */ 
    460         bool running_withpathfind;      /* Are we using the pathfinder ? */ 
    461  
    462         s16b run_cur_dir;               /* Direction we are running */ 
    463         s16b run_old_dir;               /* Direction we came from */ 
    464         bool run_unused;                /* Unused (padding field) */ 
    465         bool run_open_area;             /* Looking for an open area */ 
    466         bool run_break_right;   /* Looking for a break (right) */ 
    467         bool run_break_left;    /* Looking for a break (left) */ 
    468  
    469         s16b command_cmd;               /* Gives identity of current command */ 
    470         s16b command_arg;               /* Gives argument of current command */ 
    471         s16b command_rep;               /* Gives repetition of current command */ 
    472         s16b command_dir;               /* Gives direction of current command */ 
    473         int  command_inv;               /* Gives item of current command */ 
    474         ui_event_data command_cmd_ex; /* Gives additional information of current command */ 
    475  
    476         s16b command_wrk;               /* See "cmd1.c" */ 
    477         s16b command_new;               /* Hack -- command chaining XXX XXX */ 
    478  
    479         s16b new_spells;                /* Number of spells available */ 
    480  
    481         bool cumber_armor;      /* Mana draining armor */ 
    482         bool cumber_glove;      /* Mana draining gloves */ 
    483         bool heavy_wield;       /* Heavy weapon */ 
    484         bool heavy_shoot;       /* Heavy shooter */ 
    485         bool icky_wield;        /* Icky weapon */ 
    486  
    487         s16b cur_lite;          /* Radius of lite (if any) */ 
    488  
    489         u32b notice;            /* Special Updates (bit flags) */ 
    490         u32b update;            /* Pending Updates (bit flags) */ 
    491         u32b redraw;            /* Normal Redraws (bit flags) */ 
    492  
    493         s16b stat_use[A_MAX];   /* Current modified stats */ 
    494         s16b stat_top[A_MAX];   /* Maximal modified stats */ 
    495  
    496         /*** Extracted fields ***/ 
    497  
    498         s16b stat_add[A_MAX];   /* Equipment stat bonuses */ 
    499         s16b stat_ind[A_MAX];   /* Indexes into stat tables */ 
    500  
    501         bool vuln_acid; 
    502         bool vuln_elec; 
    503         bool vuln_fire; 
    504         bool vuln_cold; 
    505  
    506         bool immune_acid;       /* Immunity to acid */ 
    507         bool immune_elec;       /* Immunity to lightning */ 
    508         bool immune_fire;       /* Immunity to fire */ 
    509         bool immune_cold;       /* Immunity to cold */ 
    510  
    511         bool resist_acid;       /* Resist acid */ 
    512         bool resist_elec;       /* Resist lightning */ 
    513         bool resist_fire;       /* Resist fire */ 
    514         bool resist_cold;       /* Resist cold */ 
    515         bool resist_pois;       /* Resist poison */ 
    516  
    517         bool resist_fear;       /* Resist fear */ 
    518         bool resist_lite;       /* Resist light */ 
    519         bool resist_dark;       /* Resist darkness */ 
    520         bool resist_blind;      /* Resist blindness */ 
    521         bool resist_confu;      /* Resist confusion */ 
    522         bool resist_sound;      /* Resist sound */ 
    523         bool resist_shard;      /* Resist shards */ 
    524         bool resist_nexus;      /* Resist nexus */ 
    525         bool resist_nethr;      /* Resist nether */ 
    526         bool resist_chaos;      /* Resist chaos */ 
    527         bool resist_disen;      /* Resist disenchant */ 
    528  
    529         bool sustain_str;       /* Keep strength */ 
    530         bool sustain_int;       /* Keep intelligence */ 
    531         bool sustain_wis;       /* Keep wisdom */ 
    532         bool sustain_dex;       /* Keep dexterity */ 
    533         bool sustain_con;       /* Keep constitution */ 
    534         bool sustain_chr;       /* Keep charisma */ 
    535  
    536         bool slow_digest;       /* Slower digestion */ 
    537         bool impair_hp;   /* Slow HP regeneration */ 
    538         bool impair_mana; /* Slow mana regeneration */ 
    539         bool ffall;                     /* Feather falling */ 
    540         bool regenerate;        /* Regeneration */ 
    541         bool telepathy;         /* Telepathy */ 
    542         bool see_inv;           /* See invisible */ 
    543         bool free_act;          /* Free action */ 
    544         bool hold_life;         /* Hold life */ 
    545         bool afraid;            /* Afraid */ 
    546  
    547         bool impact;            /* Earthquake blows */ 
    548         bool aggravate;         /* Aggravate monsters */ 
    549         bool teleport;          /* Random teleporting */ 
    550         bool exp_drain;         /* Experience draining */ 
    551  
    552         bool bless_blade;       /* Blessed blade */ 
    553  
    554         s16b dis_to_h;          /* Known bonus to hit */ 
    555         s16b dis_to_d;          /* Known bonus to dam */ 
    556         s16b dis_to_a;          /* Known bonus to ac */ 
    557  
    558         s16b dis_ac;            /* Known base ac */ 
    559  
    560         s16b to_h;                      /* Bonus to hit */ 
    561         s16b to_d;                      /* Bonus to dam */ 
    562         s16b to_a;                      /* Bonus to ac */ 
    563  
    564         s16b ac;                        /* Base ac */ 
    565  
    566         s16b see_infra;         /* Infravision range */ 
    567  
    568         s16b skills[SKILL_MAX]; /* Skills */ 
    569  
    570         u32b noise;                     /* Derived from stealth */ 
    571  
    572         s16b num_blow;          /* Number of blows */ 
    573         s16b num_fire;          /* Number of shots */ 
    574  
    575         byte ammo_mult;         /* Ammo multiplier */ 
    576  
    577         byte ammo_tval;         /* Ammo variety */ 
    578  
    579         s16b pspeed;            /* Current speed */ 
    580  
    581         /* Generation fields (for quick start) */ 
    582         s32b au_birth;          /* Birth gold */ 
    583         s16b stat_birth[A_MAX]; /* Birth "natural" stat values */ 
    584         s16b ht_birth;          /* Birth Height */ 
    585         s16b wt_birth;          /* Birth Weight */ 
    586 }; 
    587  
    588  
    589354/** 
    590355 * Defines a (value, name) pairing.  Variable names used are historical.