可导出的第一版
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class AblazeInPurgatory : CardLogicBase
|
||||
{
|
||||
public override void TargetingEffect(CharacterBase target)
|
||||
{
|
||||
card.SetAttribute("DisplayHellfireStack", card.GetAttribute("HellfireStack"));
|
||||
}
|
||||
|
||||
public override void UntargetingEffect()
|
||||
{
|
||||
card.SetAttribute("DisplayHellfireStack", card.GetAttribute("HellfireStack"));
|
||||
}
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList, ExecutionMode.Parallel, ExecutionMode.Parallel,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
Debug.Log(target.data.className + " is ablaze in purgatory!");
|
||||
|
||||
Basic_Hellfire buff = new Basic_Hellfire(card.GetAttribute("HellfireStack"));
|
||||
buff.Apply(target, user, this);
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
int offsetFromInt = user.GetAttribute("OffsetFromIntelligence");
|
||||
card.SetVariableAttribute("HellfireStack", offsetFromInt);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9785c79f83b4b9d4baa2d261f06ee45d
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bc1b860b5dd164b4a8d1213cbd2e6afa
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,16 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class HellfireBrand : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 102fb406dd495f14b9441687aebc4462
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 71a1d3135da07c74a9b6bd8f4ee79d75
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,50 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class SoulCleave : CardLogicBase
|
||||
{
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Attack>();
|
||||
AddLogicComponent<CardLogicComponent_LifeSteal>();
|
||||
}
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
int hurt = user.Attack(target, GetTargetedFinalDamage(target)).hurtDamage;
|
||||
LogicComponent<CardLogicComponent_LifeSteal>().LifeSteal(hurt);
|
||||
|
||||
Basic_Hellfire hellfireBuff = target.combatBuffSubmodule.GetBuff<Basic_Hellfire>();
|
||||
hellfireBuff?.unitedStackSubmodule.ClearAllStacks();
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
|
||||
public override int GetTargetedFinalDamage(CharacterBase target, List<string> elementalTags = null)
|
||||
{
|
||||
int damage = base.GetTargetedFinalDamage(target, elementalTags);
|
||||
Basic_Hellfire hellfireBuff = target.combatBuffSubmodule.GetBuff<Basic_Hellfire>();
|
||||
int hellfireStack = hellfireBuff != null ? hellfireBuff.unitedStackSubmodule.stackAmount : 0;
|
||||
damage += hellfireStack * 2;
|
||||
return damage;
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Attack>().SetDamage_Strike();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49fc9f9a93733cd409519d499531a199
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98f8932fb6bc2614da0d1659eed46714
|
||||
guid: 447ca0bb546708e4297099da51eb4aa2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
@@ -10,22 +10,39 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a4129cdd7011ca46b83d8c17d9f3623, type: 3}
|
||||
m_Name: CardData_Basic_SoulCleave
|
||||
m_Name: CardData_Basic_SkeletonGuardDefense
|
||||
m_EditorClassIdentifier:
|
||||
modName: Basic
|
||||
className: SoulCleave
|
||||
displayName: Card_Basic_SoulCleave_DisplayName
|
||||
cardRarity: 40
|
||||
categoryName:
|
||||
className: Defense
|
||||
displayName: Card_Basic_Defense_DisplayName
|
||||
cardRarity: 10
|
||||
cardType: 0
|
||||
tags: []
|
||||
cardSprite: {fileID: 21300000, guid: 2d851da5310713a4781f00abaa57e48e, type: 3}
|
||||
functionText: Card_Basic_SoulCleave_FunctionText
|
||||
cardDescription: '$Keyword("Strike"), $Keyword("LifeSteal"): $Attribute("LifeStealPercent",
|
||||
true, true), deal $Attribute("Damage") darkness & fire damage, it will explode
|
||||
2*stacks of Hellfire as extra damage.'
|
||||
baseWeight: 10
|
||||
keywords:
|
||||
- TargetSelf
|
||||
cardSprite: {fileID: 21300000, guid: 54336fab907a76a4095ff5607e0b86c8, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_Defense_FunctionText
|
||||
cardDescription: Card_Basic_Strike_Description
|
||||
baseWeight: 1
|
||||
variableAttributes:
|
||||
dictionaryList: []
|
||||
dictionaryList:
|
||||
- Key: Block
|
||||
Value: 15
|
||||
index: 0
|
||||
isKeyDuplicated: 0
|
||||
- Key: StaminaCost
|
||||
Value: 1
|
||||
index: 1
|
||||
isKeyDuplicated: 0
|
||||
- Key: ManaCost
|
||||
Value: 0
|
||||
index: 2
|
||||
isKeyDuplicated: 0
|
||||
- Key: TargetCount
|
||||
Value: 0
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
dividerPosProp: 0.5
|
||||
originalAttributes:
|
||||
dictionaryList: []
|
||||
@@ -40,6 +57,7 @@ MonoBehaviour:
|
||||
maxUpgradeLevel: 0
|
||||
upgradeCards: []
|
||||
customDescriptions: []
|
||||
prefabRefs: []
|
||||
prefabRefs:
|
||||
- VFX_Basic_RedImpact
|
||||
derivativeCardDataRefs: []
|
||||
derivativeCharacterDataRefs: []
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aceffe41cc487054b80de681b48dc448
|
||||
guid: 5b9c058cdf3a69d438a2b5f441680ad2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
@@ -10,21 +10,40 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a4129cdd7011ca46b83d8c17d9f3623, type: 3}
|
||||
m_Name: CardData_Basic_AblazeInPurgatory
|
||||
m_Name: CardData_Basic_SkeletonGuardIgnite
|
||||
m_EditorClassIdentifier:
|
||||
modName: Basic
|
||||
className: AblazeInPurgatory
|
||||
displayName: Card_Basic_AblazeInPurgatory_DisplayName
|
||||
cardRarity: 30
|
||||
categoryName:
|
||||
className: Ignite
|
||||
displayName: Card_Basic_Ignite_DisplayName
|
||||
cardRarity: 10
|
||||
cardType: 10
|
||||
tags: []
|
||||
cardSprite: {fileID: 21300000, guid: 28e24068cd6a78b448d1bf09241b6905, type: 3}
|
||||
functionText: Card_Basic_AblazeInPurgatory_FunctionText
|
||||
cardDescription: $Keyword("Arcane"), apply $Attribute("HellfireStack") stacks of
|
||||
Hellfire to all enemy targets.
|
||||
keywords:
|
||||
- TargetEnemies
|
||||
- Magic
|
||||
cardSprite: {fileID: 21300000, guid: 54336fab907a76a4095ff5607e0b86c8, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_Ignite_FunctionText
|
||||
cardDescription:
|
||||
baseWeight: 1
|
||||
variableAttributes:
|
||||
dictionaryList: []
|
||||
dictionaryList:
|
||||
- Key: BuffStack_Burn
|
||||
Value: 2
|
||||
index: 0
|
||||
isKeyDuplicated: 0
|
||||
- Key: StaminaCost
|
||||
Value: 1
|
||||
index: 1
|
||||
isKeyDuplicated: 0
|
||||
- Key: ManaCost
|
||||
Value: 0
|
||||
index: 2
|
||||
isKeyDuplicated: 0
|
||||
- Key: TargetCount
|
||||
Value: 1
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
dividerPosProp: 0.5
|
||||
originalAttributes:
|
||||
dictionaryList: []
|
||||
@@ -39,6 +58,7 @@ MonoBehaviour:
|
||||
maxUpgradeLevel: 0
|
||||
upgradeCards: []
|
||||
customDescriptions: []
|
||||
prefabRefs: []
|
||||
prefabRefs:
|
||||
- VFX_Basic_RedImpact
|
||||
derivativeCardDataRefs: []
|
||||
derivativeCharacterDataRefs: []
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: caca4ea5f7e78d5419005d09f3cff517
|
||||
guid: 6721d0d04ecd0d94c98318b25074bcbe
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
@@ -10,20 +10,40 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a4129cdd7011ca46b83d8c17d9f3623, type: 3}
|
||||
m_Name: CardData_Basic_HellfireBrand
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Continentis.MainGame.Card.CardData
|
||||
m_Name: CardData_Basic_SkeletonGuardSlash
|
||||
m_EditorClassIdentifier:
|
||||
modName: Basic
|
||||
className: HellfireBlast
|
||||
displayName: Card_Basic_HellfireBlast_DisplayName
|
||||
cardRarity: 0
|
||||
categoryName:
|
||||
className: Slash
|
||||
displayName: Card_Basic_Slash_DisplayName
|
||||
cardRarity: 10
|
||||
cardType: 0
|
||||
tags: []
|
||||
cardSprite: {fileID: 0}
|
||||
functionText: Card_Basic_HellfireBlast_FunctionText
|
||||
cardDescription:
|
||||
keywords:
|
||||
- TargetEnemies
|
||||
- Slash
|
||||
cardSprite: {fileID: 21300000, guid: 54336fab907a76a4095ff5607e0b86c8, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_Slash_FunctionText
|
||||
cardDescription: Card_Basic_Strike_Description
|
||||
baseWeight: 1
|
||||
variableAttributes:
|
||||
dictionaryList: []
|
||||
dictionaryList:
|
||||
- Key: Damage
|
||||
Value: 6
|
||||
index: 0
|
||||
isKeyDuplicated: 0
|
||||
- Key: StaminaCost
|
||||
Value: 1
|
||||
index: 1
|
||||
isKeyDuplicated: 0
|
||||
- Key: ManaCost
|
||||
Value: 0
|
||||
index: 2
|
||||
isKeyDuplicated: 0
|
||||
- Key: TargetCount
|
||||
Value: 1
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
dividerPosProp: 0.5
|
||||
originalAttributes:
|
||||
dictionaryList: []
|
||||
@@ -38,6 +58,7 @@ MonoBehaviour:
|
||||
maxUpgradeLevel: 0
|
||||
upgradeCards: []
|
||||
customDescriptions: []
|
||||
prefabRefs: []
|
||||
prefabRefs:
|
||||
- VFX_Basic_RedImpact
|
||||
derivativeCardDataRefs: []
|
||||
derivativeCharacterDataRefs: []
|
||||
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fbefadde068f8db40822e491f9e2732e
|
||||
guid: 3a37f85fd6e990c4ba9b67409ec40112
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
27
Assets/Mods/Basic/Cards/Scripts/General/Ignite.cs
Normal file
27
Assets/Mods/Basic/Cards/Scripts/General/Ignite.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class Ignite : CardLogicBase
|
||||
{
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
|
||||
{
|
||||
CreateCharacterBuff<Burn>(GetAttribute("BuffStack_Burn")).Apply(target, user, this);
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Mods/Basic/Cards/Scripts/General/Ignite.cs.meta
Normal file
2
Assets/Mods/Basic/Cards/Scripts/General/Ignite.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9c20c393ab72bd4fa7f3141fada3ecd
|
||||
@@ -16,8 +16,6 @@ namespace Continentis.Mods.Basic.Cards
|
||||
|
||||
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
base.PlayEffect(targetList);
|
||||
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_ParamFunction<CharacterBase>(target => user.Attack(target, GetTargetedFinalDamage(target))));
|
||||
Reference in New Issue
Block a user