-
Notifications
You must be signed in to change notification settings - Fork 3
/
aid.c
66 lines (55 loc) · 2.06 KB
/
aid.c
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Baxter the Overlord of Deadland.
* deadland.ada.com.tr 9000 (195.142.130.3)
* Date: 02/20/97
*/
vodi spell_aid( int sn, int level, CHAR_DATA *ch, void *vo, int target )
{
CHAR_DATA *victim = (CHAR_DATA *) vo;
AFFECT_DATA af;
if ( is_affected( victim, sn ) )
{
if ( victim == ch )
send_to_char("You are already aided.\n\r", ch);
else
act("$N is already aided.",ch,NULL,victim,TO_CHAR);
return;
}
af.where = TO_AFFECTS;
af.type = sn;
af.level = level;
af.duration = level/2;
af.location = APPLY_HITROLL;
af.modifier = 1;
af.bitvector = 0;
affect_to_char( victim, &af );
send_to_char("You feel better!\n\r", victim);
if ( ch != victim )
act("$N looks aided.",ch,NULL,victim,TO_CHAR);
return;
}
/* const.c (skill_table)
{
"aid", { 53, 8, 53, 53 }, { 0, 1, 0, 0 },
spell_aid, TAR_CHAR_DEFENSIVE, POS_STANDING,
NULL, SLOT(xxx), 15, 12,
"", "You don't feel so aided anymore.",
""
}
*/
/*
=============================================================================
/ ______ _______ ____ _____ ___ __ _ ______ ____ ____ _____ /
\ | ____|__ __| _ \ / ____\ / _ \| \ / | ____| / __ \| _ \ / ____\ \
/ | |__ | | | |_| | | | |_| | |\/| | |___ | | | | |_| | | /
/ | ___| | | | ___/| | __| _ | | | | ____| | | | | __/| | ___ \
\ | | | | | | | |___| | | | | | | | |____ | |__| | |\ \| |___| | /
/ |_| |_| |_| o \_____/|_| |_|_| |_|______|o \____/|_| \_|\_____/ \
\ /
============================================================================
------------------------------------------------------------------------------
ftp://ftp.game.org/pub/mud FTP.GAME.ORG http://www.game.org/ftpsite/
------------------------------------------------------------------------------
This file came from FTP.GAME.ORG, the ultimate source for MUD resources.
------------------------------------------------------------------------------
*/