Viewing Issue Simple Details
[ Jump to Notes ]
[ Wiki ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0007986 |
[DCSS] Patches |
feature |
N/A |
2014-01-15 03:46 |
2014-02-22 15:31 |
|
Reporter |
Sage |
View Status |
public |
|
Assigned To |
Medar |
Priority |
normal |
Resolution |
done |
|
Status |
closed |
|
Product Branch |
0.14 ancient branch |
|
Summary |
0007986: Make oklobs select their own target when they have none |
Description |
If you tell them to stop, however, they do not select a target automatically. |
Additional Information |
|
Tags |
No tags attached. |
|
Attached Files |
autofire-oklob.patch [^] (808 bytes) 2014-01-15 03:46 [Show Content] [Hide Content]From 93fdd191eb2ec04c7d5314242f3ddd7460d67239 Mon Sep 17 00:00:00 2001
From: Sage <SageBasilMint@gmail.com>
Date: Wed, 15 Jan 2014 02:39:49 +0000
Subject: [PATCH] Make oklobs fire automatically when they have no preassigned
target.
---
crawl-ref/source/mon-behv.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 611f410..a2b36a6 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -461,6 +461,8 @@ void handle_behaviour(monster* mon)
{
if (you.pet_target != MHITNOT)
mon->foe = you.pet_target;
+ else if (mon->type == MONS_OKLOB_PLANT)
+ _set_nearest_monster_foe(mon);
}
else // Zotdef only
{
--
1.7.9.5
|
|