Fixed "star dust" to "stardust".
This commit is contained in:
parent
df06388e83
commit
95fc3c85f0
@ -49,7 +49,7 @@ Type aFindIVParam
|
||||
sPokemon As String
|
||||
nCP As Integer
|
||||
nHP As Integer
|
||||
nStarDust As Integer
|
||||
nStardust As Integer
|
||||
nPlayerLevel As Integer
|
||||
bIsNew As Boolean
|
||||
nTotal As Integer
|
||||
@ -59,7 +59,7 @@ Type aFindIVParam
|
||||
End Type
|
||||
|
||||
Private maBaseStats () As New aStats
|
||||
Private mCPM () As Double, mStarDust () As Integer
|
||||
Private mCPM () As Double, mStardust () As Integer
|
||||
|
||||
' subMain: The main program
|
||||
Sub subMain
|
||||
@ -113,7 +113,7 @@ Function fnAskParam As aFindIVParam
|
||||
.sPokemon = oDialog.getControl ("lstPokemon").getSelectedItem
|
||||
.nCP = oDialog.getControl ("numCP").getValue
|
||||
.nHP = oDialog.getControl ("numHP").getValue
|
||||
.nStarDust = CInt (oDialog.getControl ("lstStarDust").getSelectedItem)
|
||||
.nStardust = CInt (oDialog.getControl ("lstStardust").getSelectedItem)
|
||||
.nPlayerLevel = CInt (oDialog.getControl ("lstPlayerLevel").getSelectedItem)
|
||||
.nTotal = oDialog.getControl ("lstTotal").getSelectedItemPos + 1
|
||||
.nMax = oDialog.getControl ("lstMax").getSelectedItemPos + 1
|
||||
@ -174,19 +174,19 @@ End Function
|
||||
Sub subBtnOKCheck (oEvent As object)
|
||||
Dim oDialog As Object
|
||||
Dim oPokemon As Object, oCP As Object
|
||||
Dim oHP As Object, oStarDust As Object, oOK As Object
|
||||
Dim oHP As Object, oStardust As Object, oOK As Object
|
||||
|
||||
oDialog = oEvent.Source.getContext
|
||||
oPokemon = oDialog.getControl ("lstPokemon")
|
||||
oCP = oDialog.getControl ("numCP")
|
||||
oHP = oDialog.getControl ("numHP")
|
||||
oStarDust = oDialog.getControl ("lstStarDust")
|
||||
oStardust = oDialog.getControl ("lstStardust")
|
||||
oOK = oDialog.getControl ("btnOK")
|
||||
|
||||
If oPokemon.getSelectedItemPos <> -1 _
|
||||
And oCP.getText <> "" _
|
||||
And oHP.getText <> "" _
|
||||
And oStarDust.getSelectedItemPos <> -1 Then
|
||||
And oStardust.getSelectedItemPos <> -1 Then
|
||||
oOK.setEnable (True)
|
||||
Else
|
||||
oOK.setEnable (False)
|
||||
@ -571,7 +571,7 @@ Function fnFindIV ( _
|
||||
Else
|
||||
fStep = 0.5
|
||||
End If
|
||||
subReadStarDust
|
||||
subReadStardust
|
||||
nEvolved = UBound (aBaseStats.mEvolved)
|
||||
If nEvolved > -1 Then
|
||||
ReDim Preserve maEvBaseStats (nEvolved) As New aStats
|
||||
@ -585,8 +585,8 @@ Function fnFindIV ( _
|
||||
Next nI
|
||||
End If
|
||||
nN = -1
|
||||
For fLevel = 1 To UBound (mStarDust) Step fStep
|
||||
If mStarDust (CInt (fLevel - 0.5)) = aQuery.nStarDust Then
|
||||
For fLevel = 1 To UBound (mStardust) Step fStep
|
||||
If mStardust (CInt (fLevel - 0.5)) = aQuery.nStardust Then
|
||||
For nStamina = 0 To 15
|
||||
If fnCalcHP (aBaseStats, fLevel, nStamina) = aQuery.nHP Then
|
||||
For nAttack = 0 To 15
|
||||
@ -740,7 +740,7 @@ Sub subSaveIV ( _
|
||||
nEvolved = UBound (maIVs (0).maEvolved) + 1
|
||||
|
||||
mRow = Array ( _
|
||||
"No", "Pokemon", "CP", "HP", "Star dust", _
|
||||
"No", "Pokemon", "CP", "HP", "Stardust", _
|
||||
"Lv", "Atk", "Def", "Sta", "IV")
|
||||
nFront = UBound (mRow)
|
||||
If aQuery.sPokemon = "Eevee" Then
|
||||
@ -843,7 +843,7 @@ Sub subSaveIV ( _
|
||||
mData (1) (1) = aQuery.sPokemon
|
||||
mData (1) (2) = aQuery.nCP
|
||||
mData (1) (3) = aQuery.nHP
|
||||
mData (1) (4) = aQuery.nStarDust
|
||||
mData (1) (4) = aQuery.nStardust
|
||||
|
||||
oRange = oSheet.getCellRangeByPosition ( _
|
||||
0, 0, UBound (mData (0)), UBound (mData))
|
||||
@ -1154,9 +1154,9 @@ Sub subReadCPM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' subReadStarDust: Reads the star dust table.
|
||||
Sub subReadStarDust
|
||||
If UBound (mStarDust) = -1 Then
|
||||
mStarDust = fnGetStarDustData
|
||||
' subReadStardust: Reads the stardust table.
|
||||
Sub subReadStardust
|
||||
If UBound (mStardust) = -1 Then
|
||||
mStardust = fnGetStardustData
|
||||
End If
|
||||
End Sub
|
||||
|
@ -228,9 +228,9 @@ Function fnGetCPMData As Variant
|
||||
0.78463697)
|
||||
End Function
|
||||
|
||||
' fnGetStarDustData: Returns the star dust data.
|
||||
Function fnGetStarDustData As Variant
|
||||
fnGetStarDustData = Array( _
|
||||
' fnGetStardustData: Returns the stardust data.
|
||||
Function fnGetStardustData As Variant
|
||||
fnGetStardustData = Array( _
|
||||
-1, _
|
||||
200, _
|
||||
200, _
|
||||
|
@ -44,7 +44,7 @@ Sub subReadDataSheets
|
||||
& "Option Explicit"
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadBaseStatsSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadCPMSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadStarDustSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadStardustSheet
|
||||
subShowBasicData (sOutput)
|
||||
End Sub
|
||||
|
||||
@ -203,8 +203,8 @@ Function fnReadCPMSheet As String
|
||||
fnReadCPMSheet = sOutput
|
||||
End Function
|
||||
|
||||
' fnReadStarDustSheet: Reads the star dust sheet.
|
||||
Function fnReadStarDustSheet As String
|
||||
' fnReadStardustSheet: Reads the stardust sheet.
|
||||
Function fnReadStardustSheet As String
|
||||
Dim oSheet As Object, oRange As Object, mData As Variant
|
||||
Dim nI As Integer, sOutput As String
|
||||
|
||||
@ -213,9 +213,9 @@ Function fnReadStarDustSheet As String
|
||||
mData = oRange.getDataArray
|
||||
|
||||
sOutput = "" _
|
||||
& "' fnGetStarDustData: Returns the star dust data." & Chr (10) _
|
||||
& "Function fnGetStarDustData As Variant" & Chr (10) _
|
||||
& Chr (9) & "fnGetStarDustData = Array( _" & Chr (10) _
|
||||
& "' fnGetStardustData: Returns the stardust data." & Chr (10) _
|
||||
& "Function fnGetStardustData As Variant" & Chr (10) _
|
||||
& Chr (9) & "fnGetStardustData = Array( _" & Chr (10) _
|
||||
& Chr (9) & Chr (9) & "-1, _" & Chr (10)
|
||||
For nI = 1 To UBound (mData) - 1 Step 2
|
||||
sOutput = sOutput _
|
||||
@ -225,5 +225,5 @@ Function fnReadStarDustSheet As String
|
||||
sOutput = sOutput _
|
||||
& Chr (9) & Chr (9) & mData (nI) (2) & ")" & Chr (10) _
|
||||
& "End Function"
|
||||
fnReadStarDustSheet = sOutput
|
||||
fnReadStardustSheet = sOutput
|
||||
End Function
|
||||
|
@ -51,7 +51,7 @@ Type aFindIVParam
|
||||
sPokemon As String
|
||||
nCP As Integer
|
||||
nHP As Integer
|
||||
nStarDust As Integer
|
||||
nStardust As Integer
|
||||
nPlayerLevel As Integer
|
||||
bIsNew As Boolean
|
||||
nTotal As Integer
|
||||
@ -61,7 +61,7 @@ Type aFindIVParam
|
||||
End Type
|
||||
|
||||
Private maBaseStats () As New aStats
|
||||
Private mCPM () As Double, mStarDust () As Integer
|
||||
Private mCPM () As Double, mStardust () As Integer
|
||||
|
||||
' subMain: The main program
|
||||
Sub subMain
|
||||
@ -115,7 +115,7 @@ Function fnAskParam As aFindIVParam
|
||||
.sPokemon = oDialog.getControl ("lstPokemon").getSelectedItem
|
||||
.nCP = oDialog.getControl ("numCP").getValue
|
||||
.nHP = oDialog.getControl ("numHP").getValue
|
||||
.nStarDust = CInt (oDialog.getControl ("lstStarDust").getSelectedItem)
|
||||
.nStardust = CInt (oDialog.getControl ("lstStardust").getSelectedItem)
|
||||
.nPlayerLevel = CInt (oDialog.getControl ("lstPlayerLevel").getSelectedItem)
|
||||
.nTotal = oDialog.getControl ("lstTotal").getSelectedItemPos + 1
|
||||
.nMax = oDialog.getControl ("lstMax").getSelectedItemPos + 1
|
||||
@ -176,19 +176,19 @@ End Function
|
||||
Sub subBtnOKCheck (oEvent As object)
|
||||
Dim oDialog As Object
|
||||
Dim oPokemon As Object, oCP As Object
|
||||
Dim oHP As Object, oStarDust As Object, oOK As Object
|
||||
Dim oHP As Object, oStardust As Object, oOK As Object
|
||||
|
||||
oDialog = oEvent.Source.getContext
|
||||
oPokemon = oDialog.getControl ("lstPokemon")
|
||||
oCP = oDialog.getControl ("numCP")
|
||||
oHP = oDialog.getControl ("numHP")
|
||||
oStarDust = oDialog.getControl ("lstStarDust")
|
||||
oStardust = oDialog.getControl ("lstStardust")
|
||||
oOK = oDialog.getControl ("btnOK")
|
||||
|
||||
If oPokemon.getSelectedItemPos <> -1 _
|
||||
And oCP.getText <> "" _
|
||||
And oHP.getText <> "" _
|
||||
And oStarDust.getSelectedItemPos <> -1 Then
|
||||
And oStardust.getSelectedItemPos <> -1 Then
|
||||
oOK.setEnable (True)
|
||||
Else
|
||||
oOK.setEnable (False)
|
||||
@ -573,7 +573,7 @@ Function fnFindIV ( _
|
||||
Else
|
||||
fStep = 0.5
|
||||
End If
|
||||
subReadStarDust
|
||||
subReadStardust
|
||||
nEvolved = UBound (aBaseStats.mEvolved)
|
||||
If nEvolved > -1 Then
|
||||
ReDim Preserve maEvBaseStats (nEvolved) As New aStats
|
||||
@ -587,8 +587,8 @@ Function fnFindIV ( _
|
||||
Next nI
|
||||
End If
|
||||
nN = -1
|
||||
For fLevel = 1 To UBound (mStarDust) Step fStep
|
||||
If mStarDust (CInt (fLevel - 0.5)) = aQuery.nStarDust Then
|
||||
For fLevel = 1 To UBound (mStardust) Step fStep
|
||||
If mStardust (CInt (fLevel - 0.5)) = aQuery.nStardust Then
|
||||
For nStamina = 0 To 15
|
||||
If fnCalcHP (aBaseStats, fLevel, nStamina) = aQuery.nHP Then
|
||||
For nAttack = 0 To 15
|
||||
@ -742,7 +742,7 @@ Sub subSaveIV ( _
|
||||
nEvolved = UBound (maIVs (0).maEvolved) + 1
|
||||
|
||||
mRow = Array ( _
|
||||
"No", "Pokemon", "CP", "HP", "Star dust", _
|
||||
"No", "Pokemon", "CP", "HP", "Stardust", _
|
||||
"Lv", "Atk", "Def", "Sta", "IV")
|
||||
nFront = UBound (mRow)
|
||||
If aQuery.sPokemon = "Eevee" Then
|
||||
@ -845,7 +845,7 @@ Sub subSaveIV ( _
|
||||
mData (1) (1) = aQuery.sPokemon
|
||||
mData (1) (2) = aQuery.nCP
|
||||
mData (1) (3) = aQuery.nHP
|
||||
mData (1) (4) = aQuery.nStarDust
|
||||
mData (1) (4) = aQuery.nStardust
|
||||
|
||||
oRange = oSheet.getCellRangeByPosition ( _
|
||||
0, 0, UBound (mData (0)), UBound (mData))
|
||||
@ -1156,10 +1156,10 @@ Sub subReadCPM
|
||||
End If
|
||||
End Sub
|
||||
|
||||
' subReadStarDust: Reads the star dust table.
|
||||
Sub subReadStarDust
|
||||
If UBound (mStarDust) = -1 Then
|
||||
mStarDust = fnGetStarDustData
|
||||
' subReadStardust: Reads the stardust table.
|
||||
Sub subReadStardust
|
||||
If UBound (mStardust) = -1 Then
|
||||
mStardust = fnGetStardustData
|
||||
End If
|
||||
End Sub
|
||||
</script:module>
|
@ -230,9 +230,9 @@ Function fnGetCPMData As Variant
|
||||
0.78463697)
|
||||
End Function
|
||||
|
||||
' fnGetStarDustData: Returns the star dust data.
|
||||
Function fnGetStarDustData As Variant
|
||||
fnGetStarDustData = Array( _
|
||||
' fnGetStardustData: Returns the stardust data.
|
||||
Function fnGetStardustData As Variant
|
||||
fnGetStardustData = Array( _
|
||||
-1, _
|
||||
200, _
|
||||
200, _
|
||||
|
@ -46,7 +46,7 @@ Sub subReadDataSheets
|
||||
& "Option Explicit"
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadBaseStatsSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadCPMSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadStarDustSheet
|
||||
sOutput = sOutput & Chr (10) & Chr (10) & fnReadStardustSheet
|
||||
subShowBasicData (sOutput)
|
||||
End Sub
|
||||
|
||||
@ -205,8 +205,8 @@ Function fnReadCPMSheet As String
|
||||
fnReadCPMSheet = sOutput
|
||||
End Function
|
||||
|
||||
' fnReadStarDustSheet: Reads the star dust sheet.
|
||||
Function fnReadStarDustSheet As String
|
||||
' fnReadStardustSheet: Reads the stardust sheet.
|
||||
Function fnReadStardustSheet As String
|
||||
Dim oSheet As Object, oRange As Object, mData As Variant
|
||||
Dim nI As Integer, sOutput As String
|
||||
|
||||
@ -215,9 +215,9 @@ Function fnReadStarDustSheet As String
|
||||
mData = oRange.getDataArray
|
||||
|
||||
sOutput = "" _
|
||||
& "' fnGetStarDustData: Returns the star dust data." & Chr (10) _
|
||||
& "Function fnGetStarDustData As Variant" & Chr (10) _
|
||||
& Chr (9) & "fnGetStarDustData = Array( _" & Chr (10) _
|
||||
& "' fnGetStardustData: Returns the stardust data." & Chr (10) _
|
||||
& "Function fnGetStardustData As Variant" & Chr (10) _
|
||||
& Chr (9) & "fnGetStardustData = Array( _" & Chr (10) _
|
||||
& Chr (9) & Chr (9) & "-1, _" & Chr (10)
|
||||
For nI = 1 To UBound (mData) - 1 Step 2
|
||||
sOutput = sOutput _
|
||||
@ -227,6 +227,6 @@ Function fnReadStarDustSheet As String
|
||||
sOutput = sOutput _
|
||||
& Chr (9) & Chr (9) & mData (nI) (2) & ")" & Chr (10) _
|
||||
& "End Function"
|
||||
fnReadStarDustSheet = sOutput
|
||||
fnReadStardustSheet = sOutput
|
||||
End Function
|
||||
</script:module>
|
@ -3,7 +3,7 @@
|
||||
2.DlgMain.txtPokemon.Label=~Pok\u00e9mon:
|
||||
3.DlgMain.txtCP.Label=~CP:
|
||||
4.DlgMain.txtHP.Label=~HP:
|
||||
5.DlgMain.txtStarDust.Label=S~tar dust:
|
||||
5.DlgMain.txtStardust.Label=S~tardust:
|
||||
6.DlgMain.txtPlayerLevel.Label=Player ~level:
|
||||
7.DlgMain.cbxIsNew.Label=This Pok\u00e9mon has ~not been powered-up yet.
|
||||
8.DlgMain.grpAppraisals.Label=Team Leader Appraisal
|
||||
|
@ -3,7 +3,7 @@
|
||||
2.DlgMain.txtPokemon.Label=\u5bf6\u53ef\u5922(~P)\uff1a
|
||||
3.DlgMain.txtCP.Label=~CP:
|
||||
4.DlgMain.txtHP.Label=~HP:
|
||||
5.DlgMain.txtStarDust.Label=S~tar dust:
|
||||
5.DlgMain.txtStardust.Label=S~tardust:
|
||||
6.DlgMain.txtPlayerLevel.Label=\u73a9\u5bb6\u7b49\u7d1a(~L)\uff1a
|
||||
7.DlgMain.cbxIsNew.Label=\u9019\u96bb\u5bf6\u53ef\u5922\u9084\u6c92\u5f37\u5316\u904e(~N)\u3002
|
||||
8.DlgMain.grpAppraisals.Label=\u968a\u9577\u8a55\u50f9
|
||||
|
@ -181,8 +181,8 @@
|
||||
<dlg:numericfield dlg:id="numHP" dlg:tab-index="2" dlg:left="65" dlg:top="39" dlg:width="15" dlg:height="12" dlg:decimal-accuracy="0" dlg:value-min="10" dlg:value-max="500">
|
||||
<script:event script:event-name="on-textchange" script:macro-name="vnd.sun.star.script:PokemonGoIV.0Main.subBtnOKCheck?language=Basic&location=application" script:language="Script"/>
|
||||
</dlg:numericfield>
|
||||
<dlg:text dlg:id="txtStarDust" dlg:tab-index="19" dlg:left="90" dlg:top="41" dlg:width="30" dlg:height="8" dlg:value="&5.DlgMain.txtStarDust.Label"/>
|
||||
<dlg:menulist dlg:id="lstStarDust" dlg:tab-index="3" dlg:left="120" dlg:top="39" dlg:width="35" dlg:height="12" dlg:spin="true">
|
||||
<dlg:text dlg:id="txtStardust" dlg:tab-index="19" dlg:left="90" dlg:top="41" dlg:width="30" dlg:height="8" dlg:value="&5.DlgMain.txtStardust.Label"/>
|
||||
<dlg:menulist dlg:id="lstStardust" dlg:tab-index="3" dlg:left="120" dlg:top="39" dlg:width="35" dlg:height="12" dlg:spin="true">
|
||||
<dlg:menupopup>
|
||||
<dlg:menuitem dlg:value="200"/>
|
||||
<dlg:menuitem dlg:value="400"/>
|
||||
|
Loading…
Reference in New Issue
Block a user