-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathalign.cc
More file actions
49 lines (37 loc) · 1.08 KB
/
align.cc
File metadata and controls
49 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <ctype.h>
#include <sys/types.h>
#include <stdio.h>
#include "define.h"
#include "struct.h"
flag_data align_flags = { "Alignments",
&alignment_table[0].name,
&alignment_table[1].name,
&table_max[ TABLE_ALIGNMENT ], false };
flag_data abv_align_flags = { "Alignments",
&alignment_table[0].abbrev,
&alignment_table[1].abbrev,
&table_max[ TABLE_ALIGNMENT ], false };
/*
void do_alignment( char_data* ch, const char *argument )
{
int i;
if( is_mob( ch ) )
return;
i = ch->shdata->alignment;
class type_field type =
{ "alignment", MAX_ALIGNMENT, &alignment_name[0], &alignment_name[1],
&i, true };
type.set( ch, "you", argument );
if( !is_set( &clss_table[ ch->pcdata->clss ].alignments, i ) ) {
send( ch, "Your class does not allow that alignment.\n\r" );
return;
}
if( ch->shdata->race < MAX_PLYR_RACE
&& !is_set( &plyr_race_table[ ch->shdata->race ].alignments, i ) ) {
send( ch, "Your race does not allow that alignment.\n\r" );
return;
}
ch->shdata->alignment = i;
return;
}
*/