v2.5.1: fixed censer shop delay not working properly
This commit is contained in:
+2
-2
@@ -109,8 +109,8 @@ public class ChaoticCenser extends Trinket {
|
|||||||
if (safeAreaDelay >= 0) {
|
if (safeAreaDelay >= 0) {
|
||||||
for (Char ch : Actor.chars()) {
|
for (Char ch : Actor.chars()) {
|
||||||
if (ch instanceof Shopkeeper
|
if (ch instanceof Shopkeeper
|
||||||
&& Dungeon.level.distance(target.pos, ch.pos) <= 5
|
&& Dungeon.level.distance(target.pos, ch.pos) <= 6
|
||||||
&& new Ballistica(target.pos, ch.pos, Ballistica.STOP_SOLID).collisionPos == ch.pos) {
|
&& new Ballistica(target.pos, ch.pos, Ballistica.PROJECTILE).collisionPos == ch.pos) {
|
||||||
int delay = Random.NormalIntRange(2, 8);
|
int delay = Random.NormalIntRange(2, 8);
|
||||||
spend(delay);
|
spend(delay);
|
||||||
safeAreaDelay -= delay;
|
safeAreaDelay -= delay;
|
||||||
|
|||||||
Reference in New Issue
Block a user