Skip to content

Commit 946435a

Browse files
garyshengclaude
andcommitted
Add Human Peasant to website carousel and fix VERSION test
- Add Human Peasant pack card with 6 preview sounds to the site carousel - Convert peasant WAV files to MP3 for web playback - Remove Human Peasant from ideas list (now a real pack) - Fix VERSION test to read expected version dynamically Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 57bd8c5 commit 946435a

8 files changed

Lines changed: 55 additions & 8 deletions

File tree

docs/audio/PeasantAngry1.mp3

21.9 KB
Binary file not shown.

docs/audio/PeasantReady1.mp3

9.01 KB
Binary file not shown.

docs/audio/PeasantWhat1.mp3

7.84 KB
Binary file not shown.

docs/audio/PeasantYes2.mp3

7.18 KB
Binary file not shown.

docs/audio/PeasantYes4.mp3

8.07 KB
Binary file not shown.

docs/audio/PeasantYesAttack4.mp3

9.67 KB
Binary file not shown.

docs/index.html

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,52 @@ <h2 class="section-title">Choose your character</h2>
962962
</div>
963963
</div>
964964

965-
<!-- Pack 2: Soviet Engineer -->
965+
<!-- Pack 2: Human Peasant -->
966+
<div class="carousel-slide" data-pack="peasant">
967+
<div class="pack-card-full">
968+
<div class="pack-header">
969+
<div class="pack-badge">New</div>
970+
<div class="pack-name">Human Peasant</div>
971+
<div class="pack-game">Warcraft III</div>
972+
<code class="pack-id">peasant</code>
973+
<div class="pack-credit">Added by <a href="https://github.com/thomasKn">@thomasKn</a></div>
974+
</div>
975+
<div class="pack-sounds">
976+
<button class="pack-sound-btn" data-src="audio/PeasantReady1.mp3" aria-label="Play: Ready to work.">
977+
<span class="pack-sound-icon">&#9654;</span>
978+
<span class="pack-sound-quote">"Ready to work."</span>
979+
<span class="pack-sound-cat">greeting</span>
980+
</button>
981+
<button class="pack-sound-btn" data-src="audio/PeasantYes2.mp3" aria-label="Play: Yes, milord.">
982+
<span class="pack-sound-icon">&#9654;</span>
983+
<span class="pack-sound-quote">"Yes, milord."</span>
984+
<span class="pack-sound-cat">acknowledge</span>
985+
</button>
986+
<button class="pack-sound-btn" data-src="audio/PeasantYes4.mp3" aria-label="Play: Off I go, then!">
987+
<span class="pack-sound-icon">&#9654;</span>
988+
<span class="pack-sound-quote">"Off I go, then!"</span>
989+
<span class="pack-sound-cat">acknowledge</span>
990+
</button>
991+
<button class="pack-sound-btn" data-src="audio/PeasantWhat1.mp3" aria-label="Play: Yes, milord?">
992+
<span class="pack-sound-icon">&#9654;</span>
993+
<span class="pack-sound-quote">"Yes, milord?"</span>
994+
<span class="pack-sound-cat">permission</span>
995+
</button>
996+
<button class="pack-sound-btn" data-src="audio/PeasantYesAttack4.mp3" aria-label="Play: That's it. I'm dead.">
997+
<span class="pack-sound-icon">&#9654;</span>
998+
<span class="pack-sound-quote">"That's it. I'm dead."</span>
999+
<span class="pack-sound-cat">error</span>
1000+
</button>
1001+
<button class="pack-sound-btn" data-src="audio/PeasantAngry1.mp3" aria-label="Play: You're the king? Well, I didn't vote for you.">
1002+
<span class="pack-sound-icon">&#9654;</span>
1003+
<span class="pack-sound-quote">"I didn't vote for you."</span>
1004+
<span class="pack-sound-cat">annoyed</span>
1005+
</button>
1006+
</div>
1007+
</div>
1008+
</div>
1009+
1010+
<!-- Pack 3: Soviet Engineer -->
9661011
<div class="carousel-slide" data-pack="ra2_soviet_engineer">
9671012
<div class="pack-card-full">
9681013
<div class="pack-header">
@@ -1007,7 +1052,7 @@ <h2 class="section-title">Choose your character</h2>
10071052
</div>
10081053
</div>
10091054

1010-
<!-- Pack 3: StarCraft Battlecruiser -->
1055+
<!-- Pack 4: StarCraft Battlecruiser -->
10111056
<div class="carousel-slide" data-pack="sc_battlecruiser">
10121057
<div class="pack-card-full">
10131058
<div class="pack-header">
@@ -1052,7 +1097,7 @@ <h2 class="section-title">Choose your character</h2>
10521097
</div>
10531098
</div>
10541099

1055-
<!-- Pack 4: Sarah Kerrigan -->
1100+
<!-- Pack 5: Sarah Kerrigan -->
10561101
<div class="carousel-slide" data-pack="sc_kerrigan">
10571102
<div class="pack-card-full">
10581103
<div class="pack-header">
@@ -1105,14 +1150,15 @@ <h2 class="section-title">Choose your character</h2>
11051150

11061151
<div class="carousel-dots">
11071152
<button class="carousel-dot active" data-index="0" aria-label="Orc Peon"></button>
1108-
<button class="carousel-dot" data-index="1" aria-label="Soviet Engineer"></button>
1109-
<button class="carousel-dot" data-index="2" aria-label="Battlecruiser"></button>
1110-
<button class="carousel-dot" data-index="3" aria-label="Sarah Kerrigan"></button>
1153+
<button class="carousel-dot" data-index="1" aria-label="Human Peasant"></button>
1154+
<button class="carousel-dot" data-index="2" aria-label="Soviet Engineer"></button>
1155+
<button class="carousel-dot" data-index="3" aria-label="Battlecruiser"></button>
1156+
<button class="carousel-dot" data-index="4" aria-label="Sarah Kerrigan"></button>
11111157
</div>
11121158

11131159
<div class="contribute-cta">
11141160
<p>Want to add a pack? Drop your sound files in <code>packs/&lt;name&gt;/sounds/</code>, add a manifest, and <a href="https://github.com/tonyyont/peon-ping/pulls">open a PR</a>.</p>
1115-
<p class="contribute-ideas">Ideas: Human Peasant, Night Elf Wisp, Undead Acolyte, Protoss Probe, SCV, Zeratul, Jim Raynor, GLaDOS &hellip;</p>
1161+
<p class="contribute-ideas">Ideas: Night Elf Wisp, Undead Acolyte, Protoss Probe, SCV, Zeratul, Jim Raynor, GLaDOS &hellip;</p>
11161162
</div>
11171163
</div>
11181164
</section>

tests/install.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ print('OK')
6363
bash "$CLONE_DIR/install.sh"
6464
[ -f "$INSTALL_DIR/VERSION" ]
6565
version=$(cat "$INSTALL_DIR/VERSION" | tr -d '[:space:]')
66-
[ "$version" = "1.0.0" ]
66+
expected=$(cat "$CLONE_DIR/VERSION" | tr -d '[:space:]')
67+
[ "$version" = "$expected" ]
6768
}
6869

6970
@test "update preserves existing config" {

0 commit comments

Comments
 (0)