[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs 470f11b433 357/472: Reset terrified timer on eatin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs 470f11b433 357/472: Reset terrified timer on eating BP (#173) |
Date: |
Thu, 6 Jan 2022 21:59:39 -0500 (EST) |
branch: elpa/pacmacs
commit 470f11b433152eef3daf58048acc8518a4d11fe4
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Reset terrified timer on eating BP (#173)
---
pacmacs.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/pacmacs.el b/pacmacs.el
index 03356b11d1..2472f010be 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -430,6 +430,12 @@
pacmacs--ghost-terrified-time-ms)
ghost)
+(defun pacmacs--reset-terrified-ghost (terrified-ghost)
+ (plist-put terrified-ghost
+ :terrified-timer pacmacs--ghost-terrified-time-ms)
+ (plist-put terrified-ghost
+ :current-animation (pacmacs-load-anim "Terrified-Ghost")))
+
(defun pacmacs--unterrify-ghost (terrified-ghost)
(plist-put terrified-ghost :switch-direction-callback
(pacmacs--switch-direction-animation-callback "Red-Ghost"))
@@ -442,7 +448,10 @@
(dolist (ghost pacmacs--ghosts)
(add-to-list 'pacmacs--terrified-ghosts
(pacmacs--terrify-ghost ghost)))
- (setq pacmacs--ghosts nil))
+ (setq pacmacs--ghosts nil)
+
+ (dolist (terrified-ghost pacmacs--terrified-ghosts)
+ (pacmacs--reset-terrified-ghost terrified-ghost)))
(defun pacmacs--unterrify-timed-out-ghosts ()
(dolist (terrified-ghost (-filter #'pacmacs--terrified-ghost-timed-out-p
- [nongnu] elpa/pacmacs d608708f15 311/472: UT for handle-ghost-blinking-threshold (#159), (continued)
- [nongnu] elpa/pacmacs d608708f15 311/472: UT for handle-ghost-blinking-threshold (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 2297996e29 323/472: Smarter running away algorithm (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9b714e4678 321/472: Fix pacmacs--track-object UT (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 16a6ac7e98 327/472: UT for pacmacs--render-track-board, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 729de2de92 329/472: Remove big from the first level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 556098da2e 337/472: Put big pills level before w/o BP ones (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 151da84fdc 338/472: Remove replace-game-object function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c4c2fbfa6f 347/472: Merge branch 'master' into unterrified-original-possition-171, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9375a8a3e7 351/472: Merge branch 'master' into unterrified-original-possition-171, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 51a2ac25fe 354/472: Merge pull request #175 from codingteam/maps-with-big-pills-162, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 470f11b433 357/472: Reset terrified timer on eating BP (#173),
ELPA Syncer <=
- [nongnu] elpa/pacmacs 46219c3370 368/472: Smaller default weight for walls (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 52f1ba4237 366/472: Regenerate gradiate for walls (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a36eb746ce 379/472: Fix put-wall-tile-corner UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e0a315600b 383/472: Get rid of redundant code (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs b19ed92514 389/472: Add UT for color-hex-gradient, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 56e280cd51 395/472: Add Usage section for att.el script, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 8ec58f38d9 394/472: Add Usage section for compile.el script, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs a9ab4c18c8 397/472: Merge pull request #190 from codingteam/usage-for-tools, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs bdbf7144d2 396/472: Move pacmacs-rr to top of README, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 54e77a2d10 408/472: Use Emacs Widget Library to ask nickname (#134), ELPA Syncer, 2022/01/06