Skip to content

Commit

Permalink
fix: removed a duplicate anvil file in the gametabs directory(!?) and…
Browse files Browse the repository at this point in the history
… more docs fixes

Fixed the last things my automatic migration tool didn't deal with like the note tags.
There could be still some things that broke since most of the migration was automated but everything looks alright at a first glance!
  • Loading branch information
Torwent committed Feb 4, 2024
1 parent e00dae7 commit 751e9c4
Show file tree
Hide file tree
Showing 16 changed files with 63 additions and 425 deletions.
4 changes: 3 additions & 1 deletion optional/interfaces/mainscreen/anvil.simba
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ procedure Anvil.Setup;

Initializes Anvil variables.

.. note:: This is automatically called on the **Anvil** variable.
```{note}
This is automatically called on the **Anvil** variable.
```
*)
procedure TRSAnvil.Setup(); override;
begin
Expand Down
4 changes: 3 additions & 1 deletion optional/interfaces/mainscreen/fairyring.simba
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ procedure FairyRing.Setup();

Initializes TRSFairyRing variables.

.. note:: This is automatically called on the **FairyRing** variable.
```{note}
This is automatically called on the **FairyRing** variable.
```
*)
procedure TRSFairyRing.Setup(); override;
const
Expand Down
4 changes: 3 additions & 1 deletion optional/interfaces/mainscreen/furniturebuilder.simba
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ procedure FurnitureBuilder.Setup;

Initializes FurnitureBuilder variables.

.. note:: This is automatically called on the **FurnitureBuilder** variable.
```{note}
This is automatically called on the **FurnitureBuilder** variable.
```
*)
procedure TRSFurnitureBuilder.Setup(); override;
begin
Expand Down
16 changes: 12 additions & 4 deletions osr/basescript.simba
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ function TBaseScript.ShouldStop(): Boolean;

Method used to check if we reached the TBaseScript goals and it's time to stop it.

.. note:: This doesn't stop the script. This simply returns true/false when called and it's up to you to stop the script.
```{note}
This doesn't stop the script. This simply returns true/false when called and it's up to you to stop the script.
```

### Example
```pascal
Expand Down Expand Up @@ -529,7 +531,9 @@ be overriden and inherited or completely be remade for proper termination of the

This is likely required if you want to chain several scripts together.

.. note:: Consider taking a look at script_chainer.simba: https://github.com/Torwent/wasp-mini/blob/master/script_chainer.simba
```{note}
Consider taking a look at script_chainer.simba: https://github.com/Torwent/wasp-mini/blob/master/script_chainer.simba
```

### Example
```pascal
Expand Down Expand Up @@ -568,7 +572,9 @@ procedure TBaseBankScript.CountItemsLeft(Item: TRSItem);

Set's TBaseBankScript.ItemLeftAmount to be used by TBaseBankScript.ShouldHover().

.. note:: For some scripts this might need to be overriten and rewritten.
```{note}
For some scripts this might need to be overriten and rewritten.
```
*)
procedure TBaseBankScript.CountItemsLeft(item: TRSItem);
begin
Expand All @@ -586,7 +592,9 @@ It uses the amount of items left in the inventory stored by TBaseBankScript.Coun
in TBaseBankScript.ItemLeftAmount() along with the player BioHash to decide if we want to
pre-hover the bank.

.. note:: This function simply returns true/false and doesn't actualy hover the bank.
```{note}
This function simply returns true/false and doesn't actualy hover the bank.
```

### Example
```pascal
Expand Down
Loading

0 comments on commit 751e9c4

Please sign in to comment.