mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-27 15:54:25 +02:00
Make attack descriptions localizable
This commit is contained in:
parent
25bda8826a
commit
6bb8d2107f
@ -163,6 +163,18 @@
|
|||||||
Me._name = value
|
Me._name = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
Public Property Description() As String
|
||||||
|
Get
|
||||||
|
If Localization.TokenExists("move_desc_" & Me.ID.ToString) = True Then
|
||||||
|
Return Localization.GetString("move_desc_" & Me.ID.ToString)
|
||||||
|
Else
|
||||||
|
Return Me._description
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As String)
|
||||||
|
Me._description = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
Private _ID As Integer = 1
|
Private _ID As Integer = 1
|
||||||
Public OriginalID As Integer = 1 'Original MoveID, remove when not needed anymore. This stores the original move ID when the move isn't programmed yet.
|
Public OriginalID As Integer = 1 'Original MoveID, remove when not needed anymore. This stores the original move ID when the move isn't programmed yet.
|
||||||
@ -179,7 +191,7 @@
|
|||||||
Public OriginalPP As Integer = 35
|
Public OriginalPP As Integer = 35
|
||||||
Public Category As Categories = Categories.Physical
|
Public Category As Categories = Categories.Physical
|
||||||
Public ContestCategory As ContestCategories = ContestCategories.Tough
|
Public ContestCategory As ContestCategories = ContestCategories.Tough
|
||||||
Public Description As String = "Pounds with forelegs or tail."
|
Public _description As String = "Pounds with forelegs or tail."
|
||||||
Public CriticalChance As Integer = 1
|
Public CriticalChance As Integer = 1
|
||||||
Public IsHMMove As Boolean = False
|
Public IsHMMove As Boolean = False
|
||||||
Public Target As Targets = Targets.OneAdjacentTarget
|
Public Target As Targets = Targets.OneAdjacentTarget
|
||||||
|
@ -195,6 +195,9 @@
|
|||||||
If move.ID >= 1000 Then
|
If move.ID >= 1000 Then
|
||||||
Dim testMove As Attack = Attack.GetAttackByID(move.ID)
|
Dim testMove As Attack = Attack.GetAttackByID(move.ID)
|
||||||
If testMove.IsDefaultMove = True Then
|
If testMove.IsDefaultMove = True Then
|
||||||
|
If Localization.TokenExists("move_name_" & move.ID.ToString) = True Then
|
||||||
|
move.Name = Localization.GetString("move_name_" & move.ID.ToString)
|
||||||
|
End If
|
||||||
LoadedMoves.Add(move) 'Add the move.
|
LoadedMoves.Add(move) 'Add the move.
|
||||||
Else
|
Else
|
||||||
Logger.Log(Logger.LogTypes.ErrorMessage, "GameModeAttackLoader.vb: User defined moves are not allowed to have an ID of an already existing move or an ID below 1000. The ID for the move loaded from """ & file & """ has the ID " & move.ID.ToString() & ", which is the ID of an already existing move (" & testMove.Name & ").")
|
Logger.Log(Logger.LogTypes.ErrorMessage, "GameModeAttackLoader.vb: User defined moves are not allowed to have an ID of an already existing move or an ID below 1000. The ID for the move loaded from """ & file & """ has the ID " & move.ID.ToString() & ", which is the ID of an already existing move (" & testMove.Name & ").")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user