п»ї

Dependency

How to unlock: Complete the Hole in the Wall quest (M6,3).


Tina De Luca

On the first floor near the school, in the room with the generator, you will find Tina De Luca, Bobby’s sister. She will inform you about his addiction.


Bobby’s Room

Bobby can be found in the room on the floor, located in front of the entrance to the electrical plant. Be careful when talking to him, as the dialogue is crucial and you might fail the quest with the wrong choice of words. To convince him to get clean, you need to have high Charisma. Choose one of the options (up or down), refuse to give him drugs, and avoid insulting him. If the conversation fails, you can try again.

Once you have convinced Bobby, report back to Tina to complete the quest and gain some experience. If the quest does not end, talk to Rachel in the healing facility. If you have high Charisma, you can persuade Tina to move to one of your settlements.

Alternatively, if you lack Charisma, you can insult Bobby. He will attack you, but killing him will not cancel the quest. After returning to Tina, you will receive experience and none of the inhabitants will hold it against you.

Quest rewards: experience and the option to recruit Tina as a new settler.

FAQ

Injection

What is dependency injection?

Dependency injection is a software design pattern that allows objects to receive their dependencies from an external source rather than creating them internally. This means that a class is not responsible for creating its own dependencies, but rather receives them through a constructor, a setter method, or an interface. Dependency injection promotes loose coupling between classes and makes code more maintainable and testable.

What are the benefits of using dependency injection?

Dependency injection offers several benefits, including improved code maintainability, testability, and modularity. By removing the responsibility of creating dependencies from a class, it becomes easier to modify and extend the code without affecting other parts of the system. Additionally, dependency injection allows for easier testing, as dependencies can be easily mocked or replaced with test doubles. Finally, the use of interfaces and abstraction promotes modularity, making it easier to swap out implementations or add new functionality.

What are the different types of dependency injection?

There are three main types of dependency injection: constructor injection, setter injection, and interface injection. Constructor injection involves passing dependencies into a class through its constructor, while setter injection involves setting dependencies through setter methods. Interface injection is less common and involves implementing an interface that defines the dependencies a class requires. Additionally, there is also ambient context injection, which involves passing dependencies through a global context object. Each type of dependency injection has its own pros and cons, and the choice of which one to use depends on the specific requirements of the application.

Leave a Comment