Good fire skele (#1680)
* Revert "fire magic bad skele (#1679)"
This reverts commit b130d8aeec.
* skelehehehe
* kit conversation
This commit is contained in:
27
Content.Shared/_CP14/Skill/Restrictions/SpeciesBlacklist.cs
Normal file
27
Content.Shared/_CP14/Skill/Restrictions/SpeciesBlacklist.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Content.Shared._CP14.Skill.Prototypes;
|
||||
using Content.Shared.Humanoid;
|
||||
using Content.Shared.Humanoid.Prototypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared._CP14.Skill.Restrictions;
|
||||
|
||||
public sealed partial class SpeciesBlacklist : CP14SkillRestriction
|
||||
{
|
||||
[DataField(required: true)]
|
||||
public ProtoId<SpeciesPrototype> Species = new();
|
||||
|
||||
public override bool Check(IEntityManager entManager, EntityUid target, CP14SkillPrototype skill)
|
||||
{
|
||||
if (!entManager.TryGetComponent<HumanoidAppearanceComponent>(target, out var appearance))
|
||||
return false;
|
||||
|
||||
return appearance.Species != Species;
|
||||
}
|
||||
|
||||
public override string GetDescription(IEntityManager entManager, IPrototypeManager protoManager)
|
||||
{
|
||||
var species = protoManager.Index(Species);
|
||||
|
||||
return Loc.GetString("cp14-skill-req-notspecies", ("name", Loc.GetString(species.Name)));
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
cp14-skill-req-prerequisite = Skill "{$name}" must be learned
|
||||
cp14-skill-req-species = You must be the race of “{$name}”
|
||||
cp14-skill-req-notspecies = You must not be the race of “{$name}”
|
||||
cp14-skill-req-researched = A study needs to be done on the research table
|
||||
cp14-skill-req-impossible = Unable to explore during a round at the current moment
|
||||
cp14-skill-req-god-follower-percentage = The number of your followers should be more than {$count}%
|
||||
@@ -4,4 +4,5 @@ cp14-species-name-dwarf = Dwarf
|
||||
cp14-species-name-elf = Elf
|
||||
cp14-species-name-goblin = Goblin
|
||||
cp14-species-name-silva = Silva
|
||||
cp14-species-name-carcat = Carcat
|
||||
cp14-species-name-carcat = Carcat
|
||||
cp14-species-name-skeleton = Skeleton
|
||||
@@ -1,5 +1,6 @@
|
||||
cp14-skill-req-prerequisite = Навык "{$name}" должен быть изучен
|
||||
cp14-skill-req-species = Вы должны быть расы "{$name}"
|
||||
cp14-skill-req-notspecies = Вы не должны быть расы "{$name}"
|
||||
cp14-skill-req-researched = Необходимо провести исследование на исследовательском столе
|
||||
cp14-skill-req-impossible = Невозможно изучить во время раунда на текущий момент
|
||||
cp14-skill-req-god-follower-percentage = Количество ваших последователей должно быть больше {$count}%
|
||||
@@ -4,4 +4,5 @@ cp14-species-name-dwarf = Дварф
|
||||
cp14-species-name-elf = Эльф
|
||||
cp14-species-name-goblin = Гоблин
|
||||
cp14-species-name-silva = Сильва
|
||||
cp14-species-name-carcat = Каркат
|
||||
cp14-species-name-carcat = Каркат
|
||||
cp14-species-name-skeleton = Скелет
|
||||
@@ -1,6 +1,6 @@
|
||||
- type: entity
|
||||
id: CP14MobUndeadSkeletonDemiplaneT2
|
||||
parent: CP14MobUndeadSkeletonDemiplaneT1
|
||||
parent: CP14MobUndeadSkeletonDemiplaneT1
|
||||
name: skeleton
|
||||
abstract: true
|
||||
components:
|
||||
@@ -92,9 +92,12 @@
|
||||
- CP14MobSkeletonWizardT2
|
||||
- type: CP14MagicEnergyContainer
|
||||
magicAlert: CP14MagicEnergy
|
||||
maxEnergy: 100
|
||||
energy: 100
|
||||
maxEnergy: 200
|
||||
energy: 200
|
||||
unsafeSupport: true
|
||||
- type: CP14MagicEnergyDraw
|
||||
energy: 1
|
||||
delay: 5
|
||||
- type: PassiveDamage
|
||||
allowedStates:
|
||||
- Alive
|
||||
@@ -104,27 +107,21 @@
|
||||
- type: CP14SkillStorage
|
||||
skillPoints:
|
||||
Memory:
|
||||
max: 5
|
||||
max: 4
|
||||
freeLearnedSkills:
|
||||
- SwordMastery
|
||||
- RapierMastery
|
||||
- SkimitarMastery
|
||||
- HydrosophistryT1
|
||||
- HydrosophistryT2
|
||||
- MetamagicT1
|
||||
- MetamagicT2
|
||||
- PyrokineticT1
|
||||
- CP14ActionSpellManaConsume
|
||||
- CP14ActionSpellManaGift
|
||||
- CP14ActionSpellManaConsumeElf
|
||||
- CP14ActionSpellManaGiftElf
|
||||
- CP14ActionSpellMagicSplitting
|
||||
- CP14ActionSpellManaTrance
|
||||
availableSkillTrees:
|
||||
- Hydrosophistry
|
||||
- Illusion
|
||||
- Metamagic
|
||||
- Electromancy
|
||||
- Athletic
|
||||
- MartialArts
|
||||
- Craftsmanship
|
||||
- type: entity
|
||||
id: CP14MobUndeadSkeletonBardT2
|
||||
parent: CP14MobUndeadSkeletonDemiplaneT2
|
||||
|
||||
@@ -53,27 +53,22 @@
|
||||
- type: CP14SkillStorage
|
||||
skillPoints:
|
||||
Memory:
|
||||
max: 5
|
||||
max: 4
|
||||
freeLearnedSkills:
|
||||
- SwordMastery
|
||||
- RapierMastery
|
||||
- SkimitarMastery
|
||||
- MetamagicT1
|
||||
- MetamagicT2
|
||||
- HydrosophistryT1
|
||||
- HydrosophistryT2
|
||||
- PyrokineticT1
|
||||
- PyrokineticT2
|
||||
- CP14ActionSpellManaConsume
|
||||
- CP14ActionSpellManaGift
|
||||
- CP14ActionSpellManaConsumeElf
|
||||
- CP14ActionSpellManaGiftElf
|
||||
- CP14ActionSpellMagicSplitting
|
||||
- CP14ActionSpellManaTrance
|
||||
availableSkillTrees:
|
||||
- Hydrosophistry
|
||||
- Illusion
|
||||
- Metamagic
|
||||
- Electromancy
|
||||
- Athletic
|
||||
- MartialArts
|
||||
- Craftsmanship
|
||||
- type: Loadout
|
||||
prototypes:
|
||||
- CP14MobSkeletonWizardTownRaid
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: HealingT1
|
||||
- !type:SpeciesBlacklist
|
||||
species: CP14Skeleton
|
||||
|
||||
- type: cp14Skill
|
||||
id: CP14ActionSpellPlantGrowth
|
||||
@@ -98,6 +100,8 @@
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: HealingT2
|
||||
- !type:SpeciesBlacklist
|
||||
species: CP14Skeleton
|
||||
|
||||
- type: cp14Skill
|
||||
id: CP14ActionSpellCureWounds
|
||||
@@ -112,6 +116,8 @@
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: HealingT2
|
||||
- !type:SpeciesBlacklist
|
||||
species: CP14Skeleton
|
||||
|
||||
# T3
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: PyrokineticT1
|
||||
- !type:SpeciesBlacklist
|
||||
species: CP14Skeleton
|
||||
|
||||
- type: cp14Skill
|
||||
id: CP14ActionSpellHeat
|
||||
@@ -102,6 +104,8 @@
|
||||
restrictions:
|
||||
- !type:NeedPrerequisite
|
||||
prerequisite: PyrokineticT2
|
||||
- !type:SpeciesBlacklist
|
||||
species: CP14Skeleton
|
||||
|
||||
- type: cp14Skill
|
||||
id: CP14ActionSpellFirewave
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
- type: species
|
||||
id: CP14Skeleton
|
||||
name: cp14-species-name-human
|
||||
name: cp14-species-name-skeleton
|
||||
roundStart: false
|
||||
prototype: CP14BaseMobSkeleton
|
||||
sprites: CP14MobSkeletonSprites
|
||||
|
||||
Reference in New Issue
Block a user