version 1.59 | | version 1.60 |
---|
| | |
/* | | /* |
* static char *rcsid_living_c = | | * static char *rcsid_living_c = |
* "$Id: living.c,v 1.59 2004/02/24 06:00:24 mwedel Exp $"; | | * "$Id: living.c,v 1.60 2004/02/27 23:00:26 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
| | |
void | | void |
set_attr_value(living *stats,int attr,signed char value) { | | set_attr_value(living *stats,int attr,sint8 value) { |
switch(attr) { | | switch(attr) { |
case STR: | | case STR: |
stats->Str=value; | | stats->Str=value; |
| | |
*/ | | */ |
| | |
void | | void |
change_attr_value(living *stats,int attr,signed char value) { | | change_attr_value(living *stats,int attr,sint8 value) { |
if (value==0) return; | | if (value==0) return; |
switch(attr) { | | switch(attr) { |
case STR: | | case STR: |
| | |
* returns the specified stat. See also set_attr_value(). | | * returns the specified stat. See also set_attr_value(). |
*/ | | */ |
| | |
signed char | | sint8 |
get_attr_value(living *stats,int attr) { | | get_attr_value(living *stats,int attr) { |
switch(attr) { | | switch(attr) { |
case STR: | | case STR: |