Commit Graph

144 Commits

Author SHA1 Message Date
Kurt
6fe7e4e53a Add road tile detail copy
Copies only the road portion of the terrain tile, not the ground detail.
Closes #203
2020-05-12 15:22:39 -07:00
Kurt
902dd90dc9 Remove hardcoded map dimension properties
we can refer to MaxWidth/MaxHeight instead
2020-05-11 23:13:40 -07:00
Kurt
f50071c0be Rework houses to expose more details 2020-05-11 22:20:21 -07:00
Kurt
60faecdc69 Refactoring
move files, abstract some logic for later reuse
2020-05-11 22:14:27 -07:00
Kurt
46d4f4e8c1 Wrapping paper clarifications
wrapping paper is 0-15, and the array is 16 entries. just add.
2020-05-11 22:07:27 -07:00
Kurt
6330674c45 Add house flag metadata 2020-05-11 17:46:08 -07:00
Kurt
ff5acf2b9c Remap field item sprite to held item if available
Also adds tree shake drop hint for tooltip
2020-05-10 20:26:56 -07:00
Kurt
6ae1c9724b add click-drag on acre picturebox to move the viewport
hold control to drag the viewport faster

does not move items; that would probably have to be a toggle -- if ever implemented
2020-05-10 14:13:45 -07:00
Kurt
a801b1854f Allow editing villager cached pattern
Closes #191
2020-05-10 09:56:26 -07:00
Kurt
71089b0103 Set body customization flags on give all
Closes #190

I checked one of my more recent save files and noticed that bits for remake indexes 2,000+ were set. Not sure why there's 8000 remake sets allocated... Maybe they're using the data there for other unlocks / values. Dunno!

Replace '8' with ItemRemakeInfo.BodyColorCountMax for documentation clarity
2020-05-10 08:54:45 -07:00
Kurt
6a87f9d874 Add more item flags
10_0000th bit of Flag0 is to indicate if an item was dropped rather than placed (dropped clothing vs clothing on display)

treat dropped items and buried item sizes as 2x2 (1.0x1.0) rather than their placed sizes
2020-05-09 22:06:22 -07:00
Kurt
74bf1d4cef Merge acre editor into field item editor 2020-05-09 17:03:58 -07:00
Kurt
801db3e130 Add exterior acre pixel dumper, show exterior acres on Field Item editor
980KB -> 12KB when compressed, seems legit

just an array of tile definitions (32x32 style), sequential acres (undefined acres are all zeroed)

tiles aren't displated as granular as possible, only sets as 16x16 tiles instead of larger 32x32, but it should be a good enough color hint to people for editing

big thanks to ninji for the color mapping in his disassembly and the pbc->tile parse
2020-05-09 16:15:37 -07:00
Kurt
fd81b2cb61 Convert OutsideAcreList to enum 2020-05-09 14:56:11 -07:00
Kurt
0085c453d4 Add custom picker for specialty fruit
Closes #181
2020-05-09 10:58:19 -07:00
Kurt
60f3fa84a3 Add more misc edits
Closes #179
Not allowing people to import a jpeg.
2020-05-09 09:39:35 -07:00
Kurt
56fd88cabb Use combobox for airport color w/color names
Closes #180 ty @MirayXS for the list of color IDs
2020-05-09 08:36:06 -07:00
Kurt
07e393177f add initial exterior acre pixel calculation
no functional changes to NHSE
2020-05-09 08:31:46 -07:00
Kurt
d5a53de265 Add airport color r/w
Closes #176
if anyone wants to document which value = which color, pls report back
2020-05-08 21:01:22 -07:00
Kurt
86da243405 Add birthday & fg
#164
2020-05-08 20:34:18 -07:00
Kurt
7f58513d29 add weed to kind translation
why not
2020-05-08 15:24:27 -07:00
Kurt
d68b8b2fbf Fix oak tree color on field item map 2020-05-08 15:01:10 -07:00
Kurt
a6f88a048b Translate item kind from FieldItem
only trees and flowers are really necessary (for editing values)
2020-05-08 13:24:13 -07:00
Kurt
a9810c7d03 Merge Field Item back into Item
Different means of expression for the 8 byte item structure's FreeParam

Will be expanding the ItemEditor so that it has a checkmark to toggle Extension Item editing behavior.

Removes IHeldItem as there's no need to abstract it.
2020-05-08 12:20:24 -07:00
Kurt
8e4e0a92f8 Add reaction list editor
#167

If you're adding reactions, you should probably set FillReactionList in player flags to 44 so that the game knows to not give you more reactions...?
2020-05-07 22:13:31 -07:00
Kurt
8d695cd8ed Add reaction list
ty @Lusamine
2020-05-07 21:41:14 -07:00
Kurt
f6aab41872 Remove extra ' in comment 2020-05-07 20:34:22 -07:00
Kurt
f9d9103039 Add reaction list get/set
pls gib ui soon :)

need to translate these values (byte) -> reaction names (enum)
2020-05-07 19:37:48 -07:00
Kurt
6a98054149 Add hemisphere get/set
ty @rydoginator
2020-05-07 18:06:31 -07:00
Kurt
e9a6861349 Add design source / choice for item
s32 remake {

s32 body:3
s32 source:2
s32 pattern:8
s32 unused:19

}
2020-05-07 17:01:19 -07:00
Kurt
50c401d0c1 Update ItemRemakeCommonPatternCategory.cs 2020-05-07 15:42:16 -07:00
Kurt
f78b0d892d Add remake pattern data
Need to figure out how it is stored.
It must override fabric values somehow. If you have custom fabric items, please share data on discord :P
2020-05-07 15:35:32 -07:00
Kurt
7ebc45db60 bitshift subvariant value for display
Are you smarter than a fifth grader?

Basic addition to see what value you need to put as the Count value.
2020-05-07 11:08:42 -07:00
Kurt
55022c85f4 Indicate subvariation colors
Recombining the values with a GUI editor TBD
2020-05-07 10:32:14 -07:00
Kurt
46272165dc Dump itemRemake into dictionary for use 2020-05-06 21:02:50 -07:00
Kurt
b1877d117f Add remake kit dump & access 2020-05-06 18:20:17 -07:00
Kurt
5779b65b9b Adapt personal player struct to disassembled pseudo.h
Similar to main's adaption in a prior commit, let's use the relative offsets.

adds total nook miles earned to editor
fixes the off-by-one indexing for achievement list
2020-05-06 15:32:09 -07:00
Kurt
e980e1d8c2 Add skip list for giving all received items
Closes #166

I threw in the 30-slot unlock as well as the other "Recipe" ids so that things aren't messed with. They're skipped!

ty @theiconrichie !
2020-05-05 18:37:44 -07:00
Kurt
203a7c1627 Add more removal options
- remove flowers
- remove shells
- remove branches

Closes #163

rename plazaX/Y to match internal field name
2020-05-05 17:17:59 -07:00
Kurt
7d975a9ea9 Differentiate field item colors
Closes #159
2020-05-03 20:17:36 -07:00
Kurt
0ec40f3b55 Categorize stalk market properties
update other usages so we can turn off the help box at the bottom of the propertygrid
2020-05-03 19:43:10 -07:00
Kurt
d78b0e0e1f Minor clean
remove some unused logic (program growth = no longer needed)
2020-05-03 19:36:14 -07:00
Kurt
b884973919 Refactoring
abstraction++
2020-05-03 19:24:16 -07:00
Kurt
4a49caf6da Add layer2->layer1 check (isSupported), add logic for isActive
isActive: indicates if the tile is animated (eg: bonfire has fire or is extinguished)
isSupported: layer2 tile checks beneath it (layer1) to see if there's something to hold it up on that layer (sanity check)

Dunno how to handle the isActive set-on-save. I saw there was an isActive flag in my plaza, assumedly left there from a radio or something. NHSE does not change flag state at this time.
2020-05-03 16:29:28 -07:00
Kurt
8de7f7b506 Add internal flag/value name translation
if you really want to translate these, go ahead
#157
2020-05-03 13:37:04 -07:00
Kurt
fb8c7c8cbb Add logic for internal string name translation dictionary
#157
2020-05-03 13:21:25 -07:00
Kurt
928e699168 misc performance improvements
Preallocate the terrain-building objects and reuse

changed:
- grid alternates with a slightly-darker to help indicate the larger 2x2 tile grid.
- put plaza & buildings behind the gridlines
2020-05-02 23:02:37 -07:00
Kurt
4690cfe167 Refactoring: Field Item Editor + buildings/terrain
Extracts logic from the building & terrain & field item editors for reuse / separation of concerns

Have FieldItemEditor select between Items & Terrain so that you can change the popup menu mode (view set delete)

Not sure how I want to show the terrain names...
2020-05-02 20:05:09 -07:00
Kurt
ef065f889b Add checkbox to toggle auto-extension behavior, clamp map bounds 2020-05-02 14:41:32 -07:00
Kurt
73b4d0c2fd Add fossil & message bottle item for hover text & editor 2020-05-02 14:06:03 -07:00