/* Aux function */
-void get_random_virtue(int which)
+static void get_random_virtue(int which)
{
int type = 0;
/* Select virtues & reset values for a new character */
-void get_virtues()
+void get_virtues(void)
{
int i = 0, j = 0;
{
switch(p_ptr->realm1)
{
- case REALM_LIFE: /* nanka */
- if (virtue_number(V_FAITH))
- p_ptr->vir_types[i++] = V_VITALITY;
- else p_ptr->vir_types[i++] = V_FAITH;
+ case REALM_LIFE:
+ if (virtue_number(V_VITALITY))
+ p_ptr->vir_types[i++] = V_TEMPERANCE;
+ else p_ptr->vir_types[i++] = V_VITALITY;
break;
case REALM_SORCERY:
if (virtue_number(V_KNOWLEDGE))
p_ptr->vir_types[i++] = V_FAITH;
else p_ptr->vir_types[i++] = V_JUSTICE;
break;
- case REALM_HAJA: /* nanka */
- if (virtue_number(V_FAITH))
- p_ptr->vir_types[i++] = V_VITALITY;
- else p_ptr->vir_types[i++] = V_FAITH;
+ case REALM_CRUSADE:
+ if (virtue_number(V_JUSTICE))
+ p_ptr->vir_types[i++] = V_HONOUR;
+ else p_ptr->vir_types[i++] = V_JUSTICE;
break;
};
}
{
switch(p_ptr->realm2)
{
- case REALM_LIFE: /* nanka */
- if (virtue_number(V_FAITH))
- p_ptr->vir_types[i++] = V_VITALITY;
- else p_ptr->vir_types[i++] = V_FAITH;
+ case REALM_LIFE:
+ if (virtue_number(V_VITALITY))
+ p_ptr->vir_types[i++] = V_TEMPERANCE;
+ else p_ptr->vir_types[i++] = V_VITALITY;
break;
case REALM_SORCERY:
if (virtue_number(V_ENCHANT))
p_ptr->vir_types[i++] = V_FAITH;
else p_ptr->vir_types[i++] = V_JUSTICE;
break;
- case REALM_HAJA: /* nanka */
- if (virtue_number(V_FAITH))
- p_ptr->vir_types[i++] = V_VITALITY;
- else p_ptr->vir_types[i++] = V_FAITH;
+ case REALM_CRUSADE:
+ if (virtue_number(V_JUSTICE))
+ p_ptr->vir_types[i++] = V_HONOUR;
+ else p_ptr->vir_types[i++] = V_JUSTICE;
break;
};
}