Commit Graph

23 Commits

Author SHA1 Message Date
Kurt
fe7edd6b3b Fix spread/expand learnset rand
closes #202
2017-10-07 22:11:42 -07:00
Kurt
a5f0d173bf add ability banlist for personal rand
closes #200
provide ability IDs (see bulbapedia) in a text file, each line has an
ability ID number.
2017-10-06 20:37:11 -07:00
Kurt
1ae709b79c Add gui for file restoring 2017-10-04 21:19:55 -07:00
Kurt
d3519e8961 Sync missing changes 2017-09-23 06:51:14 -07:00
Kurt
4399a4f4b4 Allow first learned move to be non-stab
only forced if STAB is checked
2017-09-22 19:59:28 -07:00
Kurt
3dcfd6a3f4 Fix learnset randomizer percent not set
STAB count from move randomizer now calculates properly
2017-09-22 19:14:54 -07:00
Kurt
d0f303715a Fix gen7 eggmove rand/writeback
formtableindex was getting cleared if no moves were present, game always
writes at least 4 bytes (ptr & count) for gen7 format.

improve the editor by describing what the extra slots pertain to

Closes #193
2017-09-10 01:01:19 -07:00
Kurt
fa5bdee781 Refactoring
use new randomization objects in other forms
re-standardize namespaces a little
2017-09-09 22:16:55 -07:00
Kurt
ddc7b8558d Rewrite evo/learnset/eggmove randomizers
sew fast oi
2017-09-09 21:34:43 -07:00
Kurt
74d39499b1 Simplify personalinfo randomization
shifting away from gui driven, more towards randomization managing
object-classes

can do if (x is PersonalInfo7 p7)... for type specific rands, way faster
than doing rand in by the GUI anyway.

p7 & p6 rand is actually the same, no SM specific additions were made.

eventually the other editor-randomizers will be treated like this, and
maybe GameConfig will be expanded to store more persistent string / etc
data.
2017-09-08 23:27:40 -07:00
Evan Dixon
b630e0effd Allow unsafe code when compiling as release 2017-07-17 18:52:09 -05:00
Evan Dixon
b8f3350e96 Convert core project type
This allows easy framework multi-targetting. From here, one can target .Net Standard, adding compiler directives to hide unsupported code.

This change should functionally be no different. However, because the client profile is apparently not available with this project type, pk3DS.Core now targets the full .Net Framework 4.0.
2017-07-17 18:48:01 -05:00
Kurt
a1ea88a2bc Improve indexofbytes speed
~10% faster wew
removes range check when checking successive bytes
2017-07-10 23:35:59 -07:00
Kurt
6c82b815d1 Reduce range iteration
specifying count = 0 with a partial pattern match at the end (ie padding
00's at end with a pattern starting with 00) causes checking outside the
range

fix byte pattern offset for mart editor
#147
2017-07-10 23:09:47 -07:00
Kurt
80c31275fc Disable char remapping by default
Preserves ingame character usage (namely m/f symbols)
Compile with set to true if remapping is desired
Closes #137
2017-07-08 21:50:52 -07:00
Kurt
6976607627 Cleanup
mostly unused usings
2017-06-26 20:11:58 -07:00
Evan Dixon
76fb98f849 Initial segregation of Core and WinForms
There's still several uses of System.Drawing and System.Windows.Forms which will take more time to segregate
2017-06-18 15:02:09 -05:00
Kurt
3c47867c39 Improve text editor writeback handling
Begin line editing when cell is entered (rather than double clicking in)
Finish any pending edits when form is closing
Handle errors instead of crashing
Save error messages to text file
Save failed text files to text file for reimporting when fixed

Closes #151

GameText will pass the reference to the persistent gametext; bad text
will stay as bad text until the program closes (where it won't be
saved).
2017-06-11 11:27:12 -07:00
Kurt
9aba1ced9c Add more encountertrade struct docs
sub_379F4C in 1.0 moon
Add memories (all default to 03, 01, 28, 05)
2017-06-08 18:14:21 -07:00
Evan Dixon
919b271d33 Fix GameConfig's Initialize methods
TextFile no longer holds a static reference to GameConfig
2017-05-29 08:52:53 -05:00
Evan Dixon
7f20c9c370 Remove static variable from pk3DS.Core 2017-05-27 17:58:15 -05:00
Evan Dixon
b8eedf2b58 Move changelog to ui project 2017-05-27 17:57:58 -05:00
Evan Dixon
7997f06dc5 Initial split to pk3DS and pk3DS.Core 2017-05-27 17:53:32 -05:00