a47b89788ee684f7f257725a76b770b7552d0c02
2 * Functions for dealing with problems of the heart
4 * @(#)romance.c 3.2 (Berkeley) 6/15/81
6 * Rogue: Exploring the Dungeons of Doom
7 * Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
10 * See the file LICENSE.TXT for full copyright and licensing information.
20 * Make eyes in the given direction
26 register struct linked_list
*item
;
27 struct object obj
= {};
31 do_motion(&obj
, ydelta
, xdelta
);
32 mvwaddch(cw
, hero
.y
, hero
.x
, PLAYER
);
33 if ((item
= find_mons(obj
.o_pos
.y
, obj
.o_pos
.x
)) == NULL
)
35 const char *msgs
[] = {
36 "You wink at nothing in particular.",
37 "You smile suggestively at the wall.",
38 "Unprompted, you suddenly blush.",
48 register struct linked_list
*obj
, *nobj
;
49 register struct linked_list
*mob
;
50 register struct object
*op
;
51 register struct thing
*tp
;
52 register bool did_hit
= TRUE
;
54 if ((mob
= find_mons(hero
.y
+ ydelta
, hero
.x
+ xdelta
)) == NULL
)
56 msg("There's no-one around here.");
59 tp
= (struct thing
*) ldata(mob
);
61 if ((obj
= get_item("give", 0)) == NULL
)
63 op
= (struct object
*) ldata(obj
);
67 * Take it out of the pack
69 if (op
->o_count
>= 2 && op
->o_type
!= WEAPON
)
71 nobj
= new_item(sizeof *op
);
73 op
= (struct object
*) ldata(nobj
);
74 *op
= *((struct object
*) ldata(obj
));