This commit is contained in:
SoulliesOfficial
2025-12-13 23:47:42 -05:00
parent 467e385991
commit c260d0740c
4 changed files with 6 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ namespace Continentis.Mods.Basic.Buffs
this.unitedStackSubmodule = new UnitedStackSubmodule(this, stack); this.unitedStackSubmodule = new UnitedStackSubmodule(this, stack);
this.eventSubmodule = new EventSubmodule(this); this.eventSubmodule = new EventSubmodule(this);
this.eventSubmodule.onActionStart.Add("Burn", new PrioritizedAction(OnActionStart)); this.eventSubmodule.onActionEnd.Add("Burn", new PrioritizedAction(OnActionEnd));
this.eventSubmodule.onAfterPlayCard.Add("Burn", new PrioritizedAction<CardInstance, List<CharacterBase>>(OnAfterPlayCard)); this.eventSubmodule.onAfterPlayCard.Add("Burn", new PrioritizedAction<CardInstance, List<CharacterBase>>(OnAfterPlayCard));
} }
@@ -38,7 +38,7 @@ namespace Continentis.Mods.Basic.Buffs
return true; return true;
} }
private void OnActionStart() private void OnActionEnd()
{ {
unitedStackSubmodule.ReduceStack(1); unitedStackSubmodule.ReduceStack(1);
iconSubmodule.Update(); iconSubmodule.Update();

View File

@@ -38,7 +38,6 @@ namespace Continentis.Mods.Basic.Buffs
private void OnActionStart() private void OnActionStart()
{ {
Debug.Log($"Corrosion deals damage to {attachedCharacter.data.displayName}");
sourceCharacter.Attack(attachedCharacter, unitedStackSubmodule.stackAmount, null, false, true); sourceCharacter.Attack(attachedCharacter, unitedStackSubmodule.stackAmount, null, false, true);
unitedStackSubmodule.ReduceStack(1); unitedStackSubmodule.ReduceStack(1);
iconSubmodule.Update(); iconSubmodule.Update();

View File

@@ -19,7 +19,7 @@ At the beginning of your action, stack is halved (at least 1).","受到攻击后
Khi bắt đầu hành động, số tầng giảm một nửa (tối thiểu giảm 1).","หลังจากถูกโจมตี, ได้รับความเสียหายเท่ากับจำนวนชั้น Khi bắt đầu hành động, số tầng giảm một nửa (tối thiểu giảm 1).","หลังจากถูกโจมตี, ได้รับความเสียหายเท่ากับจำนวนชั้น
เมื่อเริ่มการกระทำของคุณ, จำนวนชั้นลดลงครึ่งหนึ่ง (ลดลงอย่างน้อย 1)" เมื่อเริ่มการกระทำของคุณ, จำนวนชั้นลดลงครึ่งหนึ่ง (ลดลงอย่างน้อย 1)"
Buff_Basic_Burn_DisplayName,Burn,灼烧,灼燒,火傷,화상,Bỏng,เผาผลาญ Buff_Basic_Burn_DisplayName,Burn,灼烧,灼燒,火傷,화상,Bỏng,เผาผลาญ
Buff_Basic_Burn_FunctionText,"After you play a card, receive damage equals to the stack, its stack reduce 1 when your action starts.",打出一张牌后,并受到等于其层数的伤害。行动开始层数减少1。,打出一張牌後堆疊層數減少30%至少減少1並受到等於減少層數的傷害。,カードをプレイした後、層数が30%最低1減少し、減少量に等しいダメージを受ける。,"카드를 낼 때마다 중첩 수가 30%(최소 1) 감소하고, 감소한 만큼 피해를 입습니다.","Sau khi đánh bài, giảm 30% số tầng (tối thiểu 1), và chịu sát thương bằng số tầng đã giảm.","หลังจากเล่นการ์ด, ลดจำนวนชั้นลง 30% (อย่างน้อย 1), และได้รับความเสียหายเท่ากับจำนวนชั้นที่ลดลง" Buff_Basic_Burn_FunctionText,"After you play a card, receive damage equals to the stack, its stack reduce 1 when your action ends.",打出一张牌后,并受到等于其层数的伤害。行动结束层数减少1。,,,,,
Buff_Basic_Corrosion_DisplayName,Corrosion,腐蚀,腐蝕,腐食,부식,Ăn Mòn,กัดกร่อน Buff_Basic_Corrosion_DisplayName,Corrosion,腐蚀,腐蝕,腐食,부식,Ăn Mòn,กัดกร่อน
Buff_Basic_Corrosion_FunctionText,"At the beginning of your action, gain damage equals to its stack, then stack is reduced by 1.",在你的行动开始时,获得等于其堆叠层数的伤害,然后其堆叠层数减少 1。,在你的行動開始時,獲得等於其堆疊層數的傷害,然後其堆疊層數減少 1。,自身のアクション開始時、層数に等しいダメージを受け、層数を1減らす。,행동 시작 시 중첩 수만큼 피해를 입고 중첩 수가 1 감소합니다.,"Khi bắt đầu hành động, chịu sát thương bằng số tầng, sau đó giảm 1 tầng.","เมื่อเริ่มการกระทำของคุณ, ได้รับความเสียหายเท่ากับจำนวนชั้น, จากนั้นลดจำนวนชั้นลง 1" Buff_Basic_Corrosion_FunctionText,"At the beginning of your action, gain damage equals to its stack, then stack is reduced by 1.",在你的行动开始时,获得等于其堆叠层数的伤害,然后其堆叠层数减少 1。,在你的行動開始時,獲得等於其堆疊層數的傷害,然後其堆疊層數減少 1。,自身のアクション開始時、層数に等しいダメージを受け、層数を1減らす。,행동 시작 시 중첩 수만큼 피해를 입고 중첩 수가 1 감소합니다.,"Khi bắt đầu hành động, chịu sát thương bằng số tầng, sau đó giảm 1 tầng.","เมื่อเริ่มการกระทำของคุณ, ได้รับความเสียหายเท่ากับจำนวนชั้น, จากนั้นลดจำนวนชั้นลง 1"
Buff_Basic_Firm_DisplayName,Firm,坚韧,堅韌,強靭,인내,Kiên Định,ความอดทน Buff_Basic_Firm_DisplayName,Firm,坚韧,堅韌,強靭,인내,Kiên Định,ความอดทน
1 Key English Simplified Chinese Traditional Chinese Japanese Korean Vietnamese Thai
19 Buff_Basic_Firm_FunctionTextPos Gain $ParameterInt("Stack") more block from cards. 从卡牌中获得的格挡增加$ParameterInt("Stack")点。 從卡牌中獲得的格擋增加$ParameterInt("Stack")點。 カードによるブロック獲得量が$ParameterInt("Stack")点増加する。 카드로 얻는 방어도가 $ParameterInt("Stack") 증가합니다. Giáp nhận được từ lá bài tăng $ParameterInt("Stack") điểm. การป้องกันที่ได้รับจากการ์ดเพิ่มขึ้น $ParameterInt("Stack") หน่วย
20 Buff_Basic_Firm_FunctionTextNeg Gain $ParameterAbsInt("Stack") less block from cards. 从卡牌中获得的格挡减少$ParameterAbsInt("Stack")点。 從卡牌中獲得的格擋減少$ParameterAbsInt("Stack")點。 カードによるブロック獲得量が$ParameterAbsInt("Stack")点減少する。 카드로 얻는 방어도가 $ParameterAbsInt("Stack") 감소합니다. Giáp nhận được từ bài giảm $ParameterAbsInt("Stack") điểm. การป้องกันที่ได้รับจากการ์ดลดลง $ParameterAbsInt("Stack") หน่วย
21 Buff_Basic_Freeze_DisplayName Freeze 冻结 凍結 凍結 빙결 Đóng Băng แช่แข็ง
22 Buff_Basic_Freeze_FunctionText Reduce Speed by $ParameterInt("Count"), also reduce Dodge Gain by $ParameterInt("Stack")% for $ParameterInt("Count") actions. 将速度降低$ParameterInt("Count")点,同时将 闪避获得降低$ParameterInt("Stack")%,持续$ParameterInt("Count")次行动。 將速度降低$ParameterInt("Count")點,同時將閃避獲得降低$ParameterInt("Stack")%,持續$ParameterInt("Count")次行動。 $ParameterInt("Count")回のアクションの間、速度が$ParameterInt("Count")低下し、回避獲得量が$ParameterInt("Stack")%低下する。 $ParameterInt("Count")회 행동 동안 속도가 $ParameterInt("Count") 감소하고 회피 획득량이 $ParameterInt("Stack")% 감소합니다. Tốc độ giảm $ParameterInt("Count") điểm, và Tỷ lệ Nhận Né Tránh giảm $ParameterInt("Stack")% trong $ParameterInt("Count") hành động. ความเร็วลดลง $ParameterInt("Count") หน่วย และการได้รับค่าหลบหลีกลดลง $ParameterInt("Stack")% เป็นเวลา $ParameterInt("Count") การกระทำ
23 Buff_Basic_Nimble_DisplayName Nimble 灵巧 靈巧 機敏 민첩 Khéo Léo ความคล่องแคล่ว
24 Buff_Basic_Nimble_FunctionTextPos Gain $ParameterInt("Stack") more dodge from cards. 从卡牌中获得的闪避增加$ParameterInt("Stack")点。 從卡牌中獲得的閃避增加$ParameterInt("Stack")點。 カードによる回避獲得量が$ParameterInt("Stack")点増加する。 카드로 얻는 회피가 $ParameterInt("Stack") 증가합니다. Né Tránh nhận được từ lá bài tăng $ParameterInt("Stack") điểm. การหลบหลีกที่ได้รับจากการ์ดเพิ่มขึ้น $ParameterInt("Stack") หน่วย
25 Buff_Basic_Nimble_FunctionTextNeg Gain $ParameterAbsInt("Stack") less dodge from cards. 从卡牌中获得的闪避减少$ParameterAbsInt("Stack")点。 從卡牌中獲得的閃避減少$ParameterAbsInt("Stack")點。 カードによる回避獲得量が$ParameterAbsInt("Stack")点減少する。 카드로 얻는 회피가 $ParameterAbsInt("Stack") 감소합니다. Né Tránh nhận được từ bài giảm $ParameterAbsInt("Stack") điểm. การหลบหลีกที่ได้รับจากการ์ดลดลง $ParameterAbsInt("Stack") หน่วย

View File

@@ -222,12 +222,11 @@ namespace Continentis.MainGame.Combat
CommandQueueManager.Instance.AddCommand(new Cmd_Function(() => CommandQueueManager.Instance.AddCommand(new Cmd_Function(() =>
{ {
currentCharacter.combatBuffSubmodule.ActionEnd();
if (currentCharacter is PlayerHero playerHero) if (currentCharacter is PlayerHero playerHero)
{ {
playerHero.combatBuffSubmodule.ActionEnd(); //Debug.Log(currentCharacter.data.className + " 结束行动,整理手牌。");
Debug.Log(currentCharacter.data.className + " 结束行动,整理手牌。");
List<CardInstance> handPile = new List<CardInstance>(playerHero.deckSubmodule.HandPile); List<CardInstance> handPile = new List<CardInstance>(playerHero.deckSubmodule.HandPile);
List<CardInstance> cardToRetain = handPile.Where(card => card.HasKeyword("Retain")).ToList(); //含有“保留”关键词的卡牌 List<CardInstance> cardToRetain = handPile.Where(card => card.HasKeyword("Retain")).ToList(); //含有“保留”关键词的卡牌
List<CardInstance> cardToExhaust = handPile.Where(card => card.HasKeyword("Ethereal")).ToList(); //含有“虚无”关键词的卡牌 List<CardInstance> cardToExhaust = handPile.Where(card => card.HasKeyword("Ethereal")).ToList(); //含有“虚无”关键词的卡牌