summaryrefslogtreecommitdiff
path: root/src/berry.c
AgeCommit message (Collapse)Author
2020-04-27Sync new_game.incGriffinR
2020-02-12Fix event object include guards and constant filenamesGriffinR
2020-02-12Standardize Event Object to Object EventGriffinR
2019-08-23[WIP] English Debug menu translations! (Plus some build system fixes)easyaspi314 (Devin)
I'm back!            す Éß テ-ブ↑& ÒÛªù! (かなテーブルを捨てろよ!/Throw away the kana table!) When compiled in English with DEBUG, instead of óじばÌ (mojibake), you now get actual English translations! No more switching from the game, to the kana chart, and if you don't know Japanese, Google Translate, just to read one sentence. Additionally, the few unknown translations should use proper encoding or Romaji. I decided to use a nicer macro system: static const u8 sStrHello[] = DTR("こんにちは", "Hello"); This prevents ifdef HELL, as the mixed Japanese and English would be messy. Additionally, some special character issues were corrected. Things untranslated/bugs: - Tomomichi's dummy functions. Of course, they don't do much. - The title screen battle menu. This uses a Gen 2 style tile rendering and the way it is rendered is incredibly overcomplicated. - A few phrases which I couldn't get a clear translation for. I don't know much Japanese lol. - Song names. Just tedious with the limited buffer size. - A few layout issues. Some dimensions should be tweaked to avoid text box ovetflows. - Potential buffer overflows, which I want to try to avoid - (ASan for GBA? :morphon:) - While I use the DEBUG_TRANSLATE flag (automatic with ENGLISH && DEBUG) for C code, the asm data only checks for ENGLISH && DEBUG. Additionally, they are ugly. - Haven't tested all builds yet. - Some code formatting issues. I also made it so this will compile with the system preprocessor (including Clang), and my agbcc binutils (which will attempt to be selected automatically if you don't have DKP). Clang needs a few flags (it can't do asm enums with line numbers and it does trigraphs in standard mode), but it is no longer flipping out. I am going to restart my build system project. It was getting way off track, and ucpp was too difficult to maintain (one of the main reasons for the silence).
2018-12-07Use real apostrophes instead of fake onesMelody
2018-10-17More synchronisationSlawter666
2018-07-10Move movement constants into include/constants/event_object_movement_constants.hMarcus Huderle
2018-05-29Unify 'map object' and 'field object' terms into 'event object'Marcus Huderle
2018-05-29Define movement type constantsMarcus Huderle
2018-05-29Rename regularAnim and specialAnim to singleMovement and heldMovementMarcus Huderle
2018-05-23Label all of MapObject struct members, and ground effect flagsMarcus Huderle
2018-05-09Misc labeling and cleanup, mostly item-relatedMarcus Huderle
2018-04-06debug_sub_813C5B4PikalaxALT
2018-02-18remove subdirectoriescamthesaxman
2017-08-12split out src/ directory into categorized subdirectories.ProjectRevoTPP
2017-06-28Remove excess declarations of gScriptItemIdscnorton
2017-05-26Sort includesMarijn van der Werf
2017-05-26Add headersMarijn van der Werf
2017-05-09minutes, not secondsYamaArashi
2017-05-05Add German berry dataMarijn van der Werf
2017-04-27Sort includesMarijn van der Werf
2017-04-08finish decompiling item_use.c (#244)ProjectRevoTPP
* nonmatching sub_80C9720 and decompile sub_80C9838 * finish decompiling Itemfinder functions. * decompile ItemUseOutOfBattle_PokeblockCase and ItemUseOutOfBattle_CoinCase * rename field_doortransition * rename weather file * decompile more of item_use.c * decompile up to repel code * decompile up to stat increase code * finish decompiling item_use.c * remove item_use from ld_script
2017-03-18reorganize and add new headers for many filesProjectRevoTPP
2017-02-10misc labels and memcpy/set cleanups (#232)ProjectRevoTPP
* some labels and enumerate player speeds * clear up speed enums * GetPlayerSpeed * oops * start decompiling mauville_old_man.c * formatting * decompile more of mauville_old_man.c * someone fix this please * formatting * make ROM build again * formatting again * make ROM match again * label, document, reorganize, and clean up battle_ai.c * move stuff to battle.h and get rid of battle_2000000 * various changes * labeling * minor labels and formatting * contest ai labels and misc stuff
2017-01-27define more data in C (#219)Cameron Hall
* define some graphics data in C * define wild pokemon in C * use less #ifdefs * define data in berry.c
2017-01-17Remove trailing whitespaceMarijn van der Werf
2017-01-17Sort includesMarijn van der Werf
2017-01-05item constantsYamaArashi
2017-01-02label and document berry.c, decompress.c, item_use.c and label ↵ProjectRevoTPP
gBattleTypeFlags (#146) * make ROM match again * clean up item_use.c labels and clarify functions. * label and clarify some functions in decompress.c * label and clarify berry.c * rename 20239F8 to gBattleTypeFlags * formatting
2016-12-02[WIP] Extract all external function declarations to headers (#114)Marijn van der Werf
* Extract other external function declarations * Fix GBA compilation * Revert `sub_803C434` to asm
2016-11-30Declare more non-static functions in header files (#111)Marijn van der Werf
* Declare more non-static functions in header files * Use `(void)` for functions without arguments. * Move global-included data to seperate headers * Don't import types or global in header * Fix fieldmap imports * Revert in-code changes * Add missing newlines
2016-11-06cleanup (#93)Cameron Hall
* cleanup * cleanup
2016-11-05script special variablesYamaArashi
2016-11-01clean up trailing spacesYamaArashi
2016-11-01whitespace cleanupYamaArashi
2016-10-28Decompile berry.c.yenatch