Assassin_CompoundPosion
This commit is contained in:
@@ -50,6 +50,7 @@ MonoBehaviour:
|
||||
- CardData_Basic_Dazed
|
||||
- CardData_Basic_Faint
|
||||
- CardData_Basic_Oblivion
|
||||
- CardData_Basic_CompoundPosion
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_LessRestoration
|
||||
- CardData_Basic_BattlefieldExperience
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9a4129cdd7011ca46b83d8c17d9f3623, type: 3}
|
||||
m_Name: CardData_Basic_CompoundPosion
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Continentis.MainGame.Card.CardData
|
||||
modName: Basic
|
||||
className: CompoundPoison
|
||||
displayName: Card_Basic_CompoundPoison_DisplayName
|
||||
cardRarity: 20
|
||||
cardType: 10
|
||||
keywords:
|
||||
- TargetEnemies
|
||||
cardSprite: {fileID: 21300000, guid: 38466aa09b7b3dc468a47c6ca7251524, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_CompoundPoison_FunctionText
|
||||
cardDescription:
|
||||
baseWeight: 1
|
||||
variableAttributes:
|
||||
dictionaryList:
|
||||
- Key: TargetCount
|
||||
Value: 1
|
||||
index: 0
|
||||
isKeyDuplicated: 0
|
||||
- Key: StaminaCost
|
||||
Value: 1
|
||||
index: 1
|
||||
isKeyDuplicated: 0
|
||||
- Key: ManaCost
|
||||
Value: 0
|
||||
index: 2
|
||||
isKeyDuplicated: 0
|
||||
- Key: BuffStack_Weak
|
||||
Value: 2
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
- Key: BuffStack_Corrosion
|
||||
Value: 2
|
||||
index: 4
|
||||
isKeyDuplicated: 0
|
||||
dividerPosProp: 0.5
|
||||
originalAttributes:
|
||||
dictionaryList: []
|
||||
dividerPosProp: 0.5
|
||||
runtimeCurrentAttributes:
|
||||
dictionaryList: []
|
||||
dividerPosProp: 0.5
|
||||
upgradeNode:
|
||||
sourceCard: {fileID: 0}
|
||||
isTerminalNode: 0
|
||||
isInfiniteUpgrade: 0
|
||||
maxUpgradeLevel: 0
|
||||
upgradeCards: []
|
||||
customDescriptions: []
|
||||
prefabRefs: []
|
||||
derivativeCardDataRefs:
|
||||
- CardData_Basic_Strike
|
||||
derivativeCharacterDataRefs: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 02aa8e24d61424641810e852a5d646a2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
37
Assets/Mods/Basic/Cards/Scripts/Assassin/CompoundPoison.cs
Normal file
37
Assets/Mods/Basic/Cards/Scripts/Assassin/CompoundPoison.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class CompoundPoison : CardLogicBase
|
||||
{
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
|
||||
{
|
||||
CreateCharacterBuff<Weak>(GetAttribute("BuffStack_Weak")).Apply(target, user, this);
|
||||
}),
|
||||
|
||||
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
|
||||
{
|
||||
var debuffCount = 0;
|
||||
foreach (var buff in target.combatBuffSubmodule.buffList)
|
||||
{
|
||||
if (buff.buffType == MainGame.BuffType.Negative)
|
||||
{
|
||||
debuffCount++;
|
||||
}
|
||||
}
|
||||
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack_Corrosion") * debuffCount).Apply(target, user, this);
|
||||
})
|
||||
);
|
||||
return mainGroup;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc6bf37eca5a709478bfa807d4739cea
|
||||
@@ -204,5 +204,6 @@ MonoBehaviour:
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_CompoundPosion
|
||||
hudDataRefs:
|
||||
- HUDData_Basic_Default
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
Key,English,Simplified Chinese,Traditional Chinese,Japanese,Korean,Vietnamese,Thai
|
||||
Card_Basic_Torture_DisplayName,Torture,折磨,,,,,
|
||||
Card_Basic_Torture_FunctionText,Test,抽$Attribute("DrawCardAmount")张牌,\n给予所有敌人$Attribute("MagicNumber")层腐蚀。,,,,,
|
||||
Card_Basic_Torture_FunctionText,Test Description,抽$Attribute("DrawCardAmount")张牌,\n给予所有敌人$Attribute("MagicNumber")层腐蚀。,,,,,
|
||||
Card_Basic_CompoundPoison_DisplayName,Compound Poison,混合毒药,,,,,
|
||||
Card_Basic_CompoundPoison_FunctionText,Test Description,给予$Attribute("BuffStack_Weak")层虚弱。\n目标每有一种负面效果,给予$Attribute("BuffStack_Corrosion")层腐蚀。,,,,,
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 3 and column 52.
|
Reference in New Issue
Block a user