Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Update links (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Abbysssal <55982389+Abbysssal@users.noreply.github.com>
  • Loading branch information
Chasmical and Chasmical authored Feb 8, 2022
1 parent 74a9489 commit e38bab3
Show file tree
Hide file tree
Showing 16 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions website/blog/2021-08-18-roguelibs-v3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: RogueLibs v3.1.0 released!
author: Abbysssal
author_title: Creator of RogueLibs
author_url: https://github.com/Abbysssal
author_image_url: https://avatars.githubusercontent.com/u/55982389?height=200&width=200
author_url: https://github.com/SugarBarrel
author_image_url: https://github.com/SugarBarrel.png
tags: [roguelibs, release]
description: Completely replaced the vanilla localization system.
image: https://i.imgur.com/XaNGCx7.png
Expand Down Expand Up @@ -67,7 +67,7 @@ Speaking of translations... **The vanilla translations are terrible**. I'm not s

And that's why RogueLibs will use community translations instead of official ones.

Feel free to contribute by checking the localization files yourself and making any necessary changes. The localization files are located [in here](https://github.com/Abbysssal/RogueLibs/tree/main/RogueLibsCore/Resources). See more info on contributing to the project [here](https://github.com/Abbysssal/RogueLibs/blob/main/.github/CONTRIBUTING.md).
Feel free to contribute by checking the localization files yourself and making any necessary changes. The localization files are located [in here](https://github.com/SugarBarrel/RogueLibs/tree/main/RogueLibsCore/Resources). See more info on contributing to the project [here](https://github.com/SugarBarrel/RogueLibs/blob/main/.github/CONTRIBUTING.md).

### Live Reloading

Expand Down
6 changes: 3 additions & 3 deletions website/blog/2021-08-31-what-i-hate-about-sor.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: What I hate about SoR
author: Abbysssal
author_title: Creator of RogueLibs
author_url: https://github.com/Abbysssal
author_image_url: https://avatars.githubusercontent.com/u/55982389?height=200&width=200
author_url: https://github.com/SugarBarrel
author_image_url: https://github.com/SugarBarrel.png
tags: [blog, sor2]
description: The code is really hard and wet.
hide_table_of_contents: false
Expand Down Expand Up @@ -52,7 +52,7 @@ For example, `Unlock` has three fields: `unavailable`, `onlyInCharacterCreation`

![unavailable, onlyInCharacterCreation and freeItem fields](https://imgur.com/gjnxvNM.png)

I spent **dozens of hours** converting that kind of system into something more maintainable: `Available`, `AvailableInCC` and `AvailableInItemTeleporter` - properties that you can find in RogueLibs. And even after that, [there still were issues](https://github.com/Abbysssal/RogueLibs/issues/40). *I'm bad at discrete mathematics, that's why I had a hard time doing that.*
I spent **dozens of hours** converting that kind of system into something more maintainable: `Available`, `AvailableInCC` and `AvailableInItemTeleporter` - properties that you can find in RogueLibs. And even after that, [there still were issues](https://github.com/SugarBarrel/RogueLibs/issues/40). *I'm bad at discrete mathematics, that's why I had a hard time doing that.*

### Hard code

Expand Down
6 changes: 3 additions & 3 deletions website/blog/2022-01-30/roguelibs-v3.5.0-beta.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: RogueLibs v3.5.0 enters beta
author: Abbysssal
author_title: Creator of RogueLibs
author_url: https://github.com/Abbysssal
author_image_url: https://avatars.githubusercontent.com/u/55982389?height=200&width=200
author_url: https://github.com/SugarBarrel
author_image_url: https://github.com/SugarBarrel.png
tags: [roguelibs]
description: Information about the v3.5.0-beta
image: https://i.imgur.com/XaNGCx7.png
hide_table_of_contents: false
---

Today RogueLibs v3.5.0 enters a long beta, because there's a huge list of stuff that needs to be done before the release, mainly adding new custom interactions without adding more patches. You'll be able to download the beta version on [RogueLibs' releases page](https://github.com/Abbysssal/RogueLibs/releases).
Today RogueLibs v3.5.0 enters a long beta, because there's a huge list of stuff that needs to be done before the release, mainly adding new custom interactions without adding more patches. You'll be able to download the beta version on [RogueLibs' releases page](https://github.com/SugarBarrel/RogueLibs/releases).

Just like the localization system in v3.1.0, v3.5.0 will completely replace the vanilla interactions system. The original code in these places is absolutely awful and inconsistent. So, we'll have to rewrite every single vanilla interaction to be moddable.

Expand Down
4 changes: 2 additions & 2 deletions website/docs/dev/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then go to `BepInEx/core` in the game's root and grab these too:
- **`BepInEx.dll`** and **`BepInEx.xml`**.
- *`0Harmony.dll` and `0Harmony.xml` - in case you want to transpile-patch or do the patching yourself.*

**[Download the latest RogueLibs version](https://github.com/Abbysssal/RogueLibs/releases/latest).**
**[Download the latest RogueLibs version](https://github.com/SugarBarrel/RogueLibs/releases/latest).**

You'll need only two files: **`RogueLibsCore.dll` and `RogueLibsCore.xml`**. Put them in `Libraries` too:

Expand Down Expand Up @@ -189,4 +189,4 @@ namespace MyCoolMod
}
}
}
```
```
4 changes: 2 additions & 2 deletions website/docs/dev/hooks/hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ If you want to attach hooks to instances right when they are initialized, use [H
Custom classes (`CustomItem`, `CustomTrait`, `CustomEffect`, `CustomAbility` and others) are hooks, by the way:

:::info
See custom classes' implementation in the [RogueLibs' source code](https://github.com/Abbysssal/RogueLibs/tree/main/RogueLibsCore/Hooks).
See custom classes' implementation in the [RogueLibs' source code](https://github.com/SugarBarrel/RogueLibs/tree/main/RogueLibsCore/Hooks).
:::

import CodeSnippet from '@site/src/components/CodeSnippet';
Expand All @@ -98,4 +98,4 @@ See the combinable item example [here](../items/combinable-items#examples).
<CodeSnippet>{SpiceRack}</CodeSnippet>

</TabItem>
</Tabs>
</Tabs>
2 changes: 1 addition & 1 deletion website/docs/dev/items/create-item.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class MyCustomItem : CustomItem
```

:::tip Pro-tip: String consts
Use static types with string consts, like `RogueCategories` and `ItemTypes`. This way you won't make a typo. Typos can be critical sometimes, since neither the game nor RogueLibs track all existing item categories *([although it's an interesting idea, maybe I'll do something like that](https://github.com/Abbysssal/RogueLibs/issues/26))*.
Use static types with string consts, like `RogueCategories` and `ItemTypes`. This way you won't make a typo. Typos can be critical sometimes, since neither the game nor RogueLibs track all existing item categories *([although it's an interesting idea, maybe I'll do something like that](https://github.com/SugarBarrel/RogueLibs/issues/26))*.
:::

## Initialization {#initialization}
Expand Down
6 changes: 3 additions & 3 deletions website/docs/dev/unlocks/overriding-behavior.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public virtual Sprite GetImage() => (IsUnlocked || Unlock.nowAvailable)
```

:::tip Pro-tip
You can see for yourself how these methods are implemented in [RogueLibs' source code](https://github.com/Abbysssal/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/UnlockWrapper.cs).
You can see for yourself how these methods are implemented in [RogueLibs' source code](https://github.com/SugarBarrel/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/UnlockWrapper.cs).
:::

### `DisplayedUnlock`
Expand Down Expand Up @@ -101,7 +101,7 @@ public virtual string GetFancyDescription()
```

:::tip Pro-tip
You can see for yourself how these methods are implemented in [RogueLibs' source code](https://github.com/Abbysssal/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/DisplayedUnlock.cs).
You can see for yourself how these methods are implemented in [RogueLibs' source code](https://github.com/SugarBarrel/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/DisplayedUnlock.cs).
:::

## Examples {#examples}
Expand Down Expand Up @@ -212,7 +212,7 @@ public class RandomItemsButton : ItemUnlock
</TabItem>
<TabItem value="categories">

So, you want to make categories, like in [aToM](https://github.com/Abbysssal/aToM)? Here you go!
So, you want to make categories, like in [aToM](https://github.com/SugarBarrel/aToM)? Here you go!
```csharp title="MyCategory.cs"
public class MyCategory : MutatorUnlock
Expand Down
2 changes: 1 addition & 1 deletion website/docs/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ThemedImage from '@theme/ThemedImage';

- <span style={{fontSize: "1.2em"}}>

Because it's really easy to use! Just check out some examples in [here](https://github.com/Abbysssal/RogueLibs/tree/main/RogueLibsCore.Test/Tests).
Because it's really easy to use! Just check out some examples in [here](https://github.com/SugarBarrel/RogueLibs/tree/main/RogueLibsCore.Test/Tests).

</span>

Expand Down
4 changes: 2 additions & 2 deletions website/docs/user/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ Click **OK** and run the game through Steam.
RogueLibs v3.x.x was released very recently and not all mods use it at the moment.
:::

**[Download the latest RogueLibs version](https://github.com/Abbysssal/RogueLibs/releases/latest)**
**[Download the latest RogueLibs version](https://github.com/SugarBarrel/RogueLibs/releases/latest)**

You need to download only two files: `RogueLibsCore.dll` and `RogueLibsPatcher.dll`.

Expand All @@ -363,7 +363,7 @@ The directory is called **`patchers`**, it's different from **`plugins`**.
RogueLibs v2.x.x is outdated and is not compatible with new mods!
:::

**[Download the latest RogueLibs version](https://github.com/Abbysssal/RogueLibs/releases/tag/v2.2-pre.2)**
**[Download the latest RogueLibs version](https://github.com/SugarBarrel/RogueLibs/releases/tag/v2.2-pre.2)**

You need to download only one file - `RogueLibs.dll`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
- **`BepInEx.dll`** и **`BepInEx.xml`**.
- *`0Harmony.dll` и `0Harmony.xml` - на случай если вы будете транспилировать методы или патчить напрямую через Harmony.*

**[Скачайте последнюю версию RogueLibs](https://github.com/Abbysssal/RogueLibs/releases/latest).**
**[Скачайте последнюю версию RogueLibs](https://github.com/SugarBarrel/RogueLibs/releases/latest).**

Вам понадобится только два файла: **`RogueLibsCore.dll` и `RogueLibsCore.xml`**. Положите их в `Libraries` тоже:

Expand Down Expand Up @@ -189,4 +189,4 @@ namespace MyCoolMod
}
}
}
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ foreach (MyCustomHook hook in item.GetHooks<MyCustomHook>())
Кстати, кастомные классы (`CustomItem`, `CustomTrait`, `CustomEffect`, `CustomAbility` и другие) тоже хуки:

:::info
Смотрите реализацию кастомных классов в [исходном коде RogueLibs](https://github.com/Abbysssal/RogueLibs/tree/main/RogueLibsCore/Hooks).
Смотрите реализацию кастомных классов в [исходном коде RogueLibs](https://github.com/SugarBarrel/RogueLibs/tree/main/RogueLibsCore/Hooks).
:::

import CodeSnippet from '@site/src/components/CodeSnippet';
Expand All @@ -98,4 +98,4 @@ import SpiceRack from '!!raw-loader!@site/../RogueLibsCore.Test/Tests/Items/Spic
<CodeSnippet>{SpiceRack}</CodeSnippet>

</TabItem>
</Tabs>
</Tabs>
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class MyCustomItem : CustomItem
```

:::tip Совет от профи: Строковые константы
Используйте статические классы со строковыми константами, такие как `RogueCategories` и `ItemTypes`. Таким образом вы не допустите опечаток. Опечатки иногда могут быть критичными, ведь ни игра, ни RogueLibs не следят за всеми существующими в игре категориями *([однако, это довольно интересная идея, может я сделаю что-то подобное](https://github.com/Abbysssal/RogueLibs/issues/26))*.
Используйте статические классы со строковыми константами, такие как `RogueCategories` и `ItemTypes`. Таким образом вы не допустите опечаток. Опечатки иногда могут быть критичными, ведь ни игра, ни RogueLibs не следят за всеми существующими в игре категориями *([однако, это довольно интересная идея, может я сделаю что-то подобное](https://github.com/SugarBarrel/RogueLibs/issues/26))*.
:::

## Инициализация {#initialization}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public virtual Sprite GetImage() => (IsUnlocked || Unlock.nowAvailable)
```

:::tip Совет от профи
Вы можете посмотреть как эти методы реализованы в [исходном коде RogueLibs](https://github.com/Abbysssal/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/UnlockWrapper.cs).
Вы можете посмотреть как эти методы реализованы в [исходном коде RogueLibs](https://github.com/SugarBarrel/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/UnlockWrapper.cs).
:::

### `DisplayedUnlock`
Expand Down Expand Up @@ -101,7 +101,7 @@ public virtual string GetFancyDescription()
```

:::tip Совет от профи
Вы можете посмотреть как эти методы реализованы в [исходном коде RogueLibs](https://github.com/Abbysssal/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/DisplayedUnlock.cs).
Вы можете посмотреть как эти методы реализованы в [исходном коде RogueLibs](https://github.com/SugarBarrel/RogueLibs/blob/main/RogueLibsCore/Hooks/Unlocks/DisplayedUnlock.cs).
:::

## Примеры {#examples}
Expand Down Expand Up @@ -212,7 +212,7 @@ public class RandomItemsButton : ItemUnlock
</TabItem>
<TabItem value="categories">

Ну что ж, хотите сделать категории, как в [aToM](https://github.com/Abbysssal/aToM)? Вот!
Ну что ж, хотите сделать категории, как в [aToM](https://github.com/SugarBarrel/aToM)? Вот!
```csharp title="MyCategory.cs"
public class MyCategory : MutatorUnlock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import ThemedImage from '@theme/ThemedImage';

- <span style={{fontSize: "1.2em"}}>

Потому что его очень легко использовать! Посмотрите на пару примеров вот [здесь](https://github.com/Abbysssal/RogueLibs/tree/main/RogueLibsCore.Test/Tests).
Потому что его очень легко использовать! Посмотрите на пару примеров вот [здесь](https://github.com/SugarBarrel/RogueLibs/tree/main/RogueLibsCore.Test/Tests).

</span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ pwd
v3.x.x был выпущен совсем недавно и ещё не все моды перешли на него.
:::

**[Скачайте последнюю версию RogueLibs](https://github.com/Abbysssal/RogueLibs/releases/latest)**
**[Скачайте последнюю версию RogueLibs](https://github.com/SugarBarrel/RogueLibs/releases/latest)**

Вам надо скачать только два файла: `RogueLibsCore.dll` и `RogueLibsPatcher.dll`.

Expand All @@ -363,7 +363,7 @@ v3.x.x был выпущен совсем недавно и ещё не все
RogueLibs v2.x.x уже устарел и несовместим с новыми модами!
:::

**[Скачайте последнюю версию RogueLibs](https://github.com/Abbysssal/RogueLibs/releases/tag/v2.2-pre.2)**
**[Скачайте последнюю версию RogueLibs](https://github.com/SugarBarrel/RogueLibs/releases/tag/v2.2-pre.2)**

Вам надо скачать только один файл - `RogueLibs.dll`.

Expand Down
4 changes: 2 additions & 2 deletions website/i18n/ru/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
},
"link.item.label.GitHub": {
"message": "GitHub",
"description": "The label of footer link with label=GitHub linking to https://github.com/Abbysssal/RogueLibs"
"description": "The label of footer link with label=GitHub linking to https://github.com/SugarBarrel/RogueLibs"
},
"copyright": {
"message": "Copyright © 2021 RogueLibs. Built with Docusaurus.",
"description": "The footer copyright"
}
}
}

0 comments on commit e38bab3

Please sign in to comment.