Skip to content

Commit

Permalink
Add patch for refreshing prerequisites on sidebar recalc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rampastring committed Aug 20, 2024
1 parent 8205874 commit 0de2229
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/prerequisites_refresh.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
%include "macros/patch.inc"

; Refresh sidebar taking prerequisites into account when tech buildings are lost
; Patches the argument to the HouseClass::Can_Build in SidebarClass::StripClass::Recalc so that prerequisites are checked
; Credits: ZivDero, ported to ts-patches by Rampastring

@SET 0x005F5762, db {0x00}

0 comments on commit 0de2229

Please sign in to comment.