Commit Graph

156 Commits

Author SHA1 Message Date
Kurt
6b678ac704 Add snap to grid for field items, upgrade handle extensions: delete tile
Setting a field item with the snap active will align it to the major gridlines. This will prevent the user from setting un-interactable objects (rocks, trees) unintentionally.

Having the auto-handle extension tiles will now delete all associated tiles when issuing a delete command on an extension tile, rather than just deleting the extension tile.
2020-05-16 12:03:21 -07:00
Kurt
a4b4a3c24a Add water flower button
control: all water states
shift: all map (instead of current viewport)

Closes #230
2020-05-16 11:30:25 -07:00
Kurt
3061442f77 Add localized color name display
Closes #223
2020-05-15 13:08:47 -07:00
Kurt
d96be66022 Add description for unused reaction entries
https://pastebin.com/iD9SrFNf
ty idk
2020-05-15 11:39:13 -07:00
Kurt
d586085b18 Differentiate road colors
Closes #222
2020-05-15 08:17:19 -07:00
Kurt
71be1fc419 Enum visiting NPCs
magic numbers no more
ty irc guy
2020-05-14 22:31:20 -07:00
Kurt
a8f111a8f1 Add villager memory (per player) editor
Change friendship here.

Can also cheat all friendships (of all villagers, for all saved players) to 255 by shift clicking the drop-down button instead.
2020-05-14 16:10:33 -07:00
Kurt
ffa0d3612b Add island visitor editor
Make daily NPCs show up reliably!
2020-05-14 09:12:38 -07:00
Kurt
b0870c865a Add design tile clear button for terrain editor
not visualized, but still exposed for mass clear

Closes #208
2020-05-13 12:43:04 -07:00
Kurt
56c1cc31da Add additional property accessors for room
unused in logic
2020-05-13 12:17:10 -07:00
Kurt
d22ac35f73 Add Museum Editor
game stores all donation types in the same array (chunked into date[], item[], playerID[]); no dedicated indexes for a donation, so no empty slots, and all donation types are intermixed (based on donation date)
2020-05-12 22:55:26 -07:00
Kurt
ef3b39e4a0 Add layer support check, add enum for room layer location/type 2020-05-12 19:47:31 -07:00
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