OfficialCardListUtility.cs 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. using System;
  4. using System.Linq;
  5. using System.Net;
  6. using System.Text;
  7. public class OfficialCardListUtility
  8. {
  9. public static List<string[]> GetCardDatas(List<TextAsset> textAssets)
  10. {
  11. List<string[]> CardDatas = new List<string[]>();
  12. foreach (TextAsset textAsset in textAssets)
  13. {
  14. string sourceString = textAsset.text;
  15. for (int i = 0; i < 20; i++)
  16. {
  17. sourceString = sourceString.Replace($"<liclass=\"image_lists_itemdatapage-{i + 1}\">", "��");
  18. }
  19. string[] CardDataArray = sourceString.Split("��");
  20. for (int i = 0; i < CardDataArray.Length; i++)
  21. {
  22. string[] CardData = CardDataArray[i].Split('\n');
  23. if (CardData.Length == 1)
  24. {
  25. continue;
  26. }
  27. CardDatas.Add(CardData);
  28. }
  29. }
  30. return CardDatas;
  31. }
  32. public static void AttachCardData(CEntity_Base cEntity_Base, List<string[]> CardDatas_JPN, List<string[]> CardDatas_ENG, ref List<int> evoCosts_level, ref List<int> evoCosts_memory)
  33. {
  34. string[] targetCardData = null;
  35. int value;
  36. bool hasAceName = false;
  37. foreach (string[] CardData in CardDatas_JPN)
  38. {
  39. if (CardData.Length >= 3)
  40. {
  41. if (!string.IsNullOrEmpty(CardData[2]))
  42. {
  43. if (CardData[2].Contains(cEntity_Base.CardID))
  44. {
  45. targetCardData = CardData;
  46. break;
  47. }
  48. }
  49. }
  50. }
  51. if (targetCardData != null)
  52. {
  53. for (int i = 0; i < targetCardData.Length; i++)
  54. {
  55. if (!string.IsNullOrEmpty(targetCardData[i]))
  56. {
  57. //�J�[�h�F
  58. if (targetCardData[i].Contains("<divclass=\"card_detailcard_detail_"))
  59. {
  60. targetCardData[i] = targetCardData[i].Replace("<divclass=\"card_detailcard_detail_", "").Replace("\">", "").Replace("multicolor", "");
  61. string[] parseByUnderBar = targetCardData[i].Split('_');
  62. foreach (string cardColorName in parseByUnderBar)
  63. {
  64. foreach (string cardColorNameValues in DataBase.CardColorNameDictionary.Values)
  65. {
  66. if (cardColorName.Trim() == cardColorNameValues)
  67. {
  68. cEntity_Base.cardColors.Add(DictionaryUtility.GetCardColor(cardColorName.Trim(), DataBase.CardColorNameDictionary));
  69. }
  70. }
  71. }
  72. }
  73. //�J�[�h���
  74. if (targetCardData[i].Contains("cardtype"))
  75. {
  76. foreach (string cardTypeName in DataBase.CardKindJPNameDictionary.Values)
  77. {
  78. if (targetCardData[i].Contains(cardTypeName))
  79. {
  80. cEntity_Base.cardKind = DictionaryUtility.GetCardKind(cardTypeName, DataBase.CardKindJPNameDictionary);
  81. }
  82. }
  83. }
  84. //���x��
  85. if (targetCardData[i].Contains("cardlv"))
  86. {
  87. targetCardData[i] = targetCardData[i].Replace("<liclass=\"cardlv\">Lv.", "").Replace("</li>", "");
  88. if (int.TryParse(targetCardData[i], out value))
  89. {
  90. cEntity_Base.Level = value;
  91. }
  92. }
  93. //�J�[�h��
  94. if (targetCardData[i].Contains("card_name"))
  95. {
  96. targetCardData[i] = targetCardData[i].Replace("<divclass=\"card_name\">", "").Replace("</div>", "")
  97. .Replace("?", "o").Replace("?", "e");
  98. cEntity_Base.CardName_JPN = targetCardData[i];
  99. if (cEntity_Base.CardName_JPN.Contains("ACE"))
  100. {
  101. hasAceName = true;
  102. }
  103. }
  104. //�`��
  105. if (targetCardData[i].Contains("<dt>�`��</dt>"))
  106. {
  107. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  108. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  109. {
  110. cEntity_Base.Form_JPN.Add(targetCardData[i + 1]);
  111. }
  112. }
  113. //����
  114. if (targetCardData[i].Contains("<dt>����</dt>"))
  115. {
  116. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  117. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  118. {
  119. cEntity_Base.Attribute_JPN.Add(targetCardData[i + 1]);
  120. }
  121. }
  122. //�^�C�v
  123. if (targetCardData[i].Contains("<dt>�^�C�v</dt>"))
  124. {
  125. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  126. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  127. {
  128. string[] typeStrings = targetCardData[i + 1].Split('/');
  129. foreach (string typeString in typeStrings)
  130. {
  131. if (!string.IsNullOrEmpty(typeString))
  132. {
  133. cEntity_Base.Type_JPN.Add(typeString);
  134. }
  135. }
  136. }
  137. }
  138. //DP
  139. if (targetCardData[i].Contains("<dt>DP</dt>"))
  140. {
  141. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dl>", "");
  142. if (!string.IsNullOrEmpty(targetCardData[i + 1]))
  143. {
  144. if (int.TryParse(targetCardData[i + 1], out value))
  145. {
  146. cEntity_Base.DP = value;
  147. }
  148. }
  149. }
  150. //�o��R�X�g
  151. if (targetCardData[i].Contains("<dt>�o��R�X�g</dt>"))
  152. {
  153. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  154. if (!string.IsNullOrEmpty(targetCardData[i + 1]))
  155. {
  156. if (int.TryParse(targetCardData[i + 1], out value))
  157. {
  158. cEntity_Base.PlayCost = value;
  159. }
  160. }
  161. }
  162. //���A���e�B
  163. if (targetCardData[i].Contains("<li>") && targetCardData[i].Contains("</li>"))
  164. {
  165. targetCardData[i] = targetCardData[i].Replace("<li>", "").Replace("</li>", "");
  166. if (targetCardData[i] == "�o")
  167. {
  168. targetCardData[i] = "P";
  169. }
  170. if (!string.IsNullOrEmpty(targetCardData[i]))
  171. {
  172. cEntity_Base.rarity = (Rarity)Enum.Parse(typeof(Rarity), targetCardData[i]);
  173. }
  174. }
  175. //�i���R�X�g
  176. if (targetCardData[i].Contains("<dt>�i���R�X�g1</dt>"))
  177. {
  178. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "").Replace("Lv.", "").Replace("����", "��");
  179. string[] evoCostStrings = targetCardData[i + 1].Split("��");
  180. if (evoCostStrings.Length >= 2)
  181. {
  182. if (int.TryParse(evoCostStrings[0], out value))
  183. {
  184. int x = value;
  185. evoCosts_level.Add(x);
  186. }
  187. if (int.TryParse(evoCostStrings[1], out value))
  188. {
  189. int x = value;
  190. if (cEntity_Base.CardID == "BT1-054")
  191. {
  192. x = 3;
  193. }
  194. if (cEntity_Base.CardID == "BT6-050")
  195. {
  196. x = 3;
  197. }
  198. evoCosts_memory.Add(x);
  199. }
  200. }
  201. }
  202. //�i���R�X�g
  203. if (targetCardData[i].Contains("<dt>�i���R�X�g2</dt>"))
  204. {
  205. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "").Replace("Lv.", "").Replace("����", "��");
  206. string[] evoCostStrings = targetCardData[i + 1].Split("��");
  207. if (evoCostStrings.Length >= 2)
  208. {
  209. if (int.TryParse(evoCostStrings[0], out value))
  210. {
  211. int x = value;
  212. evoCosts_level.Add(x);
  213. }
  214. if (int.TryParse(evoCostStrings[1], out value))
  215. {
  216. int x = value;
  217. evoCosts_memory.Add(x);
  218. }
  219. }
  220. }
  221. //����
  222. if (targetCardData[i].Contains("<dt>����</dt>") || targetCardData[i].Contains("<dt>��i�e�L�X�g</dt>"))
  223. {
  224. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  225. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  226. {
  227. cEntity_Base.EffectDiscription_JPN += targetCardData[i + 1].Replace("<br>", "");
  228. }
  229. }
  230. //�i��������
  231. if (targetCardData[i].Contains("<dt>�i��������</dt>") || (!(cEntity_Base.cardKind == CardKind.Digimon && hasAceName) && targetCardData[i].Contains("<dt>���i�e�L�X�g</dt>")))
  232. {
  233. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  234. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  235. {
  236. cEntity_Base.InheritedEffectDiscription_JPN += targetCardData[i + 1].Replace("<br>", "");
  237. }
  238. }
  239. //�Z�L�����e�B����
  240. if (targetCardData[i].Contains("<dt>�Z�L�����e�B����</dt>") || (!(cEntity_Base.cardKind == CardKind.Digimon || cEntity_Base.cardKind == CardKind.DigiEgg) && targetCardData[i].Contains("<dt>���i�e�L�X�g</dt>")))
  241. {
  242. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  243. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  244. {
  245. cEntity_Base.SecurityEffectDiscription_JPN += targetCardData[i + 1].Replace("<br>", "");
  246. }
  247. }
  248. //�I�[�o�[�t���[
  249. if (cEntity_Base.cardKind == CardKind.Digimon && hasAceName && targetCardData[i].Contains("<dt>���i�e�L�X�g</dt>"))
  250. {
  251. if (targetCardData[i + 1].Contains("overflow-4"))
  252. {
  253. cEntity_Base.OverflowMemory = 4;
  254. }
  255. else if (targetCardData[i + 1].Contains("overflow-3"))
  256. {
  257. cEntity_Base.OverflowMemory = 3;
  258. }
  259. }
  260. }
  261. }
  262. }
  263. targetCardData = null;
  264. foreach (string[] CardData in CardDatas_ENG)
  265. {
  266. if (CardData.Length >= 3)
  267. {
  268. if (!string.IsNullOrEmpty(CardData[2]))
  269. {
  270. if (CardData[2].Contains(cEntity_Base.CardID))
  271. {
  272. targetCardData = CardData;
  273. break;
  274. }
  275. }
  276. }
  277. }
  278. if (targetCardData == null)
  279. {
  280. AttachEnglishCardDataFromDigimonDev(cEntity_Base);
  281. }
  282. else
  283. {
  284. for (int i = 0; i < targetCardData.Length; i++)
  285. {
  286. if (!string.IsNullOrEmpty(targetCardData[i]))
  287. {
  288. //�J�[�h��
  289. if (targetCardData[i].Contains("card_name"))
  290. {
  291. targetCardData[i] = targetCardData[i].Replace(" ", "").Replace("<divclass=\"card_name\">", "").Replace("</div>", "")
  292. .Replace("&amp;", "&");
  293. cEntity_Base.CardName_ENG = targetCardData[i].Replace("�I", "!");
  294. }
  295. //�`��
  296. if (targetCardData[i].Contains("<dt>Form</dt>"))
  297. {
  298. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  299. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  300. {
  301. cEntity_Base.Form_ENG.Add(targetCardData[i + 1]);
  302. }
  303. }
  304. //����
  305. if (targetCardData[i].Contains("<dt>Attribute</dt>"))
  306. {
  307. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  308. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  309. {
  310. cEntity_Base.Attribute_ENG.Add(targetCardData[i + 1]);
  311. }
  312. }
  313. //�^�C�v
  314. if (targetCardData[i].Contains("<dt>Type</dt>"))
  315. {
  316. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  317. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  318. {
  319. string[] typeStrings = targetCardData[i + 1].Split('/');
  320. foreach (string typeString in typeStrings)
  321. {
  322. if (!string.IsNullOrEmpty(typeString))
  323. {
  324. cEntity_Base.Type_ENG.Add(typeString);
  325. }
  326. }
  327. }
  328. }
  329. //����
  330. if (targetCardData[i].Contains("<dt>Effect</dt>") || targetCardData[i].Contains("<dt>��i�e�L�X�g</dt>"))
  331. {
  332. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  333. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  334. {
  335. cEntity_Base.EffectDiscription_ENG += targetCardData[i + 1].Replace("<br>", "");
  336. }
  337. if (cEntity_Base.CardID == "BT2-010")
  338. {
  339. cEntity_Base.EffectDiscription_ENG += "[On Deletion] If it's your turn, gain 1 memory.";
  340. }
  341. }
  342. //�i��������
  343. if (targetCardData[i].Contains("<dt>Digivolveeffect</dt>") && !(cEntity_Base.cardKind == CardKind.Digimon && cEntity_Base.IsACE))
  344. {
  345. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  346. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  347. {
  348. cEntity_Base.InheritedEffectDiscription_ENG += targetCardData[i + 1].Replace("<br>", "");
  349. }
  350. }
  351. //�Z�L�����e�B����
  352. if (targetCardData[i].Contains("<dt>Securityeffect</dt>"))
  353. {
  354. targetCardData[i + 1] = targetCardData[i + 1].Replace("<dd>", "").Replace("</dd>", "");
  355. if (!string.IsNullOrEmpty(targetCardData[i + 1]) && targetCardData[i + 1] != "-")
  356. {
  357. if (cEntity_Base.CardName_JPN == "X�R��")
  358. {
  359. cEntity_Base.InheritedEffectDiscription_ENG += targetCardData[i + 1].Replace("<br>", "");
  360. }
  361. else
  362. {
  363. cEntity_Base.SecurityEffectDiscription_ENG += targetCardData[i + 1].Replace("<br>", "");
  364. }
  365. }
  366. }
  367. }
  368. }
  369. }
  370. if (cEntity_Base.IsACE)
  371. {
  372. if (cEntity_Base.CardName_JPN.Contains("ACE"))
  373. {
  374. cEntity_Base.CardName_JPN = cEntity_Base.CardName_JPN.Replace("ACE", "");
  375. }
  376. if (cEntity_Base.CardName_ENG.Contains("ACE"))
  377. {
  378. cEntity_Base.CardName_ENG = cEntity_Base.CardName_ENG.Replace("ACE", "");
  379. }
  380. if (cEntity_Base.CardName_ENG.Contains("Ace"))
  381. {
  382. cEntity_Base.CardName_ENG = cEntity_Base.CardName_ENG.Replace("Ace", "");
  383. }
  384. }
  385. #region �G���b�^�E��A�C��
  386. if (cEntity_Base.Type_JPN.Contains("X�R��"))
  387. {
  388. if (!cEntity_Base.Type_ENG.Contains("XAntibody"))
  389. {
  390. cEntity_Base.Type_ENG.Add("XAntibody");
  391. }
  392. }
  393. if (cEntity_Base.CardID == "BT2-024" || cEntity_Base.CardID == "BT2-029" || cEntity_Base.CardID == "BT4-024" || cEntity_Base.CardID == "BT4-028" || cEntity_Base.CardID == "BT4-034")
  394. {
  395. while (cEntity_Base.Type_ENG.Contains("SeaAnimal") || cEntity_Base.Type_ENG.Contains("Sea Animal"))
  396. {
  397. cEntity_Base.Type_ENG.Remove("SeaAnimal");
  398. cEntity_Base.Type_ENG.Remove("Sea Animal");
  399. }
  400. cEntity_Base.Type_ENG.Add("Aquatic");
  401. }
  402. if (cEntity_Base.CardID == "BT1-042")
  403. {
  404. cEntity_Base.CardName_ENG = "LoaderLeomon";
  405. }
  406. if (cEntity_Base.CardID == "P-063")
  407. {
  408. cEntity_Base.CardName_ENG = "RuliTsukiyono";
  409. }
  410. if (cEntity_Base.CardID == "ST12-09")
  411. {
  412. if (!cEntity_Base.cardColors.Contains(CardColor.Black))
  413. {
  414. cEntity_Base.cardColors.Add(CardColor.Black);
  415. }
  416. }
  417. if (cEntity_Base.CardID == "BT9-067")
  418. {
  419. cEntity_Base.EffectDiscription_ENG = "[On Play][When Digivolving] Place 1 [Raijinmon], 1 [Fujinmon], and 1 [Suijinmon] from your trash under this Digimon in any order as its bottom digivolution cards. Gain 1 memory for each card placed.[When Attacking] If the level 6 cards in this Digimon's digivolution cards have 3 or more colors among them, this Digimon gets +3000 DP until the end of your opponent's turn. If they have 4 or more colors, <De-Digivolve 1> 1 of your opponent's Digimon.";
  420. }
  421. if (cEntity_Base.CardID == "BT8-097")
  422. {
  423. cEntity_Base.EffectDiscription_ENG = "Reduce the memory cost of this card in your hand by 1 for each Digimon your opponent has in play.[Main] Your opponent can't play Digimon by effects until the end of their turn. Delete all of your opponent's Digimon with 6000 DP or less.";
  424. }
  425. if (cEntity_Base.CardID == "BT10-086")
  426. {
  427. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from [Omnimon]When a Digimon with [X Antibody] in its digivolution cards would digivolve into this card, reduce the digivolution cost by 2.[When Digivolving] Return all of your opponent's Digimon with the highest level to the bottom of their owners' decks in any order.[When Digivolving][When Attacking][Once Per Turn] By placing 1 [X Antibody] or level 6 card from this Digimon's digivolution cards at the bottom of its owner's deck, reveal all of your opponent's security cards, and trash 1 of them. Place the rest in your opponent's security stack face down. Then, your opponent shuffles their security stack.";
  428. }
  429. if (cEntity_Base.CardID == "BT10-097")
  430. {
  431. cEntity_Base.EffectDiscription_ENG = "[Main] Reveal the top 6 cards of your deck. You may add 2 cards with [Blue Flare] in their traits among them to your hand, and play 1 [Kiriha Aonuma] among them without paying its memory cost. Place the rest at the bottom of your deck in any order. Then, place this card in your Battle Area.[Main] <Delay> (By trashing this card in your battle area, activate the effect below. You can't activate this effect the turn this card enters play.) - Gain 2 memory.";
  432. }
  433. if (cEntity_Base.CardID == "BT10-096")
  434. {
  435. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Reveal the top 3 cards of your deck. You may add 1 Digimon card with [Xros Heart] in its traits among them to your hand and play 1 [Taiki Kudo] among them without paying its memory cost. Place the rest at the bottom of your deck in any order.";
  436. }
  437. if (cEntity_Base.CardID == "BT10-093")
  438. {
  439. cEntity_Base.EffectDiscription_ENG = "[All Turns][Once Per Turn] When a purple card is placed under this Tamer, <Draw 1> (Draw 1 card from your deck), and gain 1 memory.[Your turn] [Once per turn] When you would play 1 level 4 or higher Digimon card with [Bagra Army] in its traits, by placing up to 3 purple Digimon cards from under your Tamers in the digivolution cards of the Digimon card played, reduce the memory cost of that Digimon by 2 for each card placed.";
  440. }
  441. if (cEntity_Base.CardID == "BT10-004")
  442. {
  443. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn][Once Per Turn] When an effect suspends a Digimon, this Digimon gets +1000 DP for the turn.";
  444. }
  445. if (cEntity_Base.CardID == "EX3-068 ")
  446. {
  447. cEntity_Base.EffectDiscription_ENG = "[Main] 1 of your opponent's Digimon gets -6000 DP for the turn. Then, you may return 1 card with the [Four Great Dragons] trait from your trash to your hand.";
  448. }
  449. if (cEntity_Base.CardID == "P-060")
  450. {
  451. cEntity_Base.InheritedEffectDiscription_ENG = "[When Attacking][Once Per Turn] If you have a [Ruli Tsukiyono] in play, gain 1 memory.";
  452. }
  453. if (cEntity_Base.CardID == "P-029")
  454. {
  455. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn] When digivolving this Digimon into an [AncientGreymon] in your hand, reduce its digivolution cost by 2.";
  456. }
  457. if (cEntity_Base.CardID == "P-030")
  458. {
  459. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn] When digivolving this Digimon into an [AncientGarurumon] in your hand, reduce its digivolution cost by 2.";
  460. }
  461. if (cEntity_Base.CardID == "P-012")
  462. {
  463. cEntity_Base.EffectDiscription_ENG = "[Main] If you have a Digimon with [Veedramon] in its name, you may suspend this Tamer to activate one of the following effects: - Trigger <Draw 1>. (Draw 1 card from your deck. - 1 of your Digimon gets +1000 DP for the turn.";
  464. }
  465. if (cEntity_Base.CardID == "P-045")
  466. {
  467. cEntity_Base.InheritedEffectDiscription_ENG = "[All Turns] All of your other Digimon with the same name as this Digimon gain <Decoy (Black/White)>. (When one of your other black or white Digimon would be deleted by an opponent's effect, you may delete this Digimon to prevent that deletion.)";
  468. }
  469. if (cEntity_Base.CardID == "EX1-073")
  470. {
  471. cEntity_Base.EffectDiscription_ENG = "[On Play] You may place up to 5 level 5 red and black cards with [Cyborg] in their traits and different card numbers from your hand and trash in this Digimon's digivolution cards to gain 1 memory for each card placed.[All Turns]This Digimon's DP can't be reduced.[All Turns]When this Digimon would be deleted, you may trash 2 level5 Digimon cards in this Digimon's digivolution cards to prevent this Digimon from being deleted.";
  472. }
  473. if (cEntity_Base.CardID == "EX3-063")
  474. {
  475. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("When DNA", "If DNA");
  476. }
  477. if (cEntity_Base.CardID == "EX3-058")
  478. {
  479. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("for its digivolution cost", "for the cost").Replace("for its DNA digivolve cost", "for the cost").Replace("[Free] in its traits", "the [Free] trait");
  480. }
  481. if (cEntity_Base.CardID == "EX3-057")
  482. {
  483. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("[On Deletion]", "[When Digivolving]").Replace("the top 2 cards of their decks", "the top 2 cards of both players' decks");
  484. }
  485. if (cEntity_Base.CardID == "EX3-055")
  486. {
  487. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("trash 1 card among them", "trash 1 such card among them");
  488. }
  489. if (cEntity_Base.CardID == "EX3-045")
  490. {
  491. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("You may suspend 1 of you or your opponent�fs Digimon", "You may suspend 1 Digimon").Replace("[Fairy] in its traits", "[Fairy] in one of their traits").Replace("[Fairy] in their traits", "[Fairy] in one of their traits");
  492. }
  493. if (cEntity_Base.CardID == "EX3-035")
  494. {
  495. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("Return 1 card with", "You may return 1 card with").Replace("Then, you may return 1 [Magnadramon]", "Then, by returning 1 [Magnadramon]").Replace("in any order to trash the top 2 cards of your opponent's security stack", "in any order, trash the top 2 cards of your opponent's security stack").Replace("with [Four Great Dragons] in its trait", "with the [Four Great Dragons] trait");
  496. }
  497. if (cEntity_Base.CardID == "EX3-031")
  498. {
  499. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("with [Four Great Dragons] in its traits, it gains gains", "with the [Four Great Dragons] trait, 1 of those Digimon gains");
  500. }
  501. if (cEntity_Base.CardID == "EX3-030")
  502. {
  503. cEntity_Base.EffectDiscription_ENG = "[On Play] Reveal the top 4 cards of your deck. Add 1 yellow card with [Angel], [Cherub], [Throne], [Authority], [Seraph] or [Virtue], other than [Three Great Angels], in one of its traits and 1 card with the [Four Great Dragons] trait among them to your hand. Place the rest at the bottom of your deck in any order.";
  504. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn] [Once Per Turn] When you play a Digimon with the [Four Great Dragons] trait, 1 of those Digimon gains <Rush> for the turn. (This Digimon may attack the turn it was played.)";
  505. }
  506. if (cEntity_Base.CardID == "EX3-028")
  507. {
  508. cEntity_Base.EffectDiscription_ENG = "[On Play] Reveal the top 4 cards of your deck. Add 1 yellow card with [Angel], [Cherub], [Throne], [Authority], [Seraph] or [Virtue], other than [Three Great Angels], in one of its traits and 1 card with the [Four Great Dragons] trait among them to your hand. Place the rest at the bottom of your deck in any order.";
  509. }
  510. if (cEntity_Base.CardID == "EX3-026")
  511. {
  512. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("or [Aquatic] in its traits", "or [Aqua] or [Sea Animal] in one of its traits");
  513. }
  514. if (cEntity_Base.CardID == "EX3-024")
  515. {
  516. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("You may suspend 1 of your Digimon with [Dramon] or [Examon] in its name to force 1 of your opponent�fs Digimon to attack", "By suspending 1 of your Digimon with [Dramon] or [Examon] in its name, your opponent attacks with 1 of their Digimon");
  517. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("You may suspend 1 of your Digimon with [Dramon] or [Examon] in its name to force 1 of your opponent�fs Digimon to attack", "By suspending 1 of your Digimon with [Dramon] or [Examon] in its name, your opponent attacks with 1 of their Digimon");
  518. }
  519. if (cEntity_Base.CardID == "EX3-023")
  520. {
  521. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("with [Aquatic] in its traits", "with [Aqua] or [Sea Animal] in one of its traits");
  522. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("return 1", "you may return 1");
  523. }
  524. if (cEntity_Base.CardID == "EX3-022")
  525. {
  526. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("from one of your", "from 1 of your");
  527. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("play a blue level 3 Digimon card from 1 of your blue Digimon without", "play 1 blue level 3 Digimon card from 1 of your blue Digimon's digivolution cards without");
  528. }
  529. if (cEntity_Base.CardID == "EX3-014")
  530. {
  531. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("each card with [Dragon] in its traits", "each card with [Dragon], [saur] or [Ceratopsian] in one of its traits");
  532. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("[Dragon] traits", "[Dragon], [saur], or [Ceratopsian] in one of its traits");
  533. }
  534. if (cEntity_Base.CardID == "EX3-008")
  535. {
  536. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("[Free] in its traits from your trash for its play cost", "the [Free] trait from your trash for the cost");
  537. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("for its DNA digivolve cost", "for the cost");
  538. }
  539. if (cEntity_Base.CardID == "EX3-006")
  540. {
  541. cEntity_Base.EffectDiscription_ENG = "[On Play] Reveal the top 4 cards of your deck. Add 1 Digimon card with [Rock Dragon], [Earth Dragon], [Bird Dragon], [Machine Dragon] or [Sky Dragon] in its traits and 1 [Hina Kurihara] among them to your hand. Place the rest at the bottom of your deck in any order.";
  542. }
  543. if (cEntity_Base.CardID == "EX3-005")
  544. {
  545. cEntity_Base.EffectDiscription_ENG = "[Your Turn][Once Per Turn] When you play a [Hina Kurihara], delete 1 of your opponent's Digimon with 3000 DP or less.";
  546. }
  547. if (cEntity_Base.CardID == "EX3-004")
  548. {
  549. cEntity_Base.EffectDiscription_ENG = "[On Play] You may trash 1 card with [Imperialdramon] in its name or [Free] in its traits from your hand to <Draw 2>. (Draw 2 cards from your deck.)";
  550. }
  551. if (cEntity_Base.CardID == "EX3-003")
  552. {
  553. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("with [Dragon] in its traits", "with [Dragon], [saur] or [Ceratopsian] in one of its traits");
  554. }
  555. if (cEntity_Base.CardID == "EX3-001")
  556. {
  557. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("When a Digimon", "When this Digimon");
  558. }
  559. if (cEntity_Base.CardID == "P-071")
  560. {
  561. cEntity_Base.EffectDiscription_ENG = "[Security] At the end of the battle, you may play 1 purple level 3 Digimon card from your trash without paying its memory cost. Then, add this card to its owner's hand.";
  562. }
  563. if (cEntity_Base.CardID == "BT12-094")
  564. {
  565. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("under this Tamer, 1 of your Digimon gets +2000 DP for the turn", "under this Tamer, gain 1 memory");
  566. }
  567. if (cEntity_Base.CardID == "BT11-009")
  568. {
  569. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("place 2 cards in this Digimon's", "place 1 card in this Digimon's");
  570. }
  571. if (cEntity_Base.CardID == "EX3-030")
  572. {
  573. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("it gains <Rush>", "1 of those Digimon gains <Rush>");
  574. }
  575. if (cEntity_Base.CardID == "ST13-09")
  576. {
  577. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("you may reveal", "reveal");
  578. }
  579. if (cEntity_Base.CardID == "ST13-02")
  580. {
  581. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("you may reveal", "reveal");
  582. }
  583. if (cEntity_Base.CardID == "EX2-037")
  584. {
  585. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("that Digimon", "1 of those Digimon");
  586. }
  587. if (cEntity_Base.CardID == "BT9-071")
  588. {
  589. cEntity_Base.EffectDiscription_ENG = "[On Play] Reveal the top 3 cards of your deck. Add 1 card with [Undead] or [Dark Animal] in its traits among them to your hand and trash 1 card with [Undead] or [Dark Animal] in its traits among them. Place the rest at the bottom of your deck in any order.";
  590. }
  591. if (cEntity_Base.CardID == "BT9-106")
  592. {
  593. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("You may digivolve", "Digivolve");
  594. }
  595. if (cEntity_Base.CardID == "BT9-100")
  596. {
  597. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("Then, unsuspend", "Then, you may unsuspend");
  598. }
  599. if (cEntity_Base.CardID == "BT9-056")
  600. {
  601. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("unsuspend this Digimon", "you may unsuspend this Digimon");
  602. }
  603. if (cEntity_Base.CardID == "BT9-014")
  604. {
  605. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("choose any number", "you may choose any number");
  606. }
  607. if (cEntity_Base.CardID == "BT8-093")
  608. {
  609. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("you may delete this Tamer to play", "by deleting this Tamer , you may play");
  610. }
  611. if (cEntity_Base.CardID == "BT6-097")
  612. {
  613. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("Trash up to 2", "Trash 2");
  614. }
  615. if (cEntity_Base.CardID == "BT6-033")
  616. {
  617. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("trash cards", "trash any number of cards").Replace("there are 3 remaining", "you have 3 or more remaining");
  618. }
  619. if (cEntity_Base.CardID == "BT4-114")
  620. {
  621. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("You may unsuspend", "Unsuspend").Replace("their names", "their names (other than [KendoGarurumon])");
  622. }
  623. if (cEntity_Base.CardID == "BT3-090")
  624. {
  625. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("play 1 purple", "you may play 1 purple");
  626. }
  627. if (cEntity_Base.CardID == "BT2-112")
  628. {
  629. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("If you attack", "When you attack");
  630. }
  631. if (cEntity_Base.CardID == "EX4-005")
  632. {
  633. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Koromon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  634. }
  635. if (cEntity_Base.CardID == "EX4-006")
  636. {
  637. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Gigimon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  638. }
  639. if (cEntity_Base.CardID == "EX4-007")
  640. {
  641. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from Lv.3 w/[Agumon] in name and [Dinosaur] trait" + cEntity_Base.EffectDiscription_ENG;
  642. }
  643. if (cEntity_Base.CardID == "EX4-008")
  644. {
  645. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from Lv.3 w/[Guilmon] in name" + cEntity_Base.EffectDiscription_ENG;
  646. }
  647. if (cEntity_Base.CardID == "EX4-009")
  648. {
  649. cEntity_Base.EffectDiscription_ENG = "[Digivolve][GeoGreymon]: Cost 3" + cEntity_Base.EffectDiscription_ENG;
  650. }
  651. if (cEntity_Base.CardID == "EX4-010")
  652. {
  653. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from Lv.4 w/[Growlmon] in name" + cEntity_Base.EffectDiscription_ENG;
  654. }
  655. if (cEntity_Base.CardID == "EX4-011")
  656. {
  657. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from Lv.5 w/[WarGrowlmon] in name" + cEntity_Base.EffectDiscription_ENG;
  658. }
  659. if (cEntity_Base.CardID == "EX4-024")
  660. {
  661. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Viximon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  662. }
  663. if (cEntity_Base.CardID == "EX4-025")
  664. {
  665. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from Lv.3 w/[Lopmon] or [Terriermon] in name" + cEntity_Base.EffectDiscription_ENG;
  666. }
  667. if (cEntity_Base.CardID == "EX4-026")
  668. {
  669. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Renamon]: Cost 2" + cEntity_Base.EffectDiscription_ENG;
  670. }
  671. if (cEntity_Base.CardID == "EX4-027")
  672. {
  673. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Veemon]: Cost 2" + cEntity_Base.EffectDiscription_ENG;
  674. }
  675. if (cEntity_Base.CardID == "EX4-028")
  676. {
  677. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Kyubimon]: Cost 3" + cEntity_Base.EffectDiscription_ENG;
  678. }
  679. if (cEntity_Base.CardID == "EX4-029")
  680. {
  681. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from Lv.4 2-color w/green" + cEntity_Base.EffectDiscription_ENG;
  682. }
  683. if (cEntity_Base.CardID == "EX4-031")
  684. {
  685. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from Lv.5 2-color w/green" + cEntity_Base.EffectDiscription_ENG;
  686. }
  687. if (cEntity_Base.CardID == "EX4-035")
  688. {
  689. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from Lv.3 w/[Lopmon] or [Terriermon] in name" + cEntity_Base.EffectDiscription_ENG;
  690. }
  691. if (cEntity_Base.CardID == "EX4-036")
  692. {
  693. cEntity_Base.EffectDiscription_ENG = "Digivolve: 3 from Lv.4 w/[Gargomon] in name or 2-color w/green" + cEntity_Base.EffectDiscription_ENG;
  694. }
  695. if (cEntity_Base.CardID == "EX4-037")
  696. {
  697. cEntity_Base.EffectDiscription_ENG = "Digivolve: 4 from Lv.5 w/[Rapidmon] in name or 2-color w/green" + cEntity_Base.EffectDiscription_ENG;
  698. }
  699. if (cEntity_Base.CardID == "EX5-015")
  700. {
  701. if (!cEntity_Base.EffectDiscription_ENG.Contains("Gabumon") || !cEntity_Base.EffectDiscription_ENG.Contains("Tsunomon"))
  702. {
  703. cEntity_Base.EffectDiscription_ENG = "Digivolve: 0 from [Gabumon] or [Tsunomon]" + cEntity_Base.EffectDiscription_ENG;
  704. }
  705. }
  706. if (cEntity_Base.CardID == "EX5-018")
  707. {
  708. if (!cEntity_Base.EffectDiscription_ENG.Contains("Garurumon"))
  709. {
  710. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Garurumon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  711. }
  712. }
  713. if (cEntity_Base.CardID == "EX5-027")
  714. {
  715. if (!cEntity_Base.EffectDiscription_ENG.Contains("Frimon"))
  716. {
  717. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Frimon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  718. }
  719. }
  720. if (cEntity_Base.CardID == "EX5-030")
  721. {
  722. if (!cEntity_Base.EffectDiscription_ENG.Contains("Liollmon") || !cEntity_Base.EffectDiscription_ENG.Contains("Elecmon"))
  723. {
  724. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from [Liollmon] or [Elecmon]" + cEntity_Base.EffectDiscription_ENG;
  725. }
  726. }
  727. if (cEntity_Base.CardID == "EX5-032")
  728. {
  729. if (!cEntity_Base.EffectDiscription_ENG.Contains("Leomon"))
  730. {
  731. cEntity_Base.EffectDiscription_ENG = "[Digivolve] Lv.4 w/[Leomon] in name: Cost 3" + cEntity_Base.EffectDiscription_ENG;
  732. }
  733. }
  734. if (cEntity_Base.CardID == "EX5-044")
  735. {
  736. if (!cEntity_Base.EffectDiscription_ENG.Contains("Frimon"))
  737. {
  738. cEntity_Base.EffectDiscription_ENG = "[Digivolve][Frimon]: Cost 0" + cEntity_Base.EffectDiscription_ENG;
  739. }
  740. }
  741. if (cEntity_Base.CardID == "EX5-047")
  742. {
  743. if (!cEntity_Base.EffectDiscription_ENG.Contains("Liollmon") || !cEntity_Base.EffectDiscription_ENG.Contains("Elecmon"))
  744. {
  745. cEntity_Base.EffectDiscription_ENG = "Digivolve: 2 from [Liollmon] or [Elecmon]" + cEntity_Base.EffectDiscription_ENG;
  746. }
  747. }
  748. if (cEntity_Base.CardID == "EX5-048")
  749. {
  750. if (!cEntity_Base.EffectDiscription_ENG.Contains("Sukamon"))
  751. {
  752. cEntity_Base.EffectDiscription_ENG = "[Digivolve] Lv.4 w/[Sukamon] in name: Cost 3" + cEntity_Base.EffectDiscription_ENG;
  753. }
  754. }
  755. if (cEntity_Base.CardID == "EX5-049")
  756. {
  757. if (!cEntity_Base.EffectDiscription_ENG.Contains("Leomon"))
  758. {
  759. cEntity_Base.EffectDiscription_ENG = "[Digivolve] Lv.4 w/[Leomon] in name: Cost 3" + cEntity_Base.EffectDiscription_ENG;
  760. }
  761. }
  762. if (cEntity_Base.CardID == "EX5-055")
  763. {
  764. if (!cEntity_Base.EffectDiscription_ENG.Contains("Leomon"))
  765. {
  766. cEntity_Base.EffectDiscription_ENG = "[Digivolve] Lv.5 w/[Leomon] in name: Cost 4" + cEntity_Base.EffectDiscription_ENG;
  767. }
  768. }
  769. if (cEntity_Base.CardID == "EX5-073")
  770. {
  771. if (!cEntity_Base.EffectDiscription_ENG.Contains("Apollomon") || !cEntity_Base.EffectDiscription_ENG.Contains("Dianamon"))
  772. {
  773. cEntity_Base.EffectDiscription_ENG = "��DNA Digivolution: 0 from [Apollomon] + [Dianamon]��" + cEntity_Base.EffectDiscription_ENG;
  774. }
  775. }
  776. if (cEntity_Base.CardID == "BT7-085")
  777. {
  778. cEntity_Base.EffectDiscription_JPN = "�y�o�ꎞ�z����̃f�W����1�̂̐i�������A������3���j������B";
  779. cEntity_Base.EffectDiscription_ENG = "[On Play] Trash 3 digivolution cards from the bottom of 1 of your opponent's Digimon.";
  780. cEntity_Base.InheritedEffectDiscription_JPN = "�y�A�^�b�N���z�m�^�[����1��n���̑���̃^�[���I�����܂ŁA�i�����������Ȃ�����̃f�W����1�̂̓A�^�b�N�ƃu���b�N���ł��Ȃ��B";
  781. cEntity_Base.InheritedEffectDiscription_ENG = "[When Attacking][Once Per Turn] Until the end of your opponent's next turn, 1 of your opponent's Digimon with no digivolution cards can't attack or block.";
  782. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  783. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  784. }
  785. if (cEntity_Base.CardID == "BT7-086")
  786. {
  787. cEntity_Base.EffectDiscription_JPN = "�y���C���z�m�^�[����1��n�����̃g���b�V������A�����Ɂu�n�C�u���b�h�́v�����ƒJ�[�h5�����D���ȏ��Ԃł��̃e�C�}�[�̉��ɒu�����ƂŁA���̃e�C�}�[��Ԃ�Lv.5�̃f�W�����Ƃ��Ĉ�����D�́u�J�C�[���O���C�����v�ɐi���R�X�g���x�����Đi���ł���B";
  788. cEntity_Base.EffectDiscription_ENG = "[Main][Once Per Turn] You may place 5 cards with [Hybrid] in their traits from your trash under this Tamer in any order to digivolve it into an [EmperorGreymon] in your hand for its digivolution cost as if this Tamer is a level 5 red Digimon.";
  789. cEntity_Base.InheritedEffectDiscription_JPN = "�y�����̃^�[���z���̃f�W������DP��+2000����B���̃f�W������DP��10000�ȏ�̊ԁA���̃f�W�����́�Z�L�����e�B�A�^�b�N+1��i���̃f�W�������`�F�b�N����Z�L�����e�B�̖���+1�j�𓾂�B";
  790. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn] This Digimon gets +2000 DP. While this Digimon has 10000 DP or more, it gains <Security Attack +1>. (This Digimon checks 1 additional security card.)";
  791. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  792. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  793. }
  794. if (cEntity_Base.CardID == "BT7-087")
  795. {
  796. cEntity_Base.EffectDiscription_JPN = "�y���C���z�m�^�[����1��n�����̎�D����A�����Ɂu�n�C�u���b�h�́v�����ƒJ�[�h5�����D���ȏ��Ԃł��̃e�C�}�[�̉��ɒu�����ƂŁA���̃e�C�}�[��‚�Lv.5�̃f�W�����Ƃ��Ĉ�����D�́u�}�O�i�K���������v�ɐi���R�X�g���x�����Đi���ł���B";
  797. cEntity_Base.EffectDiscription_ENG = "[Main][Once Per Turn] You may place 5 cards with [Hybrid] in their traits from your hand under this Tamer in any order to digivolve it into a [MagnaGarurumon] in your hand for its digivolution cost as if this Tamer is a level 5 blue Digimon.";
  798. cEntity_Base.InheritedEffectDiscription_JPN = "�y�����̃^�[���z�m�^�[����1��n�����̎�D�����ʂő������Ƃ��A�������[��+1����B���̌�A���̃^�[���̊ԁA���̃f�W�����̓u���b�N����Ȃ��B";
  799. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn][Once Per Turn] When an effect adds a card to your hand, gain 1 memory. Then, this Digimon can't be blocked for the turn.";
  800. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  801. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  802. }
  803. if (cEntity_Base.CardID == "BT7-088")
  804. {
  805. cEntity_Base.EffectDiscription_JPN = "�y�o�ꎞ�z�����̃Z�L�����e�B�̓��e��S�Ċm�F���āA���̒��̓����Ɂu�n�C�u���b�h�́v���u�/���m�v�����ƒJ�[�h1�����I�[�v�����Ď�D�ɉ�������B�������Ƃ�, �჊�J�o���[+1�s�f�b�L�t��i�����̓f�b�L�̏ォ��J�[�h��1���Z�L�����e�B�̏�ɒu���j�B���̌�A�����̃Z�L�����e�B���V���b�t������B";
  806. cEntity_Base.EffectDiscription_ENG = "[On Play] You may search your security stack for 1 card with [Hybrid] or [Ten Warriors] in its traits, reveal it, and add it to your hand. If you added a card to your hand, <Recovery +1 (Deck)>. (Place the top card of your deck on top of your security stack.) Then, shuffle your security stack.";
  807. cEntity_Base.InheritedEffectDiscription_JPN = "�y����̃^�[���z�����̃Z�L�����e�B�f�W�����S�Ă�DP��+3000����B";
  808. cEntity_Base.InheritedEffectDiscription_ENG = "[Opponent's Turn] All of your Security Digimon get +3000 DP.";
  809. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  810. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  811. }
  812. if (cEntity_Base.CardID == "BT7-089")
  813. {
  814. cEntity_Base.EffectDiscription_JPN = "�y�����̃^�[���z���̃e�C�}�[���΂̃f�W�����ɐi������Ƃ��A�x�����i���R�X�g��-1����B";
  815. cEntity_Base.EffectDiscription_ENG = "[Your Turn] When this Tamer digivolves into a green Digimon, reduce the memory cost of the digivolution by 1.";
  816. cEntity_Base.InheritedEffectDiscription_JPN = "��ђʁ�i���̃f�W�������A�^�b�N�����o�g���ő���̃f�W�������������ł������Ƃ��A���̃f�W�����̓Z�L�����e�B���`�F�b�N����j";
  817. cEntity_Base.InheritedEffectDiscription_ENG = "<Piercing> (When this Digimon attacks and deletes an opponent's Digimon and survives the battle, it performs any security checks it normally would.)";
  818. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  819. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  820. }
  821. if (cEntity_Base.CardID == "BT7-091")
  822. {
  823. cEntity_Base.EffectDiscription_JPN = "�y�o�ꎞ�z��1�h���[��i�����̃f�b�L����J�[�h��1�������j�B���̌�A�����̎�D��1���j������B";
  824. cEntity_Base.EffectDiscription_ENG = " [On Play] <Draw 1>. (Draw 1 card from your deck.) Then, trash 1 card in your hand.";
  825. cEntity_Base.InheritedEffectDiscription_JPN = "�y���Ŏ��z�������[��+1����B";
  826. cEntity_Base.InheritedEffectDiscription_ENG = "[On Deletion] Gain 1 memory.";
  827. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  828. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  829. }
  830. if (cEntity_Base.CardID == "BT12-088")
  831. {
  832. cEntity_Base.EffectDiscription_JPN = "�y�����̃^�[���J�n���z�������[��2�ȉ��̂Ƃ��A3�ɂ���B";
  833. cEntity_Base.EffectDiscription_ENG = "[Start of Your Turn] If you have 2 memory or less, set your memory to 3.";
  834. cEntity_Base.InheritedEffectDiscription_JPN = "�y�����̃^�[���z���̃f�W������DP+2000�B���̃f�W������DP��10000�ȏ�̊ԁA���̃f�W�����́u�y�����̃^�[���z[�^�[���ɂP��]���̃f�W����������̃Z�L�����e�B���`�F�b�N�����Ƃ��A�������[+2�B�v�̌��ʂ𓾂�B";
  835. cEntity_Base.InheritedEffectDiscription_ENG = "[Your Turn] This Digimon gets +2000 DP. While this Digimon has 10000 or more DP, it gains \"[Your Turn][Once per Turn] When this Digimon checks an opponent's security, gain 2 memory.\"";
  836. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  837. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  838. }
  839. if (cEntity_Base.CardID == "BT14-086")
  840. {
  841. cEntity_Base.EffectDiscription_JPN = "�y�����̃��C���t�F�C�Y�J�n���z����̃f�W����������Ȃ�A�������[+1�B�y���C���z���̂Ɂu�k�������v/�u���񂴂������v���܂ނ������Ɂu�f�W�΁v�����Ž����̃f�W����1�̂Ɂ�}�C���h�����N��i���̃e�C�}�[���A�i�����Ƀe�C�}�[�J�[�h���������̃f�W�����̐i�����̉��ɒu���j�B";
  842. cEntity_Base.EffectDiscription_ENG = "[Start of Your Main Phase] If your opponent has a Digimon, gain 1 memory. [Main] <Mind Link> with 1 of your Digimon with [Numemon] or [Monzaemon] in its name, or the [DigiPolice] trait. (Place this Tamer as that Digimon's bottom digivolution card if there are no Tamer cards in its digivolution cards.)";
  843. cEntity_Base.InheritedEffectDiscription_JPN = "�y���݂��̃^�[���z���̃f�W���������̂Ɂu�k�������v/�u���񂴂������v���܂ނ������Ɂu�f�W�΁v�����ŠԁA���̃f�W�����́�W���~���O��Ɓ�ċN����𓾂�B�y���݂��̃^�[���I�����z���̃f�W�����̐i��������A�u�ʕP�ь��v1�����R�X�g���x���킸�ɓo��ł���B";
  844. cEntity_Base.InheritedEffectDiscription_ENG = "[All Turns] While this Digimon has [Numemon] or [Monzaemon] in its name, or the [DigiPolice] trait, it gains <Jamming> and <Reboot>. [End of All Turns] You may play 1 [Satsuki Tamahime] from this Digimon's digivolution cards without paying the cost.";
  845. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  846. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  847. }
  848. if (cEntity_Base.CardID == "BT14-087")
  849. {
  850. cEntity_Base.EffectDiscription_JPN = "�y�����̃��C���t�F�C�Y�J�n���z����̃f�W����������Ȃ�A�������[+1�B�y���C���z�����Ɂu���b�^�v/�uSoC�v�����Ž����̃f�W����1�̂Ɂ�}�C���h�����N��i���̃e�C�}�[���A�i�����Ƀe�C�}�[�J�[�h���������̃f�W�����̐i�����̉��ɒu���j�B";
  851. cEntity_Base.EffectDiscription_ENG = "[Start of Your Main Phase] If your opponent has a Digimon, gain 1 memory. [Main] <Mind Link> with 1 of your Digimon with the [Dark Animal] or [SoC] trait. (Place this Tamer as that Digimon's bottom digivolution card if there are no Tamer cards in its digivolution cards.)";
  852. cEntity_Base.InheritedEffectDiscription_JPN = "�y���݂��̃^�[���z���̃f�W�����������Ɂu���b�^�v/�uSoC�v�����ŠԁA���̃f�W�����́�A�g��Ɓ�u���b�J�[��𓾂�B�y���݂��̃^�[���I�����z���̃f�W�����̐i��������A�u�i�Z�l�m�v1�����R�X�g���x���킸�ɓo��ł���B";
  853. cEntity_Base.InheritedEffectDiscription_ENG = "[All Turns] While this Digimon has the [Dark Animal] or [SoC] trait, it gains <Alliance> and <Blocker>. [End of All Turns] You may play 1 [Eiji Nagasumi] from this Digimon's digivolution cards without paying the cost.";
  854. cEntity_Base.SecurityEffectDiscription_JPN = "�y�Z�L�����e�B�z���̃J�[�h���R�X�g���x���킸�ɓo�ꂳ����B";
  855. cEntity_Base.SecurityEffectDiscription_ENG = "[Security] Play this card without paying its memory cost.";
  856. }
  857. if (cEntity_Base.CardID == "EX4-012")
  858. {
  859. cEntity_Base.EffectDiscription_JPN = "�y�i�����zDP6000�ȉ��̑���̃f�W����1�̂����ł�����B����̃f�W����1�̂��ƂɁA����DP���Ō��ʂ̏���{2000�B�y���݂��̃^�[���z�m�^�[����1��n����̃f�W���������ł����Ƃ��A�����̃e�C�}�[������Ȃ�A�ł�DP�̍�������̃f�W����1�̂����ł�����B";
  860. }
  861. if (cEntity_Base.CardID == "BT13-007")
  862. {
  863. cEntity_Base.EffectDiscription_ENG = "[Breeding] [Your Turn] All of your Digimon can't digivolve.\n[Breeding][Your Turn][Once Per Turn] When a [Royal Knight] trait Digimon card would be played, you may reduce the play cost by 4. Further reduce it by 1 for each of this Digimon's digivolution cards.\n[Breeding][Start of Your Main Phase] Reveal the top card of your Digi - Egg deck, then pllace that card and all of your [Royal Knight] trait Digimon as this Digimon as its bottom digivolution cards.";
  864. }
  865. if (cEntity_Base.CardID == "EX5-070")
  866. {
  867. cEntity_Base.EffectDiscription_JPN = "�����̃f�W����������ԁA���̃J�[�h�͐F�����𖳎��ł���B�y�Z�L�����e�B�z���̃J�[�h����D�ɉ�����B�y���C���z�i�����ɁuX�R�́v���Ȃ������̃f�W����1�̂���D�̓����ɁuX�R�́v�����ƒf�W�����J�[�h�Ɏx�����i���R�X�g-1�Ői���ł���B���������Ƃ��A���̃J�[�h�����̃f�W�����̐i�����̉��ɒu���B�q���[���r����:�uX�R�́v�Ƃ��Ă������B";
  868. cEntity_Base.EffectDiscription_ENG = "While you have a Digimon, you may ignore this card's color requirements.[Security] Add this card to its owner's hand.[Main] 1 of your Digimon without [X Antibody] in its digivolution cards may digivolve into a Digimon card with the [X Antibody] trait in your hand with the digivolution cost reduced by 1. If it did, place this card as its bottom digivolution card.[Rule] Name: Also treated as [X Antibody].";
  869. cEntity_Base.InheritedEffectDiscription_JPN = "�y���݂��̃^�[���z���̃f�W�����������̌��ʈȊO�Ńo�g���G���A�𗣂��Ƃ��A���̃f�W�����̐i��������A�f�W�����J�[�h1������D�ɖ߂��A�uX�R�́v1���������̃Z�L�����e�B�̏�ɒu���B";
  870. cEntity_Base.InheritedEffectDiscription_ENG = "[All Turns] When this Digimon would leave the battle area other than by one of your effects, from this Digimon's digivolution cards, return 1 Digimon card to the hand and place 1 [X Antibody] on top of your security stack.";
  871. cEntity_Base.SecurityEffectDiscription_JPN = "";
  872. cEntity_Base.SecurityEffectDiscription_ENG = "";
  873. }
  874. if (!string.IsNullOrEmpty(cEntity_Base.EffectDiscription_ENG))
  875. {
  876. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("and/or", "and");
  877. cEntity_Base.EffectDiscription_ENG = cEntity_Base.EffectDiscription_ENG.Replace("<br>", "");
  878. }
  879. if (!string.IsNullOrEmpty(cEntity_Base.InheritedEffectDiscription_ENG))
  880. {
  881. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("and/or", "and");
  882. cEntity_Base.InheritedEffectDiscription_ENG = cEntity_Base.InheritedEffectDiscription_ENG.Replace("<br>", "");
  883. }
  884. if (!string.IsNullOrEmpty(cEntity_Base.SecurityEffectDiscription_ENG))
  885. {
  886. cEntity_Base.SecurityEffectDiscription_ENG = cEntity_Base.SecurityEffectDiscription_ENG.Replace("and/or", "and");
  887. cEntity_Base.SecurityEffectDiscription_ENG = cEntity_Base.SecurityEffectDiscription_ENG.Replace("<br>", "");
  888. }
  889. #endregion
  890. #region �^�O���폜
  891. cEntity_Base.EffectDiscription_ENG = GetTagRemovedString(cEntity_Base.EffectDiscription_ENG);
  892. cEntity_Base.InheritedEffectDiscription_ENG = GetTagRemovedString(cEntity_Base.InheritedEffectDiscription_ENG);
  893. cEntity_Base.SecurityEffectDiscription_ENG = GetTagRemovedString(cEntity_Base.SecurityEffectDiscription_ENG);
  894. cEntity_Base.EffectDiscription_JPN = GetTagRemovedString(cEntity_Base.EffectDiscription_JPN);
  895. cEntity_Base.InheritedEffectDiscription_JPN = GetTagRemovedString(cEntity_Base.InheritedEffectDiscription_JPN);
  896. cEntity_Base.SecurityEffectDiscription_JPN = GetTagRemovedString(cEntity_Base.SecurityEffectDiscription_JPN);
  897. Debug.LogWarning(cEntity_Base.cardColors.Count);
  898. #endregion
  899. }
  900. static void AttachEnglishCardDataFromDigimonDev(CEntity_Base cEntity_Base)
  901. {
  902. string url = $"https://digimoncardgame.fandom.com/wiki/{cEntity_Base.CardID}";
  903. WebClient wc = new WebClient();
  904. wc.Encoding = Encoding.UTF8;
  905. string resultText = wc.DownloadString(url);
  906. List<string> parseByEnter = resultText.Split('\n').ToList();
  907. for (int i = 0; i < parseByEnter.Count; i++)
  908. {
  909. if (!string.IsNullOrEmpty(parseByEnter[i]))
  910. {
  911. bool replaceEmpty = true;
  912. if (i >= 3)
  913. {
  914. if (!string.IsNullOrEmpty(parseByEnter[i]) && (!string.IsNullOrEmpty(parseByEnter[i - 1]) || !string.IsNullOrEmpty(parseByEnter[i - 3])))
  915. {
  916. if (parseByEnter[i - 1].Contains("<td>Name</td>"))
  917. {
  918. replaceEmpty = false;
  919. }
  920. if (parseByEnter[i - 1].Contains("<td>Form</td>"))
  921. {
  922. replaceEmpty = false;
  923. }
  924. if (parseByEnter[i - 1].Contains("<td>Attribute</td>"))
  925. {
  926. replaceEmpty = false;
  927. }
  928. if (parseByEnter[i - 1].Contains("<td>Type</td>"))
  929. {
  930. replaceEmpty = false;
  931. }
  932. if ((parseByEnter[i - 3].Contains("Card Effect(s)") || parseByEnter[i - 3].Contains("CardEffect(s)")) && parseByEnter[i - 3].Contains("sectionheader"))
  933. {
  934. replaceEmpty = false;
  935. }
  936. if ((parseByEnter[i - 3].Contains("Inherited Effect") || parseByEnter[i - 3].Contains("InheritedEffect")) && parseByEnter[i - 3].Contains("sectionheader"))
  937. {
  938. replaceEmpty = false;
  939. }
  940. if ((parseByEnter[i - 3].Contains("Security Effect") || parseByEnter[i - 3].Contains("SecurityEffect")) && parseByEnter[i - 3].Contains("sectionheader"))
  941. {
  942. replaceEmpty = false;
  943. }
  944. }
  945. }
  946. parseByEnter[i] = parseByEnter[i].Replace("\t", "").Replace("\n", "").Trim();
  947. if (replaceEmpty)
  948. {
  949. parseByEnter[i] = parseByEnter[i].Replace(" ", "").Trim();
  950. }
  951. else
  952. {
  953. parseByEnter[i] = GetTagRemovedString(parseByEnter[i]);
  954. }
  955. }
  956. }
  957. for (int i = 0; i < parseByEnter.Count; i++)
  958. {
  959. if (!string.IsNullOrEmpty(parseByEnter[i]))
  960. {
  961. if (i >= 3)
  962. {
  963. if (!string.IsNullOrEmpty(parseByEnter[i]) && (!string.IsNullOrEmpty(parseByEnter[i - 1]) || !string.IsNullOrEmpty(parseByEnter[i - 3])))
  964. {
  965. //�J�[�h��
  966. if (parseByEnter[i - 1].Contains("<td>Name</td>"))
  967. {
  968. cEntity_Base.CardName_ENG = parseByEnter[i];
  969. }
  970. //�`��
  971. if (parseByEnter[i - 1].Contains("<td>Form</td>"))
  972. {
  973. if (!string.IsNullOrEmpty(parseByEnter[i]))
  974. {
  975. if (parseByEnter[i] != "-")
  976. {
  977. cEntity_Base.Form_ENG.Add(parseByEnter[i]);
  978. }
  979. }
  980. }
  981. //����
  982. if (parseByEnter[i - 1].Contains("<td>Attribute</td>"))
  983. {
  984. if (!string.IsNullOrEmpty(parseByEnter[i]))
  985. {
  986. if (parseByEnter[i] != "-")
  987. {
  988. cEntity_Base.Attribute_ENG.Add(parseByEnter[i]);
  989. }
  990. }
  991. }
  992. //�^�C�v
  993. if (parseByEnter[i - 1].Contains("<td>Type</td>"))
  994. {
  995. if (!string.IsNullOrEmpty(parseByEnter[i]))
  996. {
  997. if (parseByEnter[i] != "-")
  998. {
  999. string[] typeStrings = parseByEnter[i].Split('/');
  1000. foreach (string typeString in typeStrings)
  1001. {
  1002. if (!string.IsNullOrEmpty(typeString))
  1003. {
  1004. cEntity_Base.Type_ENG.Add(typeString);
  1005. }
  1006. }
  1007. }
  1008. }
  1009. }
  1010. //����
  1011. if ((parseByEnter[i - 3].Contains("Card Effect(s)") || parseByEnter[i - 3].Contains("CardEffect(s)")) && parseByEnter[i - 3].Contains("sectionheader"))
  1012. {
  1013. if (!string.IsNullOrEmpty(parseByEnter[i]))
  1014. {
  1015. if (parseByEnter[i] != "-")
  1016. {
  1017. cEntity_Base.EffectDiscription_ENG += parseByEnter[i];
  1018. }
  1019. }
  1020. }
  1021. //�i��������
  1022. if ((parseByEnter[i - 3].Contains("Inherited Effect") || parseByEnter[i - 3].Contains("InheritedEffect")) && parseByEnter[i - 3].Contains("sectionheader"))
  1023. {
  1024. if (!string.IsNullOrEmpty(parseByEnter[i]))
  1025. {
  1026. if (parseByEnter[i] != "-")
  1027. {
  1028. cEntity_Base.InheritedEffectDiscription_ENG += parseByEnter[i];
  1029. }
  1030. }
  1031. }
  1032. //�Z�L�����e�B����
  1033. if ((parseByEnter[i - 3].Contains("Security Effect") || parseByEnter[i - 3].Contains("SecurityEffect")) && parseByEnter[i - 3].Contains("sectionheader"))
  1034. {
  1035. if (!string.IsNullOrEmpty(parseByEnter[i]))
  1036. {
  1037. if (parseByEnter[i] != "-")
  1038. {
  1039. cEntity_Base.SecurityEffectDiscription_ENG += parseByEnter[i];
  1040. }
  1041. }
  1042. }
  1043. }
  1044. }
  1045. }
  1046. }
  1047. }
  1048. static string GetTagRemovedString(string text)
  1049. {
  1050. if (!string.IsNullOrEmpty(text))
  1051. {
  1052. while (text.Contains("<") && text.Contains(">"))
  1053. {
  1054. int startIndex = text.IndexOf("<");
  1055. int endIndex = text.IndexOf(">");
  1056. string s = text.Substring(startIndex, endIndex - startIndex + 1);
  1057. text = text.Replace(s, "");
  1058. }
  1059. text = DataBase.ReplaceToASCII(text);
  1060. }
  1061. return text;
  1062. }
  1063. }