Skip to content

Commit

Permalink
Merge pull request #151 from Ychap/fix-rndmagic
Browse files Browse the repository at this point in the history
Process RNDMAGIC.2DA before RNDTREAS.2DA
  • Loading branch information
K4thos authored Jul 7, 2024
2 parents 948142e + 46460bb commit 129b9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EET/lib/bg2_2DA.tph
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ COPY + ~%MOD_FOLDER%/temp/array/RNDTREAS.2DA~ ~%MOD_FOLDER%/temp/array~
REPLACE_TEXTUALLY ~^GEMBLADE .+$[%newline%]*~ ~~

OUTER_SET treasMag = 0
ACTION_FOR_EACH file IN RNDTRES RNDTREAS RNDEQUIP RNDMAGIC RNDSCROL RNDWEP BEGIN
ACTION_FOR_EACH file IN RNDMAGIC RNDTRES RNDTREAS RNDEQUIP RNDSCROL RNDWEP BEGIN
COPY + ~%MOD_FOLDER%/temp/array/%file%.2DA~ ~%MOD_FOLDER%/temp/array~
PRETTY_PRINT_2DA
SPRINT textToReplace ~2DA[ %TAB%]+V1.0[%newline%]+.+[%newline%]+.+[%newline%]+~
Expand Down Expand Up @@ -990,7 +990,7 @@ COPY_EXISTING ~rndtres.2da~ ~override~
APPEND_FILE ~%MOD_FOLDER%/temp/array/rndtres.2DA~
PRETTY_PRINT_2DA
BUT_ONLY
ACTION_FOR_EACH file IN RNDTREAS RNDEQUIP RNDMAGIC RNDSCROL RNDWEP BEGIN
ACTION_FOR_EACH file IN RNDMAGIC RNDTREAS RNDEQUIP RNDSCROL RNDWEP BEGIN
COPY_EXISTING ~%file%.2DA~ ~override~
PRETTY_PRINT_2DA
COUNT_2DA_ROWS 3 cntrow
Expand Down

0 comments on commit 129b9a5

Please sign in to comment.