# Repositories

## 4.0.2

Repositories has gotten better! The followoing Repository Prefabs can be removed from your scenes:

* Conditions Repository
* ItemAttribute Repository
* ItemOjbect Repository
* Loot Box Repository
* Quest Repository
* Stats Repository

A new Scriptable Object, which does NOT need to be in the scene, has been added to replace the "Repository" functionality: `GameModuleRepository`

This will be automatically created in `Assets/Game Module Objects/Resources/` and auto-populated. See the [**Repository**](/magic-pig-games/game-modules-4/important-information/required-prefabs.md) docs for more.

The **Blackboard** prefab, which is still required in scenes, now has a `ModulesHelper` class on it, which handles the `Monobehaviour` aspects that were previously handled by individual repositories.

If you have a custom [**Quest Reward Handler**](/magic-pig-games/game-modules-4/module-documentation/quests/quest-rewards/custom-quest-reward-handler.md), please add it to the **Blackboard** prefab -- it must be on the same object as `ModulesHelper`.

The methods on the previous repositories have been marked obsolete, with references to the replacement methods. Few, if any, errors should occur, until you remove the repository prefabs. They will be removed from **Game Modules 4** in a future update.

## 4.0

There are new repositories for the new modules in Game Modules 4, and all have been moved to a new location: `Assets/InfinityPBR/---Game Modules/_Repository Prefabs`

The **Items Repository** is deprecated, and will be removed in a future update. It has been replaced with the **ItemObject Repository** and **ItemAttribute Repository**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/v4-migration-tips/repositories.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
