Async load mod, Assassin_WoundDeterioration(unfinished)
This commit is contained in:
@@ -52,6 +52,7 @@ MonoBehaviour:
|
||||
- CardData_Basic_Oblivion
|
||||
- CardData_Basic_CompoundPosion
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_WoundDeterioration
|
||||
- CardData_Basic_LessRestoration
|
||||
- CardData_Basic_BattlefieldExperience
|
||||
- CardData_Basic_BodyAsShield
|
||||
|
||||
@@ -43,7 +43,7 @@ MonoBehaviour:
|
||||
Value: 1
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
- Key: MagicNumber
|
||||
- Key: BuffStack_Corrosion
|
||||
Value: 1
|
||||
index: 4
|
||||
isKeyDuplicated: 0
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
%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_WoundDeterioration
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Continentis.MainGame.Card.CardData
|
||||
modName: Basic
|
||||
className: WoundDeterioration
|
||||
displayName: Card_Basic_WoundDeterioration_DisplayName
|
||||
cardRarity: 20
|
||||
cardType: 20
|
||||
keywords:
|
||||
- TargetSelf
|
||||
cardSprite: {fileID: 21300000, guid: 38466aa09b7b3dc468a47c6ca7251524, type: 3}
|
||||
cardLayoutTags: []
|
||||
functionText: Card_Basic_WoundDeterioration_FunctionText
|
||||
cardDescription:
|
||||
baseWeight: 1
|
||||
variableAttributes:
|
||||
dictionaryList:
|
||||
- Key: TargetCount
|
||||
Value: 0
|
||||
index: 0
|
||||
isKeyDuplicated: 0
|
||||
- Key: StaminaCost
|
||||
Value: 0
|
||||
index: 1
|
||||
isKeyDuplicated: 0
|
||||
- Key: ManaCost
|
||||
Value: 0
|
||||
index: 2
|
||||
isKeyDuplicated: 0
|
||||
- Key: DrawCardAmount
|
||||
Value: 1
|
||||
index: 3
|
||||
isKeyDuplicated: 0
|
||||
- Key: BuffStack_WD
|
||||
Value: 1
|
||||
index: 4
|
||||
isKeyDuplicated: 0
|
||||
- Key: DamageCount
|
||||
Value: 20
|
||||
index: 5
|
||||
isKeyDuplicated: 0
|
||||
- Key: BuffStack_Corrosion
|
||||
Value: 4
|
||||
index: 6
|
||||
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: 53671f5089686bb4ea26feca7ad59b66
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -18,7 +18,7 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
if (target != user)
|
||||
{
|
||||
CreateCharacterBuff<Corrosion>(GetAttribute("MagicNumber")).Apply(target, user, this);
|
||||
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack_Corrosion")).Apply(target, user, this);
|
||||
}
|
||||
}));
|
||||
return mainGroup;
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class WoundDeterioration : CardLogicBase
|
||||
{
|
||||
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
CommandGroup mainGroup = TargetListCommandGroup(targetList,
|
||||
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
|
||||
{
|
||||
CreateCharacterBuff<Buffs.WoundDeterioration>(GetAttribute("BuffStack_WD")).Apply(target, user, this);
|
||||
}));
|
||||
return mainGroup;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 53d11ba7f91e98c46b6ff482a1809f74
|
||||
@@ -0,0 +1,34 @@
|
||||
using Continentis.MainGame;
|
||||
using Continentis.MainGame.Character;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.Mods.Basic.Buffs
|
||||
{
|
||||
public class WoundDeterioration : CharacterCombatBuffBase
|
||||
{
|
||||
public WoundDeterioration(int stack)
|
||||
{
|
||||
Initialize(BuffType.Positive, BuffDispelLevel.Basic);
|
||||
this.contentSubmodule = new ContentSubmodule(this)
|
||||
.AddParameterGetter("Stack", () => unitedStackSubmodule.stackAmount.ToString());
|
||||
this.iconSubmodule = new IconSubmodule(this);
|
||||
this.unitedStackSubmodule = new UnitedStackSubmodule(this, stack);
|
||||
//TODO: When character damage exceed 20, apply corrision
|
||||
//this.attachedCharacter.eventSubmodule.onFinishAttack.Add;
|
||||
}
|
||||
|
||||
public override bool OnBuffApply(out CharacterCombatBuffBase existingBuff)
|
||||
{
|
||||
MainGameManager.Instance.basePrefabs.GenerateInfoText(contentSubmodule.displayName, attachedCharacter.characterView);
|
||||
|
||||
if (FindExistingSameBuff(out existingBuff))
|
||||
{
|
||||
existingBuff.unitedStackSubmodule.PickHigherStack(this.unitedStackSubmodule);
|
||||
existingBuff.actionCountSubmodule.PickHigherCount(this.actionCountSubmodule);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e968713121889d49844bbeb0f96246c
|
||||
@@ -205,5 +205,6 @@ MonoBehaviour:
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_Torture
|
||||
- CardData_Basic_CompoundPosion
|
||||
- CardData_Basic_WoundDeterioration
|
||||
hudDataRefs:
|
||||
- HUDData_Basic_Default
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Key,English,Simplified Chinese,Traditional Chinese,Japanese,Korean,Vietnamese,Thai
|
||||
Buff_Basic_WoundDeterioration_DisplayName,Wound Deterioration,恶化伤口,,,,,
|
||||
Buff_Basic_WoundDeterioration_FunctionText,TODO,你单次造成至少$ParameterInt("Damage")点的伤害时,额外给予$ParameterInt("BuffStack_Corrosion")层腐蚀,,,,,
|
||||
|
Can't render this file because it contains an unexpected character in line 3 and column 84.
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b07b620f4c7256843b55609e43977ced
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,5 +1,7 @@
|
||||
Key,English,Simplified Chinese,Traditional Chinese,Japanese,Korean,Vietnamese,Thai
|
||||
Card_Basic_Torture_DisplayName,Torture,折磨,,,,,
|
||||
Card_Basic_Torture_FunctionText,Test Description,抽$Attribute("DrawCardAmount")张牌,\n给予所有敌人$Attribute("MagicNumber")层腐蚀。,,,,,
|
||||
Card_Basic_Torture_FunctionText,Test Description,抽$Attribute("DrawCardAmount")张牌,\n给予所有敌人$Attribute("BuffStack_Corrosion")层腐蚀。,,,,,
|
||||
Card_Basic_CompoundPoison_DisplayName,Compound Poison,混合毒药,,,,,
|
||||
Card_Basic_CompoundPoison_FunctionText,Test Description,给予$Attribute("BuffStack_Weak")层虚弱。\n目标每有一种负面效果,给予$Attribute("BuffStack_Corrosion")层腐蚀。,,,,,
|
||||
Card_Basic_WoundDeterioration_DisplayName,Compound Poison,恶化伤口,,,,,
|
||||
Card_Basic_WoundDeterioration_FunctionText,Test Description,单次造成至少$Attribute("DamageCount")点伤害时,额外给予$Attribute("BuffStack_Corrosion")层腐蚀。,,,,,
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 3 and column 64.
|
Reference in New Issue
Block a user