Skip to content

Commit bf28cf0

Browse files
Merge pull request #732 from THEXN/master
修复:多个插件的功能修复
2 parents 5d8cbc5 + aa8205c commit bf28cf0

File tree

10 files changed

+24
-18
lines changed

10 files changed

+24
-18
lines changed

src/DamageRuleLoot/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Configuration
1414
public bool Enabled2 { get; set; } = true;
1515

1616
[JsonProperty("广告开关", Order = 2)]
17-
public bool Enabled3 { get; set; } = true;
17+
public bool Enabled3 { get; set; } = false;
1818

1919
[JsonProperty("广告内容", Order = 2)]
2020
public string Advertisement { get; set; } = $"[i:3456][C/F2F2C7:插件开发] [C/BFDFEA:by] 羽学 [C/E7A5CC:|] [c/00FFFF:西江小子][i:3459]";

src/DamageRuleLoot/DamageRuleLoot.cs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public class DamageRuleLoot : TerrariaPlugin
1212
{
1313

1414
#region 插件信息
15-
public override string Name => System.Reflection.Assembly.GetExecutingAssembly().GetName().Name!; public override string Author => "羽学 西江小子";
16-
public override Version Version => new Version(1, 3, 3);
15+
public override string Name => System.Reflection.Assembly.GetExecutingAssembly().GetName().Name!;
16+
public override string Author => "羽学 西江小子";
17+
public override Version Version => new Version(1, 3, 4);
1718
public override string Description => GetString("根据输出排名榜决定是否掉落宝藏袋的惩罚,并对各个BOSS进行相对的伤害规则处理");
1819
#endregion
1920

@@ -440,13 +441,8 @@ private void OnNpcKill(NpcKilledEventArgs args)
440441
case 372:
441442
case 373:
442443
{
443-
if (!Config.Sharkron)
444-
{
445-
return;
446-
}
447-
448444
var strike2 = strikeNPC.Find(x => x.npcID == 370);
449-
CombDmg2(i, ref strike2, 370, new int[] { 372, 373 }, 10000f);
445+
CombDmg3(Config.Sharkron, i, ref strike2, 370, new int[] { 372, 373 }, 10000f);
450446
if (strikeNPC[i].npcID == 370)
451447
{
452448
SendKillMessage(GetString("猪龙鱼公爵"), strikeNPC[i].PlayerOrDamage, strikeNPC[i].AllDamage);
@@ -499,7 +495,7 @@ private void OnNpcKill(NpcKilledEventArgs args)
499495
}
500496

501497
var strike2 = strikeNPC.Find(x => x.npcID == 127);
502-
CombDmg3(i, ref strike2, 127, new int[] { 128, 129, 130, 131 }, 300000f);
498+
CombDmg3(Config.Sharkron, i, ref strike2, 127, new int[] { 128, 129, 130, 131 }, 300000f);
503499
if (strikeNPC[i].npcID == 127)
504500
{
505501
SendKillMessage(args.npc.FullName, strikeNPC[i].PlayerOrDamage, strikeNPC[i].AllDamage);

src/DamageRuleLoot/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@
139139
## 更新日志
140140

141141
```
142+
v1.3.4
143+
修复猪鲨伤害统计不开"攻击鲨鱼龙给猪鲨造成真实伤害“不播报
144+
142145
v1.3.1
143146
对代码做了重复部分做成统一方法整理归纳
144147
修复了自定义转移伤害表里的【涵盖暴击】配置项

src/DamageRuleLoot/Tool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public static void CombDmg2(int i, ref StrikeNPC? strike2, int id, int[] ids, fl
184184
}
185185

186186
//机械骷髅王的单独处理
187-
public static void CombDmg3(int i, ref StrikeNPC? strike2, int id, int[] ids, float value)
187+
public static void CombDmg3(bool flag, int i, ref StrikeNPC? strike2, int id, int[] ids, float value)
188188
{
189189
if (strike2 == null)
190190
{
@@ -207,7 +207,7 @@ public static void CombDmg3(int i, ref StrikeNPC? strike2, int id, int[] ids, fl
207207

208208
else if (StrikeNPC.strikeNPC[i].npcID != id)
209209
{
210-
if (!DamageRuleLoot.Config.Prime)
210+
if (!flag)
211211
{
212212
return; //比CombDmg2多了这一行 这个Config.Prime同时也影响伤害转移
213213
}

src/Ezperm/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static Configuration Read(string path)
4343
new GroupInfo
4444
{
4545
Name = "default",
46-
AddPermissions = new List<string> { "tshock.world.movenpc","tshock.world.time.usesundial", "tshock.tp.pylon", "tshock.tp.demonconch", "tshock.tp.magicconch", "tshock.tp.tppotion", "tshock.tp.rod","tshock.tp.wormhole","tshock.npc.startdd2", "tshock.npc.spawnpets", "tshock.npc.summonboss","tshock.npc.startinvasion" },
46+
AddPermissions = new List<string> { "tshock.world.movenpc","tshock.world.time.usesundial", "tshock.tp.pylon", "tshock.tp.demonconch", "tshock.tp.magicconch", "tshock.tp.tppotion", "tshock.tp.rod","tshock.tp.wormhole","tshock.npc.startdd2", "tshock.npc.spawnpets", "tshock.npc.summonboss","tshock.npc.startinvasion","tshock.npc.hurttown" },
4747
DelPermissions = new List<string> { "tshock.admin" }
4848
}
4949
}

src/Ezperm/Ezperm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class Ezperm : TerrariaPlugin
1111
{
1212
public override string Name => System.Reflection.Assembly.GetExecutingAssembly().GetName().Name!; public override string Author => "大豆子,肝帝熙恩优化1449";
1313
public override string Description => GetString("一个指令帮助小白给初始服务器添加缺失的权限,还可以批量添删权限");
14-
public override Version Version => new Version(1, 2, 6);
14+
public override Version Version => new Version(1, 2, 7);
1515
internal static Configuration Config = null!;
1616
public Ezperm(Main game) : base(game)
1717
{

src/Ezperm/README.en-US.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"tshock.npc.summonboss",
3131
"tshock.npc.startinvasion",
3232
"tshock.npc.spawnpets",
33-
"tshock.world.time.usesundial"
33+
"tshock.world.time.usesundial",
34+
"tshock.npc.hurttown"
3435
],
3536
"删除的权限": [
3637
"tshock.admin"

src/Ezperm/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
## 更新日志
4444

4545
```
46+
v1.2.7
47+
添加权限:
4648
v1.2.4
4749
默认数据添加召唤城镇宠物的权限
4850
v1.2.3

src/LifemaxExtra/PluginContainer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public class LifemaxExtra : LazyPlugin
1313
{
1414
public override string Author => "佚名 & 肝帝熙恩 & 少司命";
1515
public override string Description => GetString("提升生命值上限");
16-
public override string Name => System.Reflection.Assembly.GetExecutingAssembly().GetName().Name!; public override Version Version => new Version(1, 0, 0, 11);
16+
public override string Name => System.Reflection.Assembly.GetExecutingAssembly().GetName().Name!;
17+
public override Version Version => new Version(1, 0, 1, 0);
1718

1819
public LifemaxExtra(Main game) : base(game)
1920
{
@@ -262,7 +263,7 @@ private void SetPlayerMana(TSPlayer ply, int Mana, bool enh = false)
262263
}
263264
ply.TPlayer.statManaMax = currency;
264265
ply.TPlayer.statManaMax2 = currency;
265-
ply.TPlayer.statMana = currency;
266+
//ply.TPlayer.statMana = currency;
266267
ply.SendData(PacketTypes.PlayerMana, null, ply.Index);
267268
ply.SendData(PacketTypes.EffectMana, null, ply.Index, raise);
268269
}
@@ -293,7 +294,7 @@ private void SetPlayerHP(TSPlayer ply, int HP, bool enh = false)
293294
}
294295
ply.TPlayer.statLifeMax = currency;
295296
ply.TPlayer.statLifeMax2 = currency;
296-
ply.TPlayer.statLife = currency;
297+
//ply.TPlayer.statLife = currency;
297298
ply.SendData(PacketTypes.PlayerHp, null, ply.Index);
298299
ply.SendData(PacketTypes.EffectHeal, null, ply.Index, raise);
299300
}

src/LifemaxExtra/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
## 更新日志
4949

5050
```
51+
v1.0.1.0
52+
修复生命水晶可以当超级血药用的问题
53+
5154
v1.0.0.8
5255
SSC下指令无效提示,使用本插件自动更改ts自己config的maxmp和maxhp
5356

0 commit comments

Comments
 (0)