Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GlitterWorld Prime Mod
Release build
Commits
7dbd6176
Commit
7dbd6176
authored
Feb 09, 2019
by
Adam Leyshon
Browse files
Minor textual changes
parent
5a65f486
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
Glitterworld Prime/DialogPrimeTrade.cs
Glitterworld Prime/DialogPrimeTrade.cs
+2
-4
Glitterworld Prime/Tools/DumpThingData.cs
Glitterworld Prime/Tools/DumpThingData.cs
+1
-1
Glitterworld Prime/TraderPrime.cs
Glitterworld Prime/TraderPrime.cs
+1
-1
No files found.
Glitterworld Prime/DialogPrimeTrade.cs
View file @
7dbd6176
...
...
@@ -406,8 +406,7 @@ namespace Glitterworld_Prime
// We'll never deal with corpses so don't show them.
if
(!
def
.
LabelCap
.
ToLower
().
Contains
(
"corpse"
))
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
filterSetter
(
def
);
},
MenuOptionPriority
.
Default
,
null
,
null
,
0f
,
null
,
null
));
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
filterSetter
(
def
);
}));
}
Find
.
WindowStack
.
Add
(
new
FloatMenu
(
list
));
...
...
@@ -420,8 +419,7 @@ namespace Glitterworld_Prime
for
(
var
i
=
0
;
i
<
allDefsListForReading
.
Count
;
i
++)
{
var
def
=
allDefsListForReading
[
i
];
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
sorterSetter
(
def
);
},
MenuOptionPriority
.
Default
,
null
,
null
,
0f
,
null
,
null
));
list
.
Add
(
new
FloatMenuOption
(
def
.
LabelCap
,
delegate
{
sorterSetter
(
def
);
}));
}
Find
.
WindowStack
.
Add
(
new
FloatMenu
(
list
));
...
...
Glitterworld Prime/Tools/DumpThingData.cs
View file @
7dbd6176
...
...
@@ -168,7 +168,7 @@ namespace Glitterworld_Prime.Tools
t
.
LocalizedName
=
t
.
LocalizedName
.
ToLowerInvariant
();
});
var
path
=
Path
.
Combine
(
GenFilePaths
.
SaveDataFolderPath
,
"GWP-MarketDataDump
.json"
);
var
path
=
Path
.
Combine
(
GenFilePaths
.
SaveDataFolderPath
,
$"
{
languageName
}
_thing_data
.json"
);
var
jsonString
=
RestSharp
.
SimpleJson
.
SerializeObject
(
data
);
File
.
WriteAllText
(
path
,
jsonString
);
Messages
.
Message
(
$"
{
data
.
Count
()}
objects dumped to
{
path
}
"
,
MessageTypeDefOf
.
TaskCompletion
);
...
...
Glitterworld Prime/TraderPrime.cs
View file @
7dbd6176
...
...
@@ -185,7 +185,7 @@ namespace Glitterworld_Prime
var
hasQuality
=
false
;
var
qc
=
QualityCategory
.
Normal
;
LogWriter
.
WriteMessage
(
$"Getting
give
{
countToGive
}
x
{
toGive
.
def
.
defName
}
from player"
);
LogWriter
.
WriteMessage
(
$"Getting
{
countToGive
}
x
{
toGive
.
def
.
defName
}
from player"
);
var
thing
=
toGive
.
SplitOff
(
countToGive
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment