koishi-plugin-smmcat-gensokyo 0.0.39 → 0.0.40
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/lib/data/PassiveFn.d.ts +12 -0
- package/lib/index.js +5 -5
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BattleAttribute } from "../battle";
|
|
2
|
+
export type PassiveDict = {
|
|
3
|
+
[keys: string]: PassiveItem;
|
|
4
|
+
};
|
|
5
|
+
export type PassiveItem = {
|
|
6
|
+
name: string;
|
|
7
|
+
info: string;
|
|
8
|
+
damageFn: (agent: {
|
|
9
|
+
self: BattleAttribute;
|
|
10
|
+
goal: BattleAttribute;
|
|
11
|
+
}) => void;
|
|
12
|
+
};
|
package/lib/index.js
CHANGED
|
@@ -72,7 +72,7 @@ var monsterBenchmark = {
|
|
|
72
72
|
};
|
|
73
73
|
var userBenchmark = {
|
|
74
74
|
10: {
|
|
75
|
-
maxExp: 1.
|
|
75
|
+
maxExp: 1.3,
|
|
76
76
|
maxHp: 1.13,
|
|
77
77
|
maxMp: 1.13,
|
|
78
78
|
atk: 1.1,
|
|
@@ -84,7 +84,7 @@ var userBenchmark = {
|
|
|
84
84
|
speed: 1.05
|
|
85
85
|
},
|
|
86
86
|
20: {
|
|
87
|
-
maxExp: 1.
|
|
87
|
+
maxExp: 1.2,
|
|
88
88
|
maxHp: 1.08,
|
|
89
89
|
maxMp: 1.08,
|
|
90
90
|
atk: 1.08,
|
|
@@ -96,7 +96,7 @@ var userBenchmark = {
|
|
|
96
96
|
speed: 1.05
|
|
97
97
|
},
|
|
98
98
|
40: {
|
|
99
|
-
maxExp: 1.
|
|
99
|
+
maxExp: 1.1,
|
|
100
100
|
maxHp: 1.05,
|
|
101
101
|
maxMp: 1.05,
|
|
102
102
|
atk: 1.05,
|
|
@@ -1615,7 +1615,7 @@ MP:${item.mp}/${item.maxMp + item.gain.maxMp}`);
|
|
|
1615
1615
|
selectGoal = lifeGoalList[Math.floor(Math.random() * lifeGoalList.length)];
|
|
1616
1616
|
} else {
|
|
1617
1617
|
selectGoal = lifeGoalList[Math.floor(Math.random() * lifeGoalList.length)];
|
|
1618
|
-
if (random(0, 10) <
|
|
1618
|
+
if (random(0, 10) < 4 && agent.fn?.length) {
|
|
1619
1619
|
funType = getSkillFn(agent.fn);
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
@@ -2877,7 +2877,7 @@ var GensokyoMap = {
|
|
|
2877
2877
|
type: "BOSS区" /* BOSS区 */,
|
|
2878
2878
|
needLv: 1,
|
|
2879
2879
|
left: "大草场",
|
|
2880
|
-
monster: [{ name: "古明地恋", lv:
|
|
2880
|
+
monster: [{ name: "古明地恋", lv: 25 }]
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
};
|