nodebb-plugin-niki-loyalty 1.3.14 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +8 -8
- package/package.json +1 -1
- package/static/lib/client.js +1 -1
package/library.js
CHANGED
|
@@ -11,17 +11,17 @@ const Plugin = {};
|
|
|
11
11
|
// ⚙️ AYARLAR & KURALLAR (GAME LOGIC)
|
|
12
12
|
// =========================
|
|
13
13
|
const SETTINGS = {
|
|
14
|
-
dailyCap:
|
|
14
|
+
dailyCap: 70, // Günlük Maksimum Limit (Ne kadar kazanırsa kazansın buradan fazla alamaz) - 2x artırıldı
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
// Puan Tablosu ve Limitleri (Toplam Potansiyel ~
|
|
17
|
+
// Puan Tablosu ve Limitleri (Toplam Potansiyel ~90 Puan) - 2x artırıldı
|
|
18
18
|
const ACTIONS = {
|
|
19
|
-
login: { points:
|
|
20
|
-
new_topic: { points:
|
|
21
|
-
reply: { points:
|
|
22
|
-
read: { points:
|
|
23
|
-
like_given: { points:
|
|
24
|
-
like_taken: { points:
|
|
19
|
+
login: { points: 10, limit: 1, name: 'Günlük Giriş 👋' }, // 10 Puan (2x)
|
|
20
|
+
new_topic: { points: 10, limit: 1, name: 'Yeni Konu 📝' }, // 10 Puan (2x)
|
|
21
|
+
reply: { points: 10, limit: 2, name: 'Yorum Yazma 💬' }, // 10 x 2 = 20 Puan (2x)
|
|
22
|
+
read: { points: 2, limit: 10, name: 'Konu Okuma 👀' }, // 2 x 10 = 20 Puan (2x)
|
|
23
|
+
like_given: { points: 5, limit: 2, name: 'Beğeni Atma ❤️' }, // 5 x 2 = 10 Puan (2x)
|
|
24
|
+
like_taken: { points: 10, limit: 2, name: 'Beğeni Alma 🌟' } // 10 x 2 = 20 Puan (2x)
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// Ödüller
|
package/package.json
CHANGED
package/static/lib/client.js
CHANGED
|
@@ -256,7 +256,7 @@ $(document).ready(function () {
|
|
|
256
256
|
|
|
257
257
|
let dailyScore = parseFloat(data.dailyScore);
|
|
258
258
|
let scoreText = Number.isInteger(dailyScore) ? dailyScore : dailyScore.toFixed(1);
|
|
259
|
-
$('#widget-daily-text').text(scoreText + ' /
|
|
259
|
+
$('#widget-daily-text').text(scoreText + ' / ' + data.dailyCap);
|
|
260
260
|
|
|
261
261
|
// 3. DETAYLI SAYAÇLAR (Counts)
|
|
262
262
|
const c = data.counts || {}; // Backend'den gelen sayaç objesi
|