Skip to content

Instantly share code, notes, and snippets.

@neuro-sys
Last active December 14, 2015 12:28
Show Gist options
  • Select an option

  • Save neuro-sys/5086303 to your computer and use it in GitHub Desktop.

Select an option

Save neuro-sys/5086303 to your computer and use it in GitHub Desktop.
brain-dead
#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