Книга: главы собаки, стервятника, волка, медведя видны с рецептом гримуара
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bdca1bdba5
commit
555d9c9b48
+13
-5
@@ -68,7 +68,7 @@ namespace NecromancerTome
|
||||
Unlocked = _p => true
|
||||
},
|
||||
// Главы питомцев (указание 09.10): лист-чертёж модели (три вида из Blender, подписи на эсперанто) сверху, на первой
|
||||
// странице - управление, дальше - описание. Крыса - учебная модель, глава открыта сразу.
|
||||
// странице - управление, дальше - описание. Крыса - учебная модель, глава открыта сразу; прочие - с рецептом гримуара.
|
||||
new Chapter
|
||||
{
|
||||
TitleKey = "necroTomeRatTitle",
|
||||
@@ -83,7 +83,7 @@ namespace NecromancerTome
|
||||
PageKeys = new[] { "necroTomeDogP1", "necroTomeDogP2", "necroTomeDogP3" },
|
||||
Image = "@modfolder(NecromancerTome):Textures/necroTomeDog.png",
|
||||
ImageTop = true,
|
||||
Unlocked = _p => true
|
||||
Unlocked = _p => RecipeUnlocked(_p, "bookSummonZombieDog")
|
||||
},
|
||||
new Chapter
|
||||
{
|
||||
@@ -91,7 +91,7 @@ namespace NecromancerTome
|
||||
PageKeys = new[] { "necroTomeVultureP1", "necroTomeVultureP2", "necroTomeVultureP3" },
|
||||
Image = "@modfolder(NecromancerTome):Textures/necroTomeVulture.png",
|
||||
ImageTop = true,
|
||||
Unlocked = _p => true
|
||||
Unlocked = _p => RecipeUnlocked(_p, "bookSummonZombieGriffin")
|
||||
},
|
||||
new Chapter
|
||||
{
|
||||
@@ -99,7 +99,7 @@ namespace NecromancerTome
|
||||
PageKeys = new[] { "necroTomeWolfP1", "necroTomeWolfP2", "necroTomeWolfP3" },
|
||||
Image = "@modfolder(NecromancerTome):Textures/necroTomeWolf.png",
|
||||
ImageTop = true,
|
||||
Unlocked = _p => true
|
||||
Unlocked = _p => RecipeUnlocked(_p, "bookSummonZombieWolf")
|
||||
},
|
||||
new Chapter
|
||||
{
|
||||
@@ -107,10 +107,18 @@ namespace NecromancerTome
|
||||
PageKeys = new[] { "necroTomeBearP1", "necroTomeBearP2", "necroTomeBearP3" },
|
||||
Image = "@modfolder(NecromancerTome):Textures/necroTomeBear.png",
|
||||
ImageTop = true,
|
||||
Unlocked = _p => true
|
||||
Unlocked = _p => RecipeUnlocked(_p, "bookSummonZombieBear")
|
||||
},
|
||||
};
|
||||
|
||||
/// <summary>Глава питомца видна, когда игроку открыт рецепт его гримуара (указание 09.10, после проверки глав).
|
||||
/// Крыса - учебная модель, её глава открыта сразу.</summary>
|
||||
static bool RecipeUnlocked(EntityPlayerLocal _p, string _item)
|
||||
{
|
||||
Recipe r = CraftingManager.GetRecipe(_item);
|
||||
return r != null && r.IsUnlocked(_p);
|
||||
}
|
||||
|
||||
public static void Open(EntityPlayerLocal _player)
|
||||
{
|
||||
LocalPlayerUI ui = LocalPlayerUI.GetUIForPlayer(_player);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user