Don't make callers responsible for losestr death
Remove callers' responsibility to deal with possible hero death when calling losestr. This is less fragile and error-prone than leaving it in the caller's hands, but it means that death from the monster spell 'weaken target' no longer goes through done_in_by, and the death reason is no longer "killed by <monster name>".
This commit is contained in:
@@ -114,7 +114,7 @@ extern struct obj *has_magic_key(struct monst *);
|
||||
|
||||
extern boolean adjattrib(int, int, int);
|
||||
extern void gainstr(struct obj *, int, boolean);
|
||||
extern void losestr(int);
|
||||
extern void losestr(int, const char *, schar);
|
||||
extern void poisontell(int, boolean);
|
||||
extern void poisoned(const char *, int, const char *, int, boolean);
|
||||
extern void change_luck(schar);
|
||||
|
||||
Reference in New Issue
Block a user