Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: a bug of singing
Abusively getting exp. by the singing skill seems to be still
remained.
1. calm down a monster by singing, and get exp.
2. push and hit him.
3. after his movement, calm down him again.
(If he doesn't move on, you cannot get exp.)
You can also apply this way for stealing skill.
This bug report and the following patch is S.Yoshioka's work.
But I note another problem for singing and stealing skills.
If you calm down a monster, then you cannot steal from him,
because same flag FLAG_NO_STEAL is used for two skills.
----- 8= -------- 8< ------- 8= ---------
*** common/object.c- Thu Feb 4 12:51:39 1999
--- common/object.c Thu Mar 4 23:31:16 1999
***************
*** 1298,1304 ****
op->map=m;
CLEAR_FLAG(op,FLAG_APPLIED); /* hack for fixing F_APPLIED in items of dead people */
CLEAR_FLAG(op, FLAG_INV_LOCKED);
! CLEAR_FLAG(op, FLAG_NO_STEAL);
/* If there are other objects, then */
if((top=get_map_ob(op->map,op->x,op->y))!=NULL) {
/*
--- 1298,1305 ----
op->map=m;
CLEAR_FLAG(op,FLAG_APPLIED); /* hack for fixing F_APPLIED in items of dead people */
CLEAR_FLAG(op, FLAG_INV_LOCKED);
! if (!QUERY(op, FLAG_ALIVE))
! CLEAR_FLAG(op, FLAG_NO_STEAL);
/* If there are other objects, then */
if((top=get_map_ob(op->map,op->x,op->y))!=NULL) {
/*
------- 8< -------- 8= ---------
-------
--------------------------------------------------------------------------
Seikoh Nishita | Dep't. of Information & Computer Sciences
| Faculty of Engineering Science
[e-mail] | Osaka University
s-nisita@ics.es.osaka-u.ac.jp | Toyonaka, Osaka 560, Japan
-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]