rh-hideout / pokeemerald-expansion Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dizzyeggg/pokeemerald
Feature branche for the pokeemerald decompilation. See the wiki for more info.
This project forked from dizzyeggg/pokeemerald
Feature branche for the pokeemerald decompilation. See the wiki for more info.
Originally submitted by LOuroboros on DizzyEggg's bev2 branch as Issue 492. Being resubmitted just before submitting my pull request for future clarification.
As brought up by @Ryuhouji on Discord, multi battles on an up-to-date copy of the battle_engine_v2 are freezing right after your partner and you send out their Pokémon.
https://streamable.com/xr2nae
However, I noticed that it all works normally if I go back to the commit a42bd3f, @DizzyEggg.
https://streamable.com/5hep7y
I suppose the problem may have been caused by one of the following commits: 9a7963e, f70a9ce or 97d0643, since they're the only commits you submitted after commit a42bd3f.
For reference, the tests were done using this script: https://pastebin.com/raw/mGQdvCv9
Reposting this from @DizzyEggg's repository.
Bug Bite is a move that does damage. If the opponent is holding a berry, the user steals the berry and eats it on the spot effectively benefitting from said berry's effect.
In the battle_engine however, while there's a text string saying that the user stole and ate the berry, the user is not actually eating the berry.
Test case:
-Made Torchic learn Bug Bite at Lv1
-Changed all the encounters in Route 102 with Lv2 Golem
-Changed Golem's held items to ITEM_ORAN_BERRY
in src/data/pokemon/base_stats.h
-Built a ROM and tested the move
I used a clean copy of the RHH's battle_engine branch with no major modifications to test this out.
Some mons in base_stats.h
have Gen 4+ abilities assigned to them instead of them being commented out. Example:
[SPECIES_CAMERUPT] =
{
...
.abilities = {ABILITY_MAGMA_ARMOR, ABILITY_SOLID_ROCK},
...
},
Solid Rock was introduced in Gen 4. If this ability gets loaded in game, it displays as garbage and does nothing.
All abilities like this should be revised to the following:
[SPECIES_CAMERUPT] =
{
...
.abilities = {ABILITY_MAGMA_ARMOR, ABILITY_NONE}, //ABILITY_SOLID_ROCK},
...
},
So that one could delete all instances of ABILITY_NONE}, //
to automatically get Gen 4+ abilities for battle_engine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.