v2.1.1: Fix swipe detection in together mode and combat encounter prompt
This commit is contained in:
@@ -5,9 +5,13 @@ An immersive RPG extension for browsers that tracks character stats, scene infor
|
|||||||
[](https://discord.com/invite/KdAkTg94ME)
|
[](https://discord.com/invite/KdAkTg94ME)
|
||||||
[](https://ko-fi.com/marinara_spaghetti)
|
[](https://ko-fi.com/marinara_spaghetti)
|
||||||
|
|
||||||
## 🆕 What's New in v2.1
|
## 🆕 What's New
|
||||||
|
|
||||||
### Dynamic Weather Effects
|
### v2.1.1
|
||||||
|
- Fixed a bug in together generation mode that didn't detect swipes correctly
|
||||||
|
- Fixed combat encounter prompt to consider party members better
|
||||||
|
|
||||||
|
### v2.1 - Dynamic Weather Effects
|
||||||
- Real-time weather visualization based on Info Box weather field
|
- Real-time weather visualization based on Info Box weather field
|
||||||
- **Snow**: Falling snowflakes with varied speeds and sizes
|
- **Snow**: Falling snowflakes with varied speeds and sizes
|
||||||
- **Rain**: Realistic raindrops animation
|
- **Rain**: Realistic raindrops animation
|
||||||
|
|||||||
+1
-1
@@ -6,6 +6,6 @@
|
|||||||
"js": "index.js",
|
"js": "index.js",
|
||||||
"css": "style.css",
|
"css": "style.css",
|
||||||
"author": "Marysia",
|
"author": "Marysia",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"homePage": "https://github.com/SpicyMarinara/rpg-companion-sillytavern"
|
"homePage": "https://github.com/SpicyMarinara/rpg-companion-sillytavern"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-top: 10px; text-align: center; opacity: 0.6; font-size: 0.85em;">
|
<div style="margin-top: 10px; text-align: center; opacity: 0.6; font-size: 0.85em;">
|
||||||
RPG Companion v2.1
|
RPG Companion v2.1.1
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -500,7 +500,7 @@ export async function buildCombatActionPrompt(action, combatStats) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
stateMessage += `\n${userName}'s Action: ${action}\n\n`;
|
stateMessage += `\n${userName}'s Action: ${action}\n\n`;
|
||||||
stateMessage += `Respond with a JSON object containing ONLY updated HP values and new status effects. DO NOT regenerate character descriptions, sprites, or environment:\n`;
|
stateMessage += `Respond with the exact JSON object as below, containing ONLY these specified values. Remember to consider the user's party and their moves. DO NOT regenerate character descriptions, sprites, or environment:\n`;
|
||||||
stateMessage += `{\n`;
|
stateMessage += `{\n`;
|
||||||
stateMessage += ` "combatStats": {\n`;
|
stateMessage += ` "combatStats": {\n`;
|
||||||
stateMessage += ` "party": [{ "name": "Name", "hp": X, "maxHp": X, "statuses": [...] }],\n`;
|
stateMessage += ` "party": [{ "name": "Name", "hp": X, "maxHp": X, "statuses": [...] }],\n`;
|
||||||
|
|||||||
@@ -156,7 +156,8 @@ export async function onMessageReceived(data) {
|
|||||||
// console.log('[RPG Companion] Stored RPG data for swipe', currentSwipeId);
|
// console.log('[RPG Companion] Stored RPG data for swipe', currentSwipeId);
|
||||||
|
|
||||||
// If there's no committed data yet (first time generating), automatically commit
|
// If there's no committed data yet (first time generating), automatically commit
|
||||||
if (!committedTrackerData.userStats && !committedTrackerData.infoBox && !committedTrackerData.characterThoughts) {
|
// BUT: Only commit if this is NOT a swipe (same logic as separate mode)
|
||||||
|
if (!lastActionWasSwipe && !committedTrackerData.userStats && !committedTrackerData.infoBox && !committedTrackerData.characterThoughts) {
|
||||||
committedTrackerData.userStats = parsedData.userStats;
|
committedTrackerData.userStats = parsedData.userStats;
|
||||||
committedTrackerData.infoBox = parsedData.infoBox;
|
committedTrackerData.infoBox = parsedData.infoBox;
|
||||||
committedTrackerData.characterThoughts = parsedData.characterThoughts;
|
committedTrackerData.characterThoughts = parsedData.characterThoughts;
|
||||||
|
|||||||
Reference in New Issue
Block a user