Make HM GameMode items possible

This commit is contained in:
JappaWakka 2023-06-06 20:35:05 +02:00
parent f9602e0a07
commit dc744ea02a
2 changed files with 14 additions and 7 deletions

View File

@ -186,6 +186,11 @@ Public Class GameModeItemLoader
ElseIf item.gmName.StartsWith("TM") Then
item.gmSortValue = CInt(item.gmName.Remove(0, 2)) + 190
End If
If item.gmName.StartsWith("HM ") Then
item.gmSortValue = -100000 + CInt(item.gmName.Remove(0, 3))
ElseIf item.gmName.StartsWith("HM") Then
item.gmSortValue = -100000 + CInt(item.gmName.Remove(0, 2))
End If
item.gmTextureSource = "Items\ItemSheet"
item.SetTeachMoveTextureRectangle()

View File

@ -494,13 +494,15 @@ Public Class NewInventoryScreen
itemTitle = CType(cItem, GameModeItem).gmTeachMove.Name
If CType(cItem, GameModeItem).gmIsTM Then
'JSON stuff
'itemSubTitle = _translation.TECH_MACHINE_TITLE(cItem.ItemType.ToString())
itemSubTitle = "Technical Machine"
Else
'JSON stuff
'itemSubTitle = _translation.HIDDEN_MACHINE_TITLE(cItem.ItemType.ToString())
itemSubTitle = "Hidden Machine"
If CType(cItem, GameModeItem).OriginalName.StartsWith("HM") Then
'JSON stuff
'itemSubTitle = _translation.HIDDEN_MACHINE_TITLE(cItem.ItemType.ToString())
itemSubTitle = "Hidden Machine"
Else
'JSON stuff
'itemSubTitle = _translation.TECH_MACHINE_TITLE(cItem.ItemType.ToString())
itemSubTitle = "Technical Machine"
End If
End If
itemDescription &= Environment.NewLine & CType(cItem, GameModeItem).gmTeachMove.Description