Last active
December 14, 2015 12:28
-
-
Save neuro-sys/5086303 to your computer and use it in GitHub Desktop.
brain-dead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "global.h" | |
| void ch_crt_select_age(struct character_t * character, int age_type, int attr) | |
| { | |
| int adjust; | |
| if (age_type == age_mid) | |
| return; | |
| if (age_type == age_early) | |
| adjust = 1; | |
| else if (age_type == age_late) | |
| adjust = -1; | |
| character->attributes[attr] += adjust; | |
| character->age_attribute = attr; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment