Skip to content

Commit f01a61c

Browse files
committed
zzzz
1 parent d48549f commit f01a61c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Roles/CustomRolePlus.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace YongAnFrame.Roles
2020
public abstract class CustomRolePlus : CustomRole
2121
{
2222
public override bool IgnoreSpawnSystem { get; set; } = false;
23-
public virtual Role.Properties.SpawnProperties SpawnAttributes { get; set; } = new Role.Properties.SpawnProperties();
23+
public new virtual Role.Properties.SpawnProperties SpawnProperties { get; set; } = new Role.Properties.SpawnProperties();
2424
public bool IStaetSpawn { get; set; } = true;
2525
public Dictionary<FramePlayer, CustomRolePlusProperties> BaseData { get; } = [];
2626
public virtual MoreProperties MoreAttributes { get; set; } = new MoreProperties();
@@ -94,10 +94,10 @@ public virtual void AddRole(FramePlayer fPlayer)
9494
fPlayer.ExPlayer.EnableEffect(Exiled.API.Enums.EffectType.MovementBoost);
9595
fPlayer.ExPlayer.ChangeEffectIntensity(Exiled.API.Enums.EffectType.MovementBoost, (byte)((MoreAttributes.BaseMovementSpeedMultiplier - 1f) * 100));
9696
}
97-
if (!string.IsNullOrEmpty(SpawnAttributes.Info)) Cassie.MessageTranslated($""/*ADMINISTER TEAM DESIGNATED {CASSIEDeathName} HASENTERED*/, SpawnAttributes.Info, true, true, true);
98-
if (!string.IsNullOrEmpty(SpawnAttributes.MusicFileName))
97+
if (!string.IsNullOrEmpty(SpawnProperties.Info)) Cassie.MessageTranslated($""/*ADMINISTER TEAM DESIGNATED {CASSIEDeathName} HASENTERED*/, SpawnProperties.Info, true, true, true);
98+
if (!string.IsNullOrEmpty(SpawnProperties.MusicFileName))
9999
{
100-
MusicManager.Instance.Play(SpawnAttributes.MusicFileName, $"{Name}", new MusicManager.TrackEvent());
100+
MusicManager.Instance.Play(SpawnProperties.MusicFileName, $"{Name}", new MusicManager.TrackEvent());
101101
}
102102
fPlayer.UpdateShowInfoList();
103103
}
@@ -139,7 +139,7 @@ public virtual bool TrySpawn(FramePlayer fPlayer, bool chanceRef = false)
139139
{
140140
limitCount = 0;
141141
}
142-
if (spawnCount < SpawnAttributes.MaxCount && Server.PlayerCount >= SpawnAttributes.MinPlayer && SpawnChanceNum <= SpawnAttributes.Chance && SpawnProperties.Limit > limitCount && fPlayer.CustomRolePlus == null)
142+
if (spawnCount < SpawnProperties.MaxCount && Server.PlayerCount >= SpawnProperties.MinPlayer && SpawnChanceNum <= SpawnProperties.Chance && SpawnProperties.Limit > limitCount && fPlayer.CustomRolePlus == null)
143143
{
144144
limitCount++;
145145
spawnCount++;
@@ -164,7 +164,7 @@ private void OnRestartingRound()
164164

165165
//private void OnRoundStarted()
166166
//{
167-
// if (IStaetSpawn && SpawnAttributes.RefreshTeam == RefreshTeamType.Start)
167+
// if (IStaetSpawn && SpawnProperties.RefreshTeam == RefreshTeamType.Start)
168168
// {
169169
// TrySpawn(NoCustomRole.FindAll((p) => OldRole == RoleTypeId.None && Role == p.ExPlayer.Role.Type || p.ExPlayer.Role.Type == OldRole));
170170
// }
@@ -176,14 +176,14 @@ private void OnSpawning(SpawningEventArgs args)
176176
FramePlayer fPlayer = args.Player.ToFPlayer();
177177
if (IStaetSpawn && (OldRole != RoleTypeId.None && args.Player.Role.Type == OldRole) || (OldRole == RoleTypeId.None && args.Player.Role.Type == Role))
178178
{
179-
switch (SpawnAttributes.RefreshTeam)
179+
switch (SpawnProperties.RefreshTeam)
180180
{
181181
case RefreshTeamType.Start:
182182
TrySpawn(fPlayer);
183183
break;
184184
case RefreshTeamType.MTF:
185185
case RefreshTeamType.CI:
186-
if (SpawnAttributes.RefreshTeam != RefreshTeamType.Start && RespawnTeamPlayer.Contains(fPlayer) && SpawnAttributes.StartWave <= RespawnWave)
186+
if (SpawnProperties.RefreshTeam != RefreshTeamType.Start && RespawnTeamPlayer.Contains(fPlayer) && SpawnProperties.StartWave <= RespawnWave)
187187
{
188188
TrySpawn(fPlayer);
189189
}

Roles/Interfaces/ISkill.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ namespace YongAnFrame.Roles.Interfaces
44
{
55
public interface ISkill
66
{
7-
SkillProperties[] SkillsAttributes { get; }
7+
SkillProperties[] SkillProperties { get; }
88
}
99
}

Roles/SkillManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private ISkillBurialEnd SkillBurialEnd
4545
return null;
4646
}
4747
}
48-
public SkillProperties[] SkillsAttributes { get => skill.SkillsAttributes; }
48+
public SkillProperties[] SkillProperties { get => skill.SkillProperties; }
4949

5050
public int SkillsEffectSwitchId { get; set; }
5151
/// <summary>
@@ -65,7 +65,7 @@ public SkillManager(FramePlayer fPlayer, ISkill skill)
6565
{
6666
this.fPlayer = fPlayer;
6767
this.skill = skill;
68-
coroutineHandle = new CoroutineHandle[SkillsAttributes.Length];
68+
coroutineHandle = new CoroutineHandle[SkillProperties.Length];
6969
}
7070

7171

@@ -80,8 +80,8 @@ public void Run(int id)
8080
coroutineHandle = null;
8181
}
8282

83-
ActiveRemainingTime = SkillsAttributes[id].ActiveMaxTime;
84-
BurialRemainingTime = SkillsAttributes[id].BurialMaxTime;
83+
ActiveRemainingTime = SkillProperties[id].ActiveMaxTime;
84+
BurialRemainingTime = SkillProperties[id].BurialMaxTime;
8585

8686
coroutineHandle[id] = Timing.RunCoroutine(Timer(id));
8787
}

0 commit comments

Comments
 (0)