Make HM GameMode items possible
This commit is contained in:
parent
f9602e0a07
commit
dc744ea02a
|
@ -186,6 +186,11 @@ Public Class GameModeItemLoader
|
||||||
ElseIf item.gmName.StartsWith("TM") Then
|
ElseIf item.gmName.StartsWith("TM") Then
|
||||||
item.gmSortValue = CInt(item.gmName.Remove(0, 2)) + 190
|
item.gmSortValue = CInt(item.gmName.Remove(0, 2)) + 190
|
||||||
End If
|
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.gmTextureSource = "Items\ItemSheet"
|
||||||
item.SetTeachMoveTextureRectangle()
|
item.SetTeachMoveTextureRectangle()
|
||||||
|
|
||||||
|
|
|
@ -494,13 +494,15 @@ Public Class NewInventoryScreen
|
||||||
itemTitle = CType(cItem, GameModeItem).gmTeachMove.Name
|
itemTitle = CType(cItem, GameModeItem).gmTeachMove.Name
|
||||||
|
|
||||||
If CType(cItem, GameModeItem).gmIsTM Then
|
If CType(cItem, GameModeItem).gmIsTM Then
|
||||||
'JSON stuff
|
If CType(cItem, GameModeItem).OriginalName.StartsWith("HM") Then
|
||||||
'itemSubTitle = _translation.TECH_MACHINE_TITLE(cItem.ItemType.ToString())
|
|
||||||
itemSubTitle = "Technical Machine"
|
|
||||||
Else
|
|
||||||
'JSON stuff
|
'JSON stuff
|
||||||
'itemSubTitle = _translation.HIDDEN_MACHINE_TITLE(cItem.ItemType.ToString())
|
'itemSubTitle = _translation.HIDDEN_MACHINE_TITLE(cItem.ItemType.ToString())
|
||||||
itemSubTitle = "Hidden Machine"
|
itemSubTitle = "Hidden Machine"
|
||||||
|
Else
|
||||||
|
'JSON stuff
|
||||||
|
'itemSubTitle = _translation.TECH_MACHINE_TITLE(cItem.ItemType.ToString())
|
||||||
|
itemSubTitle = "Technical Machine"
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
itemDescription &= Environment.NewLine & CType(cItem, GameModeItem).gmTeachMove.Description
|
itemDescription &= Environment.NewLine & CType(cItem, GameModeItem).gmTeachMove.Description
|
||||||
|
|
Loading…
Reference in New Issue