Compare commits
2 Commits
v0.1.1
...
c7d49b383a
| Author | SHA1 | Date | |
|---|---|---|---|
| c7d49b383a | |||
| f661eabba1 |
@@ -9,6 +9,36 @@ Format: [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/) — versi
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## [0.1.2] — 2026-05-26
|
||||||
|
|
||||||
|
### Tuned — Wink probability lowered from 30% to 5%
|
||||||
|
The wink Easter-egg added in v0.1.1 fired at 30% per page render
|
||||||
|
when Buddy's mood was ≥ 75. Default mood is 80, so most admin
|
||||||
|
visits hit the gate and ~30% of those flipped to wink. Stacked
|
||||||
|
across the main admin page + dashboard widget visible on the same
|
||||||
|
screen, Buddy ended up looking like he had one eye closed all the
|
||||||
|
time — "stuck" rather than "playful".
|
||||||
|
|
||||||
|
Dropped to 5%. Same wink visuals when it fires; just rare enough
|
||||||
|
to feel magical instead of constant. Refresh ~20 times when mood
|
||||||
|
is high and you'll catch one.
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- **`inc/state.php`**: `buddy_mood_label()` probability gate
|
||||||
|
`mt_rand( 1, 100 ) <= 30` changed to `<= 5`. Docstring updated
|
||||||
|
to reflect new ~5% rate.
|
||||||
|
- **Plugin version bumped**: header + `BUDDY_VERSION` constant
|
||||||
|
0.1.1 → 0.1.2.
|
||||||
|
- **About page** version-history card leads with v0.1.2; v0.1.1
|
||||||
|
demoted.
|
||||||
|
|
||||||
|
### Not changed
|
||||||
|
- Wink visuals (`inc/sprite.php`) — same closed-eye arc, smirk,
|
||||||
|
rosy cheeks when it fires. Just rarer.
|
||||||
|
- All other behavior identical to v0.1.1.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [0.1.1] — 2026-05-25
|
## [0.1.1] — 2026-05-25
|
||||||
|
|
||||||
### Added — Wink expression 😉
|
### Added — Wink expression 😉
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* Plugin Name: Buddy
|
* Plugin Name: Buddy
|
||||||
* Plugin URI: https://icanhelp.ie/buddy
|
* Plugin URI: https://icanhelp.ie/buddy
|
||||||
* Description: Adopt a small companion that lives in your WordPress dashboard. Its mood reflects your site's health — published posts feed it, outdated plugins make it sick, clearing spam makes it happy. Gamifies WordPress maintenance with a bit of charm.
|
* Description: Adopt a small companion that lives in your WordPress dashboard. Its mood reflects your site's health — published posts feed it, outdated plugins make it sick, clearing spam makes it happy. Gamifies WordPress maintenance with a bit of charm.
|
||||||
* Version: 0.1.1
|
* Version: 0.1.2
|
||||||
* Requires at least: 5.0
|
* Requires at least: 5.0
|
||||||
* Requires PHP: 7.4
|
* Requires PHP: 7.4
|
||||||
* Author: David Keane
|
* Author: David Keane
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
if ( ! defined( 'ABSPATH' ) ) { exit; }
|
||||||
|
|
||||||
// Plugin coordinates.
|
// Plugin coordinates.
|
||||||
if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.1' ); }
|
if ( ! defined( 'BUDDY_VERSION' ) ) { define( 'BUDDY_VERSION', '0.1.2' ); }
|
||||||
if ( ! defined( 'BUDDY_FILE' ) ) { define( 'BUDDY_FILE', __FILE__ ); }
|
if ( ! defined( 'BUDDY_FILE' ) ) { define( 'BUDDY_FILE', __FILE__ ); }
|
||||||
if ( ! defined( 'BUDDY_PATH' ) ) { define( 'BUDDY_PATH', plugin_dir_path( __FILE__ ) ); }
|
if ( ! defined( 'BUDDY_PATH' ) ) { define( 'BUDDY_PATH', plugin_dir_path( __FILE__ ) ); }
|
||||||
if ( ! defined( 'BUDDY_URL' ) ) { define( 'BUDDY_URL', plugin_dir_url( __FILE__ ) ); }
|
if ( ! defined( 'BUDDY_URL' ) ) { define( 'BUDDY_URL', plugin_dir_url( __FILE__ ) ); }
|
||||||
|
|||||||
+5
-1
@@ -98,7 +98,11 @@ function buddy_render_about_page() {
|
|||||||
<h2><?php esc_html_e( 'Version history', 'buddy' ); ?></h2>
|
<h2><?php esc_html_e( 'Version history', 'buddy' ); ?></h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span class="ver">v0.1.1</span> — 25 May 2026 <span class="latest">latest</span><br>
|
<span class="ver">v0.1.2</span> — 26 May 2026 <span class="latest">latest</span><br>
|
||||||
|
<?php esc_html_e( 'Wink, tuned. The Easter-egg wink from v0.1.1 was firing at 30% per render — felt closer to "stuck" than "playful". Dropped to 5%: same cheeky face when it lands, just rare enough to feel like a treat.', 'buddy' ); ?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<span class="ver">v0.1.1</span> — 25 May 2026<br>
|
||||||
<?php esc_html_e( 'Cheeky face! New wink expression that occasionally appears when Buddy is in a good mood — one eye closed, asymmetric smirk, rosier cheeks. Pure SVG, no image files. Proof that the expression engine is properly extensible.', 'buddy' ); ?>
|
<?php esc_html_e( 'Cheeky face! New wink expression that occasionally appears when Buddy is in a good mood — one eye closed, asymmetric smirk, rosier cheeks. Pure SVG, no image files. Proof that the expression engine is properly extensible.', 'buddy' ); ?>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
+5
-4
@@ -106,12 +106,13 @@ function buddy_overall_mood( array $state ) {
|
|||||||
* admin page.
|
* admin page.
|
||||||
*
|
*
|
||||||
* Easter-egg: when Buddy is genuinely happy (mood >= 75) there's a
|
* Easter-egg: when Buddy is genuinely happy (mood >= 75) there's a
|
||||||
* ~30% chance per page-render of returning the "Cheeky" wink tone
|
* ~5% chance per page-render of returning the "Cheeky" wink tone
|
||||||
* instead of the standard happy face. Gives the pet a touch of
|
* instead of the standard happy face. Rare enough to feel magical
|
||||||
* personality — refresh the page enough and you'll catch the wink.
|
* rather than disturbing — refresh the page a few dozen times and
|
||||||
|
* you'll catch it.
|
||||||
*/
|
*/
|
||||||
function buddy_mood_label( $mood_score ) {
|
function buddy_mood_label( $mood_score ) {
|
||||||
if ( $mood_score >= 75 && mt_rand( 1, 100 ) <= 30 ) {
|
if ( $mood_score >= 75 && mt_rand( 1, 100 ) <= 5 ) {
|
||||||
return array( 'label' => __( 'Cheeky 😉', 'buddy' ), 'tone' => 'wink' );
|
return array( 'label' => __( 'Cheeky 😉', 'buddy' ), 'tone' => 'wink' );
|
||||||
}
|
}
|
||||||
if ( $mood_score >= 80 ) { return array( 'label' => __( 'Thriving', 'buddy' ), 'tone' => 'happy' ); }
|
if ( $mood_score >= 80 ) { return array( 'label' => __( 'Thriving', 'buddy' ), 'tone' => 'happy' ); }
|
||||||
|
|||||||
Reference in New Issue
Block a user