mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-22 06:57:42 -05:00
@@ -298,7 +298,7 @@ private void SetID7(int sid7, int tid7)
|
||||
public bool GG => Version == (int)GameVersion.GP || Version == (int)GameVersion.GE;
|
||||
protected bool PtHGSS => Pt || HGSS;
|
||||
public bool VC => VC1 || VC2;
|
||||
public bool Gen7 => Version >= 30 && Version <= 33;
|
||||
public bool Gen7 => (Version >= 30 && Version <= 33) || GG;
|
||||
public bool Gen6 => Version >= 24 && Version <= 29;
|
||||
public bool Gen5 => Version >= 20 && Version <= 23;
|
||||
public bool Gen4 => Version >= 7 && Version <= 12 && Version != 9;
|
||||
|
||||
@@ -228,7 +228,8 @@ private void PlayCry(PKM pk)
|
||||
if (pk.Species == 0)
|
||||
return;
|
||||
|
||||
var path = Path.Combine(Main.CryPath, $"{pk.Species}-{pk.AltForm}.wav");
|
||||
var name = PKX.GetResourceStringSprite(pk.Species, pk.AltForm, pk.Gender, pk.Format).Replace('_','-');
|
||||
var path = Path.Combine(Main.CryPath, $"{name}.wav");
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
path = Path.Combine(Main.CryPath, $"{pk.Species}.wav");
|
||||
|
||||
Reference in New Issue
Block a user