Skip to content

Commit

Permalink
fix: resolved PR conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Dec 24, 2024
2 parents e928a75 + cc7be26 commit 37b6185
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
3 changes: 1 addition & 2 deletions optional/handlers/house/house.simba
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ Global variable to use the {ref}`THouseHandler`.
*)
House: THouseHandler;

{%codetools on}
{%codetools off}
procedure TMufasaBitmap._DrawPOHGrid();
var
b: TBox;
Expand Down Expand Up @@ -1275,7 +1275,6 @@ end;
procedure TScriptForm.POHBuilderLeftOnShow(sender: TObject);
var
combobox: TComboBox;
imgbox: TSimbaImageBox;
begin
if Login.PlayerIndex <> House.Loader.LayoutIndex then
begin
Expand Down
32 changes: 19 additions & 13 deletions optional/handlers/house/houseutils.simba
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,19 @@ end;
function EHouseObject.GetSize(): Vector3;
begin
case Self of
EHouseObject.EXIT: Result := [3,1,8];
EHouseObject.EXIT: Result := [2,2,8];
EHouseObject.PRAYER_ALTAR: Result := [2,1,4];

EHouseObject.LEFT_PORTAL, EHouseObject.RIGHT_PORTAL: Result := [0.6,1.7,7];
EHouseObject.MIDDLE_PORTAL: Result := [1.7,0.6,7];

EHouseObject.FAIRY_RING: Result := [2,2,1];
EHouseObject.OBELISK: Result := [1,1,6];
EHouseObject.OBELISK: Result := [1.3,1.3,6];
EHouseObject.SPIRIT_TREE, EHouseObject.SPIRITUAL_FAIRY_TREE: Result := [1.7,1.7,6];

EHouseObject.ANCIENT_ALTAR..EHouseObject.OCCULT_ALTAR: Result := [2,3,5];
EHouseObject.ANCIENT_ALTAR..EHouseObject.OCCULT_ALTAR: Result := [2,2,4];

EHouseObject.REPAIR_STAND: Result := [2,2,6];
EHouseObject.REPAIR_STAND: Result := [1,1,4];
EHouseObject.SERVANT_BAG: Result := [1,1,4];
EHouseObject.GLORY, EHouseObject.MYTH_CAPE: Result := [1,1,6];
EHouseObject.OAK_LECTERN..EHouseObject.MARBLE_LECTERN: Result := [0.7,0.7,4.5];
Expand All @@ -185,7 +185,7 @@ begin
EHouseObject.BASIC_JEWELLERY_BOX, EHouseObject.FANCY_JEWELLERY_BOX,
EHouseObject.ORNATE_JEWELLERY_BOX: Result := [0.7,0.7,5];

EHouseObject.CAPE_HANGER: Result := [2,2,5];
EHouseObject.CAPE_HANGER: Result := [0.5, 0.5 ,5];
end;
end;

Expand All @@ -198,9 +198,10 @@ begin
//Feel free to contribute coordinates.
//Also these are quite deorganized atm. Sorry.
case Self of
EHouseObject.EXIT, EHouseObject.PRAYER_ALTAR: Result := Point(16,16); //todo: aprox placeholder...
EHouseObject.EXIT: Result := Point(14,16); //by taze
EHouseObject.PRAYER_ALTAR: Result := Point(16,16); //todo: aprox placeholder...

EHouseObject.SPIRIT_TREE..EHouseObject.SPIRITUAL_FAIRY_TREE: Result := Point(16, 14);
EHouseObject.SPIRIT_TREE..EHouseObject.SPIRITUAL_FAIRY_TREE: Result := Point(14, 17);

EHouseObject.NEXUS: Result := Point(14,16);

Expand All @@ -222,7 +223,7 @@ begin

EHouseObject.BASIC_JEWELLERY_BOX..EHouseObject.ORNATE_JEWELLERY_BOX: Result := Point(24,24);

EHouseObject.CAPE_HANGER: Result := Point(24, 6); //todo: aprox placeholder...
EHouseObject.CAPE_HANGER: Result := Point(26, 4); //by taze
end;
end;

Expand Down Expand Up @@ -295,7 +296,8 @@ begin
case Self of
EHouseObject.EXIT:
begin
//TODO
Result.Colors += CTS2(8794487, 19, 0.14, 1.33);
Result.Colors += CTS2(3556172, 7, 0.10, 0.27);
end;
EHouseObject.PRAYER_ALTAR:
begin
Expand All @@ -315,7 +317,8 @@ begin

EHouseObject.OBELISK:
begin
//TODO
Result.Colors += CTS2(7961218, 10, 0.26, 0.13);
Result.Colors += CTS2(5000273, 10, 0.25, 0.16);
end;
EHouseObject.SPIRITUAL_FAIRY_TREE:
begin
Expand All @@ -338,12 +341,15 @@ begin
end;
EHouseObject.OCCULT_ALTAR:
begin
//TODO
Result.Colors += CTS2(9928560, 21, 0.48, 0.35);
Result.Colors += CTS2(8489868, 12, 0.14, 0.15);
Result.Colors += CTS2(6958943, 18, 0.22, 1.35);
end;

EHouseObject.REPAIR_STAND:
begin
//TODO
Result.Colors += CTS2(7107958, 24, 0.08, 0.12);
Result.Colors += CTS2(3561321, 8, 0.11, 0.18);
end;
EHouseObject.SERVANT_BAG:
begin
Expand Down Expand Up @@ -411,7 +417,7 @@ begin

EHouseObject.CAPE_HANGER:
begin
//TODO
Result.Colors += CTS2(12435141, 22, 0.10, 0.13);
end;

EHouseObject.NEXUS:
Expand Down

0 comments on commit 37b6185

Please sign in to comment.