mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-10-19 07:37:37 -05:00
add trainer param to parametertype enum
This commit is contained in:
@@ -19,7 +19,8 @@ public class ScriptParameter {
|
||||
Pokemon,
|
||||
Item,
|
||||
Move,
|
||||
Sound
|
||||
Sound,
|
||||
Trainer
|
||||
}
|
||||
|
||||
public static ParameterType ParseTypeString(string typeStr)
|
||||
@@ -104,6 +105,10 @@ public class ScriptParameter {
|
||||
if (ScriptDatabase.moveNames.TryGetValue((ushort)value, out string moveName))
|
||||
return $"{moveName}";
|
||||
break;
|
||||
case ParameterType.Trainer:
|
||||
if (ScriptDatabase.trainerNames.TryGetValue((ushort)value, out string trainerName))
|
||||
return $"{trainerName}";
|
||||
break;
|
||||
case ParameterType.Function:
|
||||
return $"Function#{value}";
|
||||
//case ParameterType.Variable:
|
||||
|
||||
Reference in New Issue
Block a user