Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Community PR] Integrate merrp's lighting branch #5288

Open
wants to merge 168 commits into
base: upcoming
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
5045958
OW windows now light up at night.
aarant Mar 12, 2021
1277493
Allowed map headers to specify light palettes.
aarant Mar 12, 2021
73234e0
Changed Route 104 windows palette.
aarant Mar 12, 2021
3a7c2e3
Updated Petalburg tileset lights.
aarant Mar 13, 2021
2055a56
Added Slateport light palettes.
aarant Mar 13, 2021
56b9764
Added default light blending color.
aarant Mar 13, 2021
4a04282
Added Mauville light palettes.
aarant Mar 16, 2021
b7d9b77
Added Fortree/weather institute lights.
aarant Mar 16, 2021
806b4ac
Added Lilycove light palettes.
aarant Mar 17, 2021
6806898
Fixed TOD & weather fadeout.
aarant Mar 17, 2021
cd9276c
Refactored light metatile caching.
aarant Mar 24, 2021
1ebf94a
Added more Lilycove window lights.
aarant Apr 5, 2021
787e196
Added Dewford window lights.
aarant Apr 6, 2021
5e3fcaa
Added Fallarbor window lights.
aarant Apr 6, 2021
dbd86a3
Added Mossdeep window lights.
aarant Apr 6, 2021
898a09f
Added Sootopolis lights.
aarant Apr 6, 2021
2f488d6
Added Pacifidlog window lights.
aarant Apr 6, 2021
3c52e9b
Experimental TOD tint.
aarant Apr 6, 2021
e11d050
Added weighted palette average.
aarant Apr 6, 2021
3bd46b5
Fixed bug in MapHasNaturalLight for ocean routes.
aarant Apr 18, 2021
22c429d
Added inter-time-of-day blending.
aarant Apr 19, 2021
def9d39
Testing evening tint.
aarant Apr 19, 2021
a80de91
Fixed bugged interaction between reflections & light sprites.
aarant Apr 20, 2021
0d8467c
Slight palette update optimization.
aarant Apr 20, 2021
93ab445
Testing combined averaging function.
aarant Apr 20, 2021
ae4f596
Averaging function can now tint.
aarant Apr 20, 2021
73d060b
Added glowing colors for some follower pokemon (Ampharos).
aarant Apr 20, 2021
da345c1
Optimized time-of-day & native palette blending.
aarant Apr 20, 2021
4bb7abb
Fixed palette fades during intermediate times of day.
aarant Apr 21, 2021
96d0f7e
Fixed bug in TOD blending.
aarant Apr 22, 2021
741e880
Increased TOD update interval.
aarant Apr 24, 2021
a4680ed
Minor TOD documentation.
aarant Apr 24, 2021
dbc4cb8
Refactored BlendSettings storage inside gPaletteFade.
aarant Apr 24, 2021
4454a63
Fixed bug where TOD was updated too frequently.
aarant Apr 24, 2021
68e43a8
Updated time-of-day-based evolution methods.
aarant Apr 24, 2021
a160012
Added shadow toggle to weather structure.
aarant Apr 24, 2021
0cc6c7b
Made BlendPalettesFine global.
aarant Apr 24, 2021
c0d6692
Fixed weather gamma blending.
aarant Apr 24, 2021
65e6163
Changed time blending to work with FadeScreen.
aarant Apr 24, 2021
7b59eab
Changed fog to be compatible with transparent shadows.
aarant Apr 24, 2021
c3fdaca
Fixed sandstorm shadow color.
aarant Apr 24, 2021
37d0e17
Fixed shadow hot springs bug.
aarant Apr 25, 2021
4a5dbcb
Testing updating sprite palettes with weather + time.
aarant Apr 25, 2021
147e101
More testing of fog blending.
aarant Apr 25, 2021
39ba328
Optimized follower palette loading.
aarant Apr 26, 2021
74a9088
Fixed rain fade-in.
aarant Apr 26, 2021
7d8e63a
Reverted 42d5fe07f and fixed rain/thunder gamma.
aarant Apr 26, 2021
c9845c6
Fixed mirage tower time blending.
aarant May 2, 2021
c20db94
Fixed BlendPalettes not incrementing the destination buffer.
aarant May 4, 2021
bfe0c58
Merge branch 'romhack' into lighting
aarant May 6, 2021
385c94d
Merge branch 'romhack' into lighting
aarant Jun 8, 2021
8760839
Merge branch 'romhack' into lighting
aarant Jun 12, 2021
ba2d394
Merge branch 'romhack' into lighting
aarant Jun 15, 2021
9db8d5f
Merge branch 'romhack' into lighting
aarant Jun 16, 2021
f3cb354
Merge branch 'romhack' into lighting
aarant Jul 20, 2021
b64eb7e
Modified palette tint behavior.
aarant Aug 28, 2021
913afab
Merge branch 'romhack' into lighting
aarant Sep 2, 2021
c06ee71
Merge branch 'romhack' into lighting
aarant Sep 2, 2021
a20d127
Merge branch 'romhack' into lighting
aarant Sep 3, 2021
cbb417a
Fixed morning/evening tint.
aarant Sep 23, 2021
79b05ca
Merge branch 'romhack' into lighting
aarant Sep 30, 2021
7588eec
Merge branch 'romhack' into lighting
aarant Oct 3, 2021
1834e48
Merge branch 'romhack' into lighting
aarant Oct 5, 2021
bd3c9ed
Fixed warp arrow palette bug. Optimized weather palette loading.
aarant Nov 26, 2021
e7cbec7
Implemented light colors/palettes for primary tilesets.
aarant Dec 7, 2021
9de9442
Merge branch 'romhack' into lighting
aarant Dec 18, 2021
5034d14
Merge branch 'romhack' into lighting
aarant Dec 23, 2021
e1c56d7
Merge branch 'romhack-no-lighting' into lighting
aarant Dec 23, 2021
11c7eee
Restored lighting & shadows code removed from follower branch.
aarant Dec 23, 2021
ced9fcd
Merge branch 'romhack' into lighting
aarant Dec 23, 2021
d3d758e
Merge branch 'romhack' into lighting
aarant Dec 30, 2021
609a304
Merge branch 'romhack' into lighting
aarant Jan 3, 2022
5e3c48a
Fixed bug where `lighting` branch wouldn't build on modern. Credit: J…
aarant Jan 16, 2022
dd07688
Merge branch 'romhack' into lighting
aarant Jan 22, 2022
ab6b148
Merge branch 'romhack' into lighting
aarant Feb 21, 2022
d23b8e9
Merge branch 'romhack' into lighting
aarant Feb 23, 2022
07333b5
Merge branch 'romhack' into lighting
aarant Mar 16, 2022
4e20e02
Merge branch 'romhack' into lighting
aarant Mar 26, 2022
6e621d8
Added day/night palette swapping.
aarant Apr 16, 2022
ea6c1a9
Optimized UpdateTimeOfDay.
aarant Apr 16, 2022
bc2b50c
Added LoadPaletteFast function.
aarant Apr 16, 2022
2d376d8
Removed shadows in puddles or sand piles. Optimized shadow tile loading.
aarant Apr 18, 2022
68497d8
Merge branch 'romhack' into lighting
aarant Apr 19, 2022
f94a92f
Fixed shadow brightness during battle transition.
aarant Apr 19, 2022
513d1b1
Merge branch 'romhack' into lighting
aarant Apr 21, 2022
2ecddee
Merge branch 'romhack' into lighting
aarant Apr 24, 2022
a05adff
Merge branch 'romhack' into lighting
aarant Apr 28, 2022
1ad46e5
Merge branch 'romhack' into lighting
aarant Apr 29, 2022
4534dcf
Merge branch 'romhack' into lighting
aarant Apr 30, 2022
19df355
Merge branch 'romhack' into lighting
aarant May 4, 2022
b46a8b1
Added time-of-day related follower messages.
aarant May 4, 2022
c82510e
Gamma shift now ignores special sprite palette tags (lights, emotes).
aarant May 4, 2022
b5cf90a
Fixed shadow brightness during orb effect.
aarant May 8, 2022
f576556
Merge branch 'romhack' into lighting
aarant May 8, 2022
9862b0f
Merge branch 'romhack' into lighting
aarant May 12, 2022
6d79b6d
Merge branch 'romhack' into lighting
aarant May 19, 2022
a697315
Merge branch 'romhack' into lighting
aarant May 20, 2022
d731485
Fixed shadows appearing above freshly spawned object events.
aarant May 29, 2022
9fe3a50
Optimized time of day update.
aarant Jun 4, 2022
090dc6b
Merge branch 'romhack' into lighting
aarant Jun 28, 2022
7fca787
Fixed time of day optimization.
aarant Jun 28, 2022
8e436e3
Fixed fadescreen interaction with weather on outdoor maps.
aarant Jul 4, 2022
b4cc3ca
Tileset swapPalettes can now use palette 12 for swapping.
aarant Jul 15, 2022
671fa68
Merge branch 'romhack' into lighting
aarant Jul 17, 2022
8aef50c
Fixed leftover Slateport light metatiles.
aarant Jul 22, 2022
0b1c81a
Merge branch 'romhack' into lighting
aarant Aug 17, 2022
891b432
Fixed shadow tile tag.
aarant Aug 16, 2022
4654913
Fixed gamma shift not blending the right palettes.
aarant Aug 21, 2022
c704591
Fixed field move mon palette at night.
aarant Aug 29, 2022
f775976
Improved shadows for Lavaridge, escalator, Escape warps.
aarant Aug 28, 2022
d6bac98
Fixed shadow palette during contests.
aarant Sep 3, 2022
e54c18f
Merge branch 'followers' into lighting
aarant Sep 11, 2022
3a86c8b
Merge branch 'followers' into lighting
aarant Oct 8, 2022
e32232f
Merge branch 'followers' into lighting
aarant Oct 15, 2022
22c1d94
Merge branch 'followers' into lighting
aarant Nov 5, 2022
5cae740
Merge branch 'followers' into lighting
aarant Nov 22, 2022
782889d
Fixed potentially unaligned tileset palettes. Credit to SBird
aarant Nov 25, 2022
4bee03b
Merge branch 'followers' into lighting
aarant Jan 3, 2023
2ddd292
Merge branch 'followers' into lighting
aarant Feb 11, 2023
6fe4ce0
Added lighting to Sootopolis lava.
aarant Feb 5, 2023
9fd7542
Fixed nighttime WEATHER_DOWNPOUR gamma shift.
aarant Feb 9, 2023
3b3e45c
Fixed shadow positioning bug in some battle facilities.
aarant Feb 11, 2023
f83970f
Merge branch 'followers' into lighting
aarant Feb 11, 2023
07995f8
Fixed some decoration icons being darkened at night in outdoor shops.
aarant Mar 8, 2023
6b2e49f
Updated Ever Grande window lights.
aarant Mar 11, 2023
35b4d2f
Merge branch 'followers' into lighting
aarant Mar 13, 2023
ad9a77f
Merge branch 'followers' into lighting
aarant Apr 23, 2023
095994d
Fixed gamma shift for special sprite palette tags (lights, emotes).
aarant Apr 17, 2023
159faf8
Fixed tall grass field effect discoloration in fog.
aarant Apr 23, 2023
996f431
Merge branch 'followers' into lighting
aarant May 15, 2023
9179428
Improved light color blending logic.
aarant Jun 9, 2023
7631ced
Merge branch 'followers' into lighting
aarant Jun 9, 2023
c1953e5
Improved OutOfCenterPartyHeal interaction with followers.
aarant Jun 23, 2023
d800d71
Merge branch 'followers' into lighting
aarant Sep 3, 2023
a63242d
Merge branch 'followers' into lighting
aarant Oct 15, 2023
4689f0b
Fixes for `make modern`.
aarant Oct 15, 2023
b1bdd3e
Fixed Deoxys rock palette with lighting.
aarant Oct 12, 2023
05a6147
Fixed `showmonpic` palette being affected by time of day and weather.…
aarant Dec 13, 2023
72c81db
Merge branch 'followers' into lighting
aarant Dec 31, 2023
7cf2d1e
Merge branch 'followers' into lighting
aarant Feb 17, 2024
f1892cf
Merge branch 'followers' into lighting
aarant Mar 7, 2024
ad0ae99
Merge branch 'followers' into lighting
aarant Apr 28, 2024
7939894
fix: object event palettes can be loaded during fadeout
aarant Apr 28, 2024
05bf039
Merge branch 'followers' into lighting
aarant May 18, 2024
9b68434
fix: add mart light sprite to Route102
aarant May 22, 2024
ed98b0b
fix: added shadows on direct corner map
aarant May 22, 2024
f82b401
Merge branch 'followers' into lighting
aarant May 22, 2024
d410ca6
Merge branch 'followers' into lighting
aarant Jun 1, 2024
e899218
fix: MSG_COND_TIME_OF_DAY now checks whether map is outdoors and not …
aarant Jun 25, 2024
0745eaf
fix: Uninitialized value used in `LightenSpritePaletteInFog`
aarant Aug 13, 2024
0ae5cb1
meta: cleaned up spacing of lighting code
aarant Aug 13, 2024
ca75542
meta: ignored refactoring change
aarant Aug 13, 2024
29b2a75
Merge branch 'followers' into lighting
aarant Aug 13, 2024
ad969c9
Merge branch 'lighting' of https://github.com/aarant/pokeemerald into…
Greenphx9 Aug 25, 2024
fc3a700
Fix up some auto merge stuff
Greenphx9 Aug 25, 2024
396a390
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/lighting-expansion-v2
AsparagusEduardo Aug 29, 2024
d80bf06
Removed unused fields
AsparagusEduardo Aug 30, 2024
aa6d540
Code style adjustments
AsparagusEduardo Aug 30, 2024
fc1212b
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/lighting-expansion-v2
AsparagusEduardo Sep 11, 2024
fb360b1
DNS tinting uses fake RTC's rate
AsparagusEduardo Sep 11, 2024
757ed70
Secondary map popup window updates time while active
AsparagusEduardo Sep 11, 2024
56859e3
Using TIME instead of TIME_OF_DAY
AsparagusEduardo Sep 12, 2024
53414cb
Form changes and evolutions happen based on fake RTC
AsparagusEduardo Sep 16, 2024
18485ca
Time blending uses OW_TIMES_OF_DAY
AsparagusEduardo Sep 30, 2024
d1056f8
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/lighting-expansion-v2
AsparagusEduardo Sep 30, 2024
f913f28
Add config for shadow intensity
AsparagusEduardo Oct 8, 2024
1d95578
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/lighting-expansion-v2
AsparagusEduardo Oct 8, 2024
e68cdfe
Fixed missing call to UpdateTimeOfDay in GetTimeOfDay for inside buil…
AsparagusEduardo Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1800,9 +1800,11 @@

@ Equivalent to fadescreen but copies gPlttBufferUnfaded to gDecompressionBuffer on the fade out
@ and the reverse on the fade in, in effect saving gPlttBufferUnfaded to restore it.
.macro fadescreenswapbuffers mode:req
@ If nowait set, does not wait for the fade to complete
.macro fadescreenswapbuffers mode:req, nowait=0
.byte 0xdc
.byte \mode
.byte \nowait
.endm

@ Buffers the specified trainer's class name to the given string var.
Expand Down
4 changes: 2 additions & 2 deletions data/event_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -757,12 +757,12 @@ Common_EventScript_PlayGymBadgeFanfare::
return

Common_EventScript_OutOfCenterPartyHeal::
fadescreen FADE_TO_BLACK
fadescreenswapbuffers FADE_TO_BLACK
playfanfare MUS_HEAL
waitfanfare
special HealPlayerParty
callnative UpdateFollowingPokemon
fadescreen FADE_FROM_BLACK
fadescreenswapbuffers FADE_FROM_BLACK
return

EventScript_RegionMap::
Expand Down
2 changes: 1 addition & 1 deletion data/layouts/LavaridgeTown/map.bin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no reason we should be changing bin files.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
qqqq{ttttt|qqqqqqq66{tttzq2®2®2®2®2xttttttttr{™š››œ2tž2|qqqNKLOq6rr¡£2¼2£2£2¥JHIMyy0123rr¡»233»2¥PQRS2289:;Æ4Æ4rr©ª2£2¼2¬2­XYZ[Ö5×5`ABCÆ4Æ4rr±²³³´µ`abcæ5ç50 1"1044rrº2¨2¨2¨2¹2Š20 1"10000 1"1000rr¨2˜2¨2˜2Œ2’20 1"1000 1"1000rr¨ B¨ BŠ00 1!11111!1!1111rr‘2‘‘2‘’200(1)1)1)1)1)1)1)1)1)1)1rrª1«1«1«1«1¬1000000000000rr²³³³³´0000 0 0
qqqq{ttttt|qqqqqqq66{tttzq2®2®2®2®2xttttttttr{™š››œ2tž2|qqqNKLOq6rr¡£2¼2£2£2¥JHIMyy0123rr¡»2£2£2»2¥PQRS2289:;Æ4Æ4rr©ª2£2¼2¬2­XYZ[Ö5×5`ABCÆ4Æ4rr±²³³´µ`abcæ5ç50 1"1044rrº2¨2¨2¨2¹2Š20 1"10000 1"1000rr¨2˜2¨2˜2Œ2’20 1"1000 1"1000rr¨ B¨ BŠ00 1!11111!1!1111rr‘2‘‘2‘’200(1)1)1)1)1)1)1)1)1)1)1rrª1«1«1«1«1¬1000000000000rr²³³³³´0000 0 0
00 0 0
00rr¸¹º³»¼0000rrÀÁÂÅß000  Æ4rrÈ1É1ÊÍ˧000 !" !"Æ4rr00000000000040000Æ4m000000000000000Æ4Æ4qqrm0000000000000044qqllllllllllllllll
1 change: 1 addition & 0 deletions data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ BattleFrontier_BattleDomeBattleRoom_EventScript_SetUpObjects::
call BattleFrontier_EventScript_SetBrainObjectGfx
setobjectxyperm LOCALID_OPPONENT, 13, 9
removeobject LOCALID_OPPONENT
delay 1
addobject LOCALID_OPPONENT
applymovement LOCALID_OPPONENT, BattleFrontier_BattleDomeBattleRoom_Movement_SetInvisibleFacingUp
BattleFrontier_BattleDomeBattleRoom_EventScript_EndSetUpObjects::
Expand Down
13 changes: 13 additions & 0 deletions data/maps/DewfordTown/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "DewfordTown_EventScript_TrendyPhraseBoy",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 4,
"y": 10,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down
16 changes: 15 additions & 1 deletion data/maps/EverGrandeCity/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,21 @@
"direction": "left"
}
],
"object_events": [],
"object_events": [
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 29,
"y": 48,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
{
"x": 18,
Expand Down
2 changes: 1 addition & 1 deletion data/maps/LavaridgeTown/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"x": 4,
"y": 4,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_RIGHT",
"movement_type": "MOVEMENT_TYPE_FACE_DOWN_AND_LEFT",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
Expand Down
13 changes: 13 additions & 0 deletions data/maps/LilycoveCity/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,19 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "LilycoveCity_EventScript_FatMan",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 26,
"y": 14,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down
26 changes: 26 additions & 0 deletions data/maps/MauvilleCity/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,32 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "0x0",
"flag": "FLAG_HIDE_MAUVILLE_CITY_SCOTT"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 24,
"y": 5,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 25,
"y": 14,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "2",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down
26 changes: 26 additions & 0 deletions data/maps/MossdeepCity/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,32 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "MossdeepCity_EventScript_BlackBelt",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 30,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 39,
"y": 18,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "2",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down
4 changes: 2 additions & 2 deletions data/maps/MtChimney/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ MtChimney_EventScript_Maxie::
msgbox MtChimney_Text_MaxieYouHaventSeenLastOfMagma, MSGBOX_DEFAULT
closemessage
delay 30
fadescreen FADE_TO_BLACK
fadescreenswapbuffers FADE_TO_BLACK
removeobject LOCALID_MAXIE
removeobject LOCALID_MAGMA_GRUNT_1
removeobject LOCALID_TABITHA
removeobject LOCALID_MAGMA_GRUNT_2
setflag FLAG_HIDE_MT_CHIMNEY_TEAM_MAGMA
fadescreen FADE_FROM_BLACK
fadescreenswapbuffers FADE_FROM_BLACK
setobjectxyperm LOCALID_ARCHIE, 10, 12
addobject LOCALID_ARCHIE
call_if_eq VAR_FACING, DIR_EAST, MtChimney_EventScript_ArchieApproachPlayerEast
Expand Down
5 changes: 2 additions & 3 deletions data/maps/MtPyre_Summit/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ MtPyre_Summit_EventScript_TeamAquaExits::
call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_ArchieFacePlayer2
msgbox MtPyre_Summit_Text_ArchieWeGotTheOrbLetsGo, MSGBOX_DEFAULT
closemessage
fadescreen FADE_TO_BLACK
fadescreenswapbuffers FADE_TO_BLACK
removeobject LOCALID_ARCHIE
removeobject LOCALID_GRUNT_1
removeobject LOCALID_GRUNT_2
Expand All @@ -58,7 +58,7 @@ MtPyre_Summit_EventScript_TeamAquaExits::
setflag FLAG_HIDE_MT_PYRE_SUMMIT_ARCHIE
setflag FLAG_HIDE_MT_PYRE_SUMMIT_TEAM_AQUA
fadedefaultbgm
fadescreen FADE_FROM_BLACK
fadescreenswapbuffers FADE_FROM_BLACK
delay 20
setvar VAR_MT_PYRE_STATE, 1
call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_OldLadyApproachPlayer0
Expand Down Expand Up @@ -622,4 +622,3 @@ MtPyre_Summit_Text_HoennTrioTale:
.string "becalmed the two enraged POKéMON.\p"
.string "Then, its duty done, the green POKéMON\n"
.string "flew off into the wild blue yonder…$"

17 changes: 16 additions & 1 deletion data/maps/PacifidlogTown/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,19 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "PacifidlogTown_EventScript_NinjaBoy",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 10,
"y": 15,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down Expand Up @@ -109,7 +122,9 @@
"dest_warp_id": "0"
}
],
"coord_events": [],
"coord_events": [

],
"bg_events": [
{
"type": "sign",
Expand Down
26 changes: 26 additions & 0 deletions data/maps/PetalburgCity/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,32 @@
"trainer_sight_or_berry_tree_id": "0",
"script": "0x0",
"flag": "FLAG_HIDE_PETALBURG_CITY_SCOTT"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 22,
"y": 16,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "1",
"script": "NULL",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": 27,
"y": 12,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "2",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [
Expand Down
21 changes: 19 additions & 2 deletions data/maps/Route102/map.json
AsparagusEduardo marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,27 @@
"trainer_sight_or_berry_tree_id": "3",
"script": "Route102_EventScript_Allen",
"flag": "0"
},
{
"graphics_id": "OBJ_EVENT_GFX_LIGHT_SPRITE",
"x": -3,
"y": 2,
"elevation": 3,
"movement_type": "MOVEMENT_TYPE_NONE",
"movement_range_x": 0,
"movement_range_y": 0,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "2",
"script": "NULL",
"flag": "0"
}
],
"warp_events": [],
"coord_events": [],
"warp_events": [

],
"coord_events": [

],
"bg_events": [
{
"type": "sign",
Expand Down
Loading
Loading