Compare commits

...

3 Commits

  1. 3
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Bamboo.asset
  2. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Believer.asset
  3. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/BlackSheep.asset
  4. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Bomb.asset
  5. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Burrower.asset
  6. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Cactus.asset
  7. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/CoconutPalm.asset
  8. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Cultist.asset
  9. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/FireDragon.asset
  10. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Hibiscus.asset
  11. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Hippo.asset
  12. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/IceDragon.asset
  13. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Jimsonweed.asset
  14. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Lizard.asset
  15. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Lotus.asset
  16. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Mimic.asset
  17. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Penguin.asset
  18. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Rabbit.asset
  19. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Singularity.asset
  20. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Spruce.asset
  21. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Squirrel.asset
  22. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Sunflower.asset
  23. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Trash.asset
  24. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/TrashCan.asset
  25. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Treasure.asset
  26. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Void.asset
  27. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Willow.asset
  28. 4
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/black.asset
  29. 4
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/blue.asset
  30. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/holy.asset
  31. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/lava.asset
  32. 5
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/quicksand.asset
  33. 4
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/red.asset
  34. 4
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/white.asset
  35. 4
      ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/yellow.asset
  36. 2
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Bomb.prefab
  37. 2
      ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Mimic.prefab
  38. 3
      ColorlessWorld-2024-4-2/Assets/Scripts/StartChoosePoint/StartChooseCardManager.cs
  39. 16
      ColorlessWorld-2024-4-2/Assets/Scripts/Tool/MathTool.cs
  40. 59
      ColorlessWorld-2024-4-2/Assets/Scripts/Tool/Name.cs
  41. 575
      ColorlessWorld-2024-4-2/Assets/Scripts/Weapon/WeaponManager.cs
  42. 369
      ColorlessWorld-2024-4-2/Assets/TextMesh Pro/Resources/Fonts & Materials/OutLineSourceHanSansCN-Normal SDF 1.asset

3
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Bamboo.asset

@ -13,7 +13,8 @@ MonoBehaviour:
m_Name: Bamboo
m_EditorClassIdentifier:
materialName: "\u7AF9\u5B50"
materialInfor: "\u7AF9\u5B50"
materialInfor: "\u5982\u679C\u6709\u76F8\u90BB\u7684\u7AF9\u5B50\uFF0C+2\u5206"
materialNodeMark: Bamboo
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Believer.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Believer
m_EditorClassIdentifier:
materialName: Believer
materialInfor: Believer
materialName: "\u4FE1\u5F92"
materialInfor: "\u4E3A\u5468\u56F4\u989C\u8272\u6700\u591A\u7684\u5730\u5757\u63D0\u4F9B+6\u8BA1\u6570"
materialNodeMark: Believer
materialCount: 10
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/BlackSheep.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: BlackSheep
m_EditorClassIdentifier:
materialName: BlackSheep
materialInfor: BlackSheep
materialName: "\u9ED1\u7F8A"
materialInfor: "\u5728\u9ED1\u8272\u5730\u5757\u4E0A+4\u5206\uFF0C\u5426\u5219\u5C06\u5730\u5757\u8F6C\u5316\u4E3A\u9ED1\u8272"
materialNodeMark: BlackSheep
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Bomb.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Bomb
m_EditorClassIdentifier:
materialName: "\u7AF9\u5B50"
materialInfor: "\u7AF9\u5B50"
materialName: "\u70B8\u5F39"
materialInfor: "\u88AB\u51FB\u4E2D\u65F6\u7206\u70B8\uFF0C\u5BF9\u5468\u56F4\u8FDB\u884C\u67D3\u8272"
materialNodeMark: Bomb
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Burrower.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Burrower
m_EditorClassIdentifier:
materialName: Burrower
materialInfor: Burrower
materialName: "\u6316\u6398\u8005"
materialInfor: "+2\u5206,\u5982\u679C\u5728\u9EC4\u8272\u5730\u5757\u4E0A\uFF0C\u56DE\u5408\u7ED3\u675F\u65F6\u5C06\u5730\u5757\u8F6C\u5316\u4E3A\u6D41\u6C99\u5730\u5757"
materialNodeMark: Burrower
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Cactus.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Cactus
m_EditorClassIdentifier:
materialName: Cactus
materialInfor: Cactus
materialName: "\u4ED9\u4EBA\u638C"
materialInfor: "\u5728\u7EA2\u8272\u5730\u5757\u4E0A\u5219\u63D0\u4F9B+2\u7EA2\u8272\u5730\u5757\u6570\u91CF\uFF1B\u56DE\u5408\u7ED3\u675F\u5728\u84DD\u8272\u5730\u5757\u5219\u6D88\u5931"
materialNodeMark: Cactus
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/CoconutPalm.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: CoconutPalm
m_EditorClassIdentifier:
materialName: CoconutPalm
materialInfor: CoconutPalm
materialName: "\u6930\u6811"
materialInfor: "\u5728\u84DD\u8272\u5730\u5757\u4E0A+2\u5206"
materialNodeMark: CoconutPalm
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Cultist.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Cultist
m_EditorClassIdentifier:
materialName: "\u7AF9\u5B50"
materialInfor: "\u7AF9\u5B50"
materialName: "\u90AA\u6559\u5F92"
materialInfor: "\u56DE\u5408\u7ED3\u675F\u65F6\u5019\uFF0C\u727A\u7272\u81EA\u5DF1\uFF1B\u5982\u679C\u5468\u56F4\u6709\u6697\u9ED1\u5730\u5757\uFF0C\r\n\u5C06\u5176\u53D8\u4E3A\u8BC5\u5492\u5730\u5757\uFF0C\u5982\u679C\u6CA1\u6709\uFF0C\u5728\u5468\u56F4\u968F\u673A\u751F\u62103\u4E2A\u6697\u9ED1\u5730"
materialNodeMark: Cultist
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/FireDragon.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: FireDragon
m_EditorClassIdentifier:
materialName: FireDragon
materialInfor: FireDragon
materialName: "\u706B\u9F99"
materialInfor: "\u4E0D\u4F1A\u88AB\u5CA9\u6D46\u9500\u6BC1\uFF0C\u5728\u5CA9\u6D46\u5730\u5757\u4E0A+10\u5206"
materialNodeMark: FireDragon
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Hibiscus.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Hibiscus
m_EditorClassIdentifier:
materialName: Hibiscus
materialInfor: Hibiscus
materialName: "\u6276\u6851"
materialInfor: "\u5468\u56F4\u6BCF\u6709\u4E00\u4E2A\u767D\u8272\u5730\u5757+1\u5206"
materialNodeMark: Hibiscus
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Hippo.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Hippo
m_EditorClassIdentifier:
materialName: Hippo
materialInfor: Hippo
materialName: "\u6CB3\u9A6C"
materialInfor: "\u5728\u84DD\u8272\u5730\u5757\u4E0A+3\u5206\uFF0C\u5728\u9EC4\u8272\u5730\u5757\u4E0A+4\u9EC4\u8272\u8BA1\u6570\uFF0C\u5728\u7EA2\u8272\u5730\u5757\u4E0A-2\u5206"
materialNodeMark: Hippo
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/IceDragon.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: IceDragon
m_EditorClassIdentifier:
materialName: IceDragon
materialInfor: IceDragon
materialName: "\u51B0\u9F99"
materialInfor: "+5\u5206\uFF0C+5\u84DD\u8272\u8BA1\u6570"
materialNodeMark: IceDragon
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Jimsonweed.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Jimsonweed
m_EditorClassIdentifier:
materialName: Jimsonweed
materialInfor: Jimsonweed
materialName: "\u66FC\u9640\u7F57"
materialInfor: "\u5728\u9ED1\u8272\u5730\u5757\u4E0A+7\u5206\uFF0C\u5426\u5219-2\u5206"
materialNodeMark: Jimsonweed
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Lizard.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Lizard
m_EditorClassIdentifier:
materialName: Lizard
materialInfor: Lizard
materialName: "\u8725\u8734"
materialInfor: "\u5728\u7EA2\u8272\u5730\u5757\u4E0A+2\u5206\uFF0C+2\u7EA2\u8272\u8BA1\u6570"
materialNodeMark: Lizard
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Lotus.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Lotus
m_EditorClassIdentifier:
materialName: Lotus
materialInfor: Lotus
materialName: "\u83B2\u82B1"
materialInfor: "\u5728\u84DD\u8272\u5730\u5757\u4E0A+4\u5206\uFF0C\u5426\u5219\u6D88\u5931"
materialNodeMark: Lotus
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Mimic.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Mimic
m_EditorClassIdentifier:
materialName: Mimic
materialInfor: Mimic
materialName: "\u5B9D\u7BB1\u602A"
materialInfor: "\u88AB\u7834\u574F\u65F6\u5019+5\u5206\uFF0C\u5C06\u5468\u56F4\u67D3\u6210\u9ED1\u8272"
materialNodeMark: Mimic
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Penguin.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Penguin
m_EditorClassIdentifier:
materialName: Penguin
materialInfor: Penguin
materialName: "\u4F01\u9E45"
materialInfor: "\u5728\u84DD\u8272\u5730\u5757\u4E0A+1\u5206\uFF0C\u5728\u51B0\u971C\u5730\u5757\u4E0A+3\u5206"
materialNodeMark: Penguin
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Rabbit.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Rabbit
m_EditorClassIdentifier:
materialName: Rabbit
materialInfor: Rabbit
materialName: "\u5154\u5B50"
materialInfor: "\u5728\u767D\u8272\u5730\u5757\u4E0A+1\u5206\uFF0C+1\u767D\u8272\u5730\u5757\u8BA1\u6570"
materialNodeMark: Rabbit
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Singularity.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Singularity
m_EditorClassIdentifier:
materialName: Singularity
materialInfor: Singularity
materialName: "\u5947\u70B9"
materialInfor: "+12\u5206\uFF0C\u56DE\u5408\u7ED3\u675F\u65F6\u5019\uFF0C\u5468\u56F4\u7684\u5730\u5757\u6D88\u5931"
materialNodeMark: Singularity
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Spruce.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Spruce
m_EditorClassIdentifier:
materialName: Spruce
materialInfor: Spruce
materialName: "\u4E91\u6749"
materialInfor: "\u5728\u84DD\u8272\u5730\u5757\u4E0A\u5219\u63D0\u4F9B+2\u84DD\u8272\u5730\u5757\u6570\u91CF\uFF1B\u56DE\u5408\u7ED3\u675F\u5728\u7EA2\u8272\u5730\u5757\u5219\u6D88\u5931"
materialNodeMark: Spruce
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Squirrel.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Squirrel
m_EditorClassIdentifier:
materialName: Squirrel
materialInfor: Squirrel
materialName: "\u677E\u9F20"
materialInfor: "\u5728\u9EC4\u8272\u5730\u5757\u4E0A+3\u5206"
materialNodeMark: Squirrel
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Sunflower.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Sunflower
m_EditorClassIdentifier:
materialName: Sunflower
materialInfor: Sunflower
materialName: "\u5411\u65E5\u8475"
materialInfor: "\u5728\u767D\u8272\u5730\u5757\u4E0A+5\u5206"
materialNodeMark: Sunflower
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Trash.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Trash
m_EditorClassIdentifier:
materialName: Trash
materialInfor: Trash
materialName: "\u5783\u573E"
materialInfor: "\u53EF\u4EE5\u88AB\u5723\u5149\u5730\u5757\u8F6C\u5316\u4E3A\u91D1\u5783\u573E,\u91D1\u5783\u573E\u6C38\u4E45+3\u5206"
materialNodeMark: Trash
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/TrashCan.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: TrashCan
m_EditorClassIdentifier:
materialName: TrashCan
materialInfor: TrashCan
materialName: "\u5783\u573E\u6876"
materialInfor: "\u56DE\u5408\u7ED3\u675F\u65F6\uFF0C\u5982\u679C\u5728\u9ED1\u8272\u5730\u5757\uFF0C\u5219\u6D88\u5931\u5E76\u4E14\u5728\u5468\u56F4\u751F\u6210\u4E09\u4E2A\u5783\u573E"
materialNodeMark: TrashCan
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Treasure.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Treasure
m_EditorClassIdentifier:
materialName: Treasure
materialInfor: Treasure
materialName: "\u5B9D\u7BB1"
materialInfor: "\u88AB\u7834\u574F\u65F6\u5019+5\u5206"
materialNodeMark: Treasure
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Void.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Void
m_EditorClassIdentifier:
materialName: Void
materialInfor: Void
materialName: "\u865A\u65E0\u5730\u5757"
materialInfor: "+2\u9ED1\u8272\u8BA1\u6570\uFF0C\u4E0D\u53EF\u9009\u4E2D"
materialNodeMark: Void
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/Willow.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: Willow
m_EditorClassIdentifier:
materialName: Willow
materialInfor: Willow
materialName: "\u67F3\u6811"
materialInfor: "\u5728\u9EC4\u8272\u5730\u5757\u4E0A\u5219\u63D0\u4F9B+3\u9EC4\u8272\u5730\u5757\u6570\u91CF"
materialNodeMark: Willow
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

4
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/black.asset

@ -12,8 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: black
m_EditorClassIdentifier:
materialName: black
materialInfor: black
materialName: "\u9ED1\u8272\u5730\u5757"
materialInfor: "\u666E\u901A\u7684\u9ED1\u8272\u5730\u5757"
materialNodeMark: black
materialCount: 0
materialIcon: {fileID: 0}

4
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/blue.asset

@ -12,8 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: blue
m_EditorClassIdentifier:
materialName: blue
materialInfor: blue
materialName: "\u84DD\u8272\u5730\u5757"
materialInfor: "\u666E\u901A\u7684\u84DD\u8272\u5730\u5757"
materialNodeMark: blue
materialCount: 7
materialIcon: {fileID: 0}

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/holy.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: holy
m_EditorClassIdentifier:
materialName: holy
materialInfor: holy
materialName: "\u795E\u5723\u5730\u5757"
materialInfor: "\u63D0\u4F9B+2\u767D\u8272\u5730\u5757\u8BA1\u6570\uFF0C\u4E0D\u80FD\u88AB\u8F6C\u5316"
materialNodeMark: holy
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/lava.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: lava
m_EditorClassIdentifier:
materialName: lava
materialInfor: lava
materialName: "\u5CA9\u6D46\u5730\u5757"
materialInfor: "\u8F6C\u5316\u65F6\uFF0C\u9500\u6BC1\u5730\u5757\u4E0A\u7684\u7269\u54C1"
materialNodeMark: lava
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

5
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/quicksand.asset

@ -12,8 +12,9 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: quicksand
m_EditorClassIdentifier:
materialName: quicksand
materialInfor: quicksand
materialName: "\u6D41\u6C99\u5730\u5757"
materialInfor: "+3\u9EC4\u8272\u8BA1\u6570\uFF0C\u88AB\u8F6C\u5316\u65F6\u5730\u5757\u6D88\u5931"
materialNodeMark: quicksand
materialCount: 0
materialIcon: {fileID: 0}
isMapNode: 0

4
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/red.asset

@ -12,8 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: red
m_EditorClassIdentifier:
materialName: red
materialInfor: red
materialName: "\u7EA2\u8272\u5730\u5757"
materialInfor: "\u666E\u901A\u7684\u7EA2\u8272\u5730\u5757"
materialNodeMark: red
materialCount: 8
materialIcon: {fileID: 0}

4
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/white.asset

@ -12,8 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: white
m_EditorClassIdentifier:
materialName: white
materialInfor: white
materialName: "\u767D\u8272\u5730\u5757"
materialInfor: "\u666E\u901A\u7684\u767D\u8272\u5730\u5757"
materialNodeMark: white
materialCount: 0
materialIcon: {fileID: 0}

4
ColorlessWorld-2024-4-2/Assets/Resources/BagForgerMaterial/yellow.asset

@ -12,8 +12,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 18573bd1077d91f4a9759573a9a4afbe, type: 3}
m_Name: yellow
m_EditorClassIdentifier:
materialName: yellow
materialInfor: yellow
materialName: "\u9EC4\u8272\u5730\u5757"
materialInfor: "\u666E\u901A\u7684\u9EC4\u8272\u5730\u5757"
materialNodeMark: yellow
materialCount: 8
materialIcon: {fileID: 0}

2
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Bomb.prefab

@ -406,7 +406,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u88AB\u51FB\u4E2D\u65F6\u7206\u70B8"
m_text: "\u88AB\u51FB\u4E2D\u65F6\u7206\u70B8\uFF0C\u5BF9\u5468\u56F4\u8FDB\u884C\u67D3\u8272"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}

2
ColorlessWorld-2024-4-2/Assets/Resources/ItemPrefab/Mimic.prefab

@ -406,7 +406,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u88AB\u7834\u574F\u65F6\u5019+5\u5206\uFF0C\u5C06\u5468\u56F4\u67D3\u6210\u9ED1"
m_text: "\u88AB\u7834\u574F\u65F6\u5019+5\u5206\uFF0C\u5C06\u5468\u56F4\u67D3\u6210\u9ED1\u8272"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d12673ed3c85b3743b660f41c0db6c7b, type: 2}
m_sharedMaterial: {fileID: -4989954011452443200, guid: d12673ed3c85b3743b660f41c0db6c7b,

3
ColorlessWorld-2024-4-2/Assets/Scripts/StartChoosePoint/StartChooseCardManager.cs

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using TMPro;
using UnityEngine;
using static Name;
@ -225,7 +226,7 @@ public class StartChooseCardManager : Singleton<StartChooseCardManager>
{
Transform weaponNode = weaponSlot.GetChild(0);
WeaponNode node = weaponNode.transform.GetComponent<WeaponNode>();
if (Name.WeaponNodeFunction.PlayerBasicAddScoreResultSet.Contains(node.result))
if (Name.WeaponNodeFunction.PlayerBasicAddScoreResultSet.Keys.ToList().Contains(node.result))
{
Debug.Log("³É¹¦½øÈë3");
result =false;

16
ColorlessWorld-2024-4-2/Assets/Scripts/Tool/MathTool.cs

@ -43,7 +43,23 @@ public class MathTool
return numbers;
}
public static string GetRandomString(Dictionary<string, float> pool)
{
System.Random random = new System.Random();
float totalWeight = pool.Values.Sum();
float randomNumber = (float)random.NextDouble() * totalWeight;
float cumulativeWeight = 0f;
foreach (var action in pool)
{
cumulativeWeight += action.Value;
if (randomNumber <= cumulativeWeight)
{
return action.Key;
}
}
return pool.Keys.Last();
}
public static HashSet<string> GenerateIntegerSet(int a, int b)
{
HashSet<string> result = new HashSet<string>();

59
ColorlessWorld-2024-4-2/Assets/Scripts/Tool/Name.cs

@ -48,7 +48,7 @@ public static class Name
public const string CompulsiveArcanist = "CompulsiveArcanist";
public const string CultHierophant = "CultHierophant";
public static readonly HashSet<string> EnemySet = new HashSet<string> { CultHierophant, CompulsiveArcanist, BlastJester, Pontiff };
public static readonly HashSet<string> EnemySet = new HashSet<string> { CultHierophant, BlastJester, Pontiff };
}
public const string value = "value";
@ -1175,17 +1175,20 @@ public static class Name
public static readonly HashSet<string> PlayerConditionSet= new HashSet<string> { cardConditionPattern
,node,everyNumNodeConvert,everyColorNodeConvert};
public static readonly HashSet<string> PlayerBasicConditionSet = new HashSet<string> { cardConditionPattern,
node,everyColorNodeConvert};
public static readonly Dictionary<string, float> PlayerBasicConditionSet = new Dictionary<string, float>() { {cardConditionPattern, 0.2f },
{ node,0.2f },{everyNumNodeConvert,0.1f },{none,0.5f }};
public static readonly HashSet<string> PlayerElementaryConditionSet = new HashSet<string> { cardConditionPattern
,node,everyNumNodeConvert,everyColorNodeConvert};
public static readonly Dictionary<string, float> PlayerSimpleConditionSet = new Dictionary<string, float>() { {cardConditionPattern, 0.3f },
{ node,0.3f },{everyColorNodeConvert,0.2f },{everyNumNodeConvert,0.2f }};
public static readonly HashSet<string> PlayerIntermediateConditionSet = new HashSet<string> { cardConditionPattern
,node,everyNumNodeConvert,everyColorNodeConvert};
public static readonly Dictionary<string, float> PlayerElementaryConditionSet = new Dictionary<string, float>() { {cardConditionPattern, 0.3f },
{ node,0.3f },{everyColorNodeConvert,0.2f },{everyNumNodeConvert,0.2f }};
public static readonly HashSet<string> PlayerAdvancedConditionSet = new HashSet<string> { cardConditionPattern
,node};
public static readonly Dictionary<string, float> PlayerIntermediateConditionSet = new Dictionary<string, float>() { {cardConditionPattern, 0.3f },
{ node,0.3f },{everyColorNodeConvert,0.2f },{everyNumNodeConvert,0.2f }};
public static readonly Dictionary<string, float> PlayerAdvancedConditionSet = new Dictionary<string, float>() { {cardConditionPattern, 0.5f },
{ node,0.5f }};
}
@ -1301,38 +1304,47 @@ public static class Name
public static readonly HashSet<string> PlayerResultSet = new HashSet<string> { addScore,mulScore, repetWeaponNode, redNodeCount, blueNodeCount
,yellowNodeCount,mostNodeCount,leastNodeCount,allNodeCount,drawCard,isIgnoreCondition,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly HashSet<string> PlayerBasicResultSet = new HashSet<string> { addScore, redNodeCount, blueNodeCount
,yellowNodeCount,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly Dictionary<string, float> PlayerBasicResultSet = new Dictionary<string, float> { {addScore,0.4f}, {redNodeCount, 0.1f }, {blueNodeCount,0.1f}
,{yellowNodeCount,0.1f},{ everyRedNodeAddScore,0.1f},{ everyYellowNodeAddScore,0.1f},{everyBlueNodeAddScore,0.1f}};
public static readonly Dictionary<string, float> PlayerSimpleResultSet = new Dictionary<string, float> { {addScore,0.4f}, {redNodeCount, 0.1f }, {blueNodeCount,0.1f}
,{yellowNodeCount,0.1f},{ everyRedNodeAddScore,0.1f},{ everyYellowNodeAddScore,0.1f},{everyBlueNodeAddScore,0.1f}};
public static readonly HashSet<string> PlayerBasicAddScoreResultSet = new HashSet<string> { addScore
,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly Dictionary<string, float> PlayerBasicAddScoreResultSet = new Dictionary<string, float> { {addScore, 0.55f }
, {everyRedNodeAddScore,0.15f},{everyYellowNodeAddScore,0.15f},{everyBlueNodeAddScore,0.15f}};
public static readonly HashSet<string> PlayerElementaryResultSet = new HashSet<string> { addScore, redNodeCount, blueNodeCount
,yellowNodeCount,mostNodeCount,leastNodeCount,drawCard,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly Dictionary<string, float> PlayerElementaryResultSet = new Dictionary<string, float> { { addScore, 0.1f }, { redNodeCount, 0.1f }, {blueNodeCount, 0.1f }
,{yellowNodeCount, 0.1f },{mostNodeCount, 0.1f },{leastNodeCount, 0.1f },{drawCard, 0.1f },{everyRedNodeAddScore, 0.1f },{everyYellowNodeAddScore, 0.1f },{everyBlueNodeAddScore, 0.1f }};
public static readonly HashSet<string> PlayerIntermediateResultSet = new HashSet<string> { addScore,mulScore, repetWeaponNode, redNodeCount, blueNodeCount
,yellowNodeCount,mostNodeCount,leastNodeCount,allNodeCount,drawCard,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly Dictionary<string, float> PlayerIntermediateResultSet = new Dictionary<string, float> { { addScore, 0.1f }, { mulScore, 0.05f }, {repetWeaponNode, 0.05f },
{redNodeCount, 0.1f }, {blueNodeCount, 0.1f }
,{yellowNodeCount, 0.1f },{mostNodeCount, 0.05f },{leastNodeCount, 0.05f },{allNodeCount, 0.05f },{drawCard, 0.05f },
{everyRedNodeAddScore, 0.1f },{everyYellowNodeAddScore, 0.1f },{everyBlueNodeAddScore, 0.1f }};
public static readonly HashSet<string> PlayerAdvancedResultSet = new HashSet<string> { addScore,mulScore, repetWeaponNode
,mostNodeCount,allNodeCount,everyRedNodeAddScore,everyYellowNodeAddScore,everyBlueNodeAddScore};
public static readonly Dictionary<string, float> PlayerAdvancedResultSet = new Dictionary<string, float> { { addScore, 0.3f }, { mulScore, 0.1f }, {repetWeaponNode, 0.1f }
,{mostNodeCount, 0.1f },{allNodeCount, 0.1f },{everyRedNodeAddScore, 0.1f },{everyYellowNodeAddScore, 0.1f },{everyBlueNodeAddScore, 0.1f }};
}
public static class WeaponNodeLevel
{
public const string Basic = "Basic";
public const string Simple = "Simple";
public const string Elementary = "Elementary";
public const string Intermediate = "Intermediate";
public const string Advanced = "Advanced";
public static readonly HashSet<string> WeaponNodeLevelSet = new HashSet<string> { Basic,Elementary,Intermediate,Advanced};
public static readonly HashSet<string> WeaponNodeLevelSet = new HashSet<string> { Basic, Simple,Elementary, Intermediate,Advanced};
public static readonly HashSet<string> WeaponNodeLevelSetWithoutBasic = new HashSet<string> { Basic, Simple, Elementary, Intermediate, Advanced };
}
public static class EveryNodeAddScoreResultSet
{
public static readonly HashSet<string> BasiclSet = new HashSet<string> { "4_1" };
public static readonly HashSet<string> ElementarySet = new HashSet<string> { "3_1" };
public static readonly HashSet<string> IntermediateSet = new HashSet<string> { "2_1" };
public static readonly HashSet<string> AdvancedSet = new HashSet<string> { "1_1" };
public static readonly HashSet<string> BasiclWithoutConditionSet = new HashSet<string> { "5_1" };
public static readonly HashSet<string> SimpleSet = new HashSet<string> { "3_1" };
public static readonly HashSet<string> ElementarySet = new HashSet<string> { "2_1" };
public static readonly HashSet<string> IntermediateSet = new HashSet<string> { "1_1" };
public static readonly HashSet<string> AdvancedSet = new HashSet<string> { "1_2" };
}
public static class DomainFunction
@ -1398,7 +1410,6 @@ public static class Name
public static class Condition
{
public const string None = "none";
public const string Node = "node";
}
public static class EnemyPool

575
ColorlessWorld-2024-4-2/Assets/Scripts/Weapon/WeaponManager.cs

@ -169,7 +169,7 @@ public class WeaponManager : Singleton<WeaponManager>
public GameObject getRandomWeaponNodeForPlayer()
{
string level= MathTool.GetRandomElements(Name.WeaponNodeLevel.WeaponNodeLevelSet,1).ElementAt(0);
string level= MathTool.GetRandomElements(Name.WeaponNodeLevel.WeaponNodeLevelSetWithoutBasic, 1).ElementAt(0);
return getRandomWeaponNodeForPlayerWithLevel(level);
}
@ -177,20 +177,23 @@ public class WeaponManager : Singleton<WeaponManager>
{
GameObject gem = Instantiate(Resources.Load<GameObject>(Name.WeaponNode.PrefabPath + Name.WeaponNode.PrefabName));
string condition = "";
HashSet<string> resultSet = new HashSet<string>();
Dictionary<string, float> resultSet = new Dictionary<string, float>();
switch (level)
{
case Name.WeaponNodeLevel.Basic:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerBasicConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerBasicConditionSet);
break;
case Name.WeaponNodeLevel.Simple:
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerSimpleConditionSet);
break;
case Name.WeaponNodeLevel.Elementary:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerElementaryConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerElementaryConditionSet);
break;
case Name.WeaponNodeLevel.Intermediate:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerIntermediateConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerIntermediateConditionSet);
break;
case Name.WeaponNodeLevel.Advanced:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerAdvancedConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerAdvancedConditionSet);
break;
}
@ -203,6 +206,9 @@ public class WeaponManager : Singleton<WeaponManager>
case Name.WeaponNodeLevel.Basic:
resultSet = Name.WeaponNodeFunction.PlayerBasicResultSet;
break;
case Name.WeaponNodeLevel.Simple:
resultSet = Name.WeaponNodeFunction.PlayerSimpleResultSet;
break;
case Name.WeaponNodeLevel.Elementary:
resultSet = Name.WeaponNodeFunction.PlayerElementaryResultSet;
break;
@ -217,7 +223,7 @@ public class WeaponManager : Singleton<WeaponManager>
string resultValue = "";
conditionValue = getConditionValueWithLevel(level,ref condition, ref nodesMark, ref nodesColor);
checkResultSetRationality(ref resultSet, condition);
result = MathTool.GetRandomElements(resultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(resultSet);
resultValue = getResultValueWithLevel(level,ref result, condition, conditionValue);
WeaponNode weaponNode = gem.GetComponent<WeaponNode>();
weaponNode.result = result;
@ -229,7 +235,7 @@ public class WeaponManager : Singleton<WeaponManager>
return gem;
}
public string getEveryNodeAddScoreValue(string level)
public string getEveryNodeAddScoreValue(string level,string condition)
{
string resultValue = "";
HashSet<string> resultSet = new HashSet<string>();
@ -237,6 +243,10 @@ public class WeaponManager : Singleton<WeaponManager>
{
case Name.WeaponNodeLevel.Basic:
resultSet = Name.EveryNodeAddScoreResultSet.BasiclSet;
if (condition.Equals(Name.none))
{
resultSet = Name.EveryNodeAddScoreResultSet.BasiclWithoutConditionSet;
}
break;
case Name.WeaponNodeLevel.Elementary:
resultSet = Name.EveryNodeAddScoreResultSet.ElementarySet;
@ -252,7 +262,7 @@ public class WeaponManager : Singleton<WeaponManager>
resultValue = MathTool.GetRandomElements(resultSet, 1).ElementAt(0);
return resultValue;
}
public void checkResultSetRationality(ref HashSet<string> set,string condition)
public void checkResultSetRationality(ref Dictionary<string, float> set,string condition)
{
Match match = System.Text.RegularExpressions.Regex.Match(condition, Name.Regex.cardConditionPattern);
if (match.Success)
@ -327,7 +337,7 @@ public class WeaponManager : Singleton<WeaponManager>
}
}
//屏蔽策略
public void resultBlockingPolicy(string firstPart, ref HashSet<string> set)
public void resultBlockingPolicy(string firstPart, ref Dictionary<string, float> set)
{
switch (firstPart)
{
@ -373,16 +383,19 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerBasicConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerBasicConditionSet);
break;
case Name.WeaponNodeLevel.Simple:
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerSimpleConditionSet);
break;
case Name.WeaponNodeLevel.Elementary:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerElementaryConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerElementaryConditionSet);
break;
case Name.WeaponNodeLevel.Intermediate:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerIntermediateConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerIntermediateConditionSet);
break;
case Name.WeaponNodeLevel.Advanced:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerAdvancedConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerAdvancedConditionSet);
break;
}
@ -402,12 +415,15 @@ public class WeaponManager : Singleton<WeaponManager>
{
WeaponNodeDataPair resultData = new WeaponNodeDataPair();
//string result = "";
HashSet<string> resultSet = new HashSet<string>();
Dictionary<string, float> resultSet = new Dictionary<string, float>();
switch (level)
{
case Name.WeaponNodeLevel.Basic:
resultSet = Name.WeaponNodeFunction.PlayerBasicResultSet;
break;
case Name.WeaponNodeLevel.Simple:
resultSet = Name.WeaponNodeFunction.PlayerSimpleResultSet;
break;
case Name.WeaponNodeLevel.Elementary:
resultSet = Name.WeaponNodeFunction.PlayerElementaryResultSet;
break;
@ -419,7 +435,7 @@ public class WeaponManager : Singleton<WeaponManager>
break;
}
checkResultSetRationality(ref resultSet, condition);
string result = MathTool.GetRandomElements(resultSet, 1).ElementAt(0);
string result = MathTool.GetRandomString(resultSet);
string resultValue = getResultValueWithLevel(level, ref result, condition, Name.none);
resultData.conditionOrResult = result;
resultData.value = resultValue;
@ -430,20 +446,23 @@ public class WeaponManager : Singleton<WeaponManager>
{
GameObject gem = Instantiate(Resources.Load<GameObject>(Name.WeaponNode.PrefabPath + Name.WeaponNode.PrefabName));
string condition = "";
HashSet<string> resultSet= new HashSet<string>();
Dictionary<string, float> resultSet = new Dictionary<string, float>();
switch (level)
{
case Name.WeaponNodeLevel.Basic:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerBasicConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerBasicConditionSet);
break;
case Name.WeaponNodeLevel.Simple:
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerSimpleConditionSet);
break;
case Name.WeaponNodeLevel.Elementary:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerElementaryConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerElementaryConditionSet);
break;
case Name.WeaponNodeLevel.Intermediate:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerIntermediateConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerIntermediateConditionSet);
break;
case Name.WeaponNodeLevel.Advanced:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerAdvancedConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerAdvancedConditionSet);
break;
}
@ -455,7 +474,7 @@ public class WeaponManager : Singleton<WeaponManager>
string resultValue = "";
conditionValue = getConditionValueWithLevel(level, ref condition, ref nodesMark, ref nodesColor);
checkResultSetRationality(ref resultSet, condition);
result = MathTool.GetRandomElements(resultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(resultSet);
resultValue = getResultValueWithLevel(level, ref result, condition, conditionValue);
WeaponNode weaponNode = gem.GetComponent<WeaponNode>();
weaponNode.result = result;
@ -466,7 +485,7 @@ public class WeaponManager : Singleton<WeaponManager>
weaponNode.nodesColor = nodesColor.ToArray();
return gem;
}
public GameObject getRandomWeaponNodeForPlayerWithLevelDiff(int levelDiff)
/*public GameObject getRandomWeaponNodeForPlayerWithLevelDiff(int levelDiff)
{
GameObject gem = Instantiate(Resources.Load<GameObject>(Name.WeaponNode.PrefabPath + Name.WeaponNode.PrefabName));
string condition = "";
@ -496,7 +515,7 @@ public class WeaponManager : Singleton<WeaponManager>
switch (conditionLevel)
{
case Name.WeaponNodeLevel.Basic:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerBasicConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerBasicConditionSet);
break;
case Name.WeaponNodeLevel.Elementary:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerElementaryConditionSet, 1).ElementAt(0);
@ -515,16 +534,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 3:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
@ -533,16 +552,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -550,16 +569,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -567,16 +586,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -3:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case -2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -592,16 +611,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (resultLevel)
{
case Name.WeaponNodeLevel.Basic:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case Name.WeaponNodeLevel.Elementary:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case Name.WeaponNodeLevel.Intermediate:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case Name.WeaponNodeLevel.Advanced:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
@ -617,7 +636,7 @@ public class WeaponManager : Singleton<WeaponManager>
weaponNode.nodesMark = nodesMark.ToArray();
weaponNode.nodesColor = nodesColor.ToArray();
return gem;
}
}*/
public GameObject getRandomWeaponNodeForPlayerWithLevelDiffAndConditionlevel(int levelDiff,string conditionLevel)
{
@ -629,16 +648,19 @@ public class WeaponManager : Singleton<WeaponManager>
switch (conditionLevel)
{
case Name.WeaponNodeLevel.Basic:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerBasicConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerBasicConditionSet);
break;
case Name.WeaponNodeLevel.Simple:
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerSimpleConditionSet);
break;
case Name.WeaponNodeLevel.Elementary:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerElementaryConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerElementaryConditionSet);
break;
case Name.WeaponNodeLevel.Intermediate:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerIntermediateConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerIntermediateConditionSet);
break;
case Name.WeaponNodeLevel.Advanced:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerAdvancedConditionSet, 1).ElementAt(0);
condition = MathTool.GetRandomString(Name.WeaponNodeCondition.PlayerAdvancedConditionSet);
break;
}
@ -648,16 +670,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 3:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
@ -666,16 +688,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -683,16 +705,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -700,16 +722,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (levelDiff)
{
case -3:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case -2:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case -1:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case 0:
resultLevel = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
resultLevel = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
break;
@ -725,16 +747,16 @@ public class WeaponManager : Singleton<WeaponManager>
switch (resultLevel)
{
case Name.WeaponNodeLevel.Basic:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerBasicResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerBasicResultSet);
break;
case Name.WeaponNodeLevel.Elementary:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerElementaryResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerElementaryResultSet);
break;
case Name.WeaponNodeLevel.Intermediate:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerIntermediateResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerIntermediateResultSet);
break;
case Name.WeaponNodeLevel.Advanced:
result = MathTool.GetRandomElements(Name.WeaponNodeFunction.PlayerAdvancedResultSet, 1).ElementAt(0);
result = MathTool.GetRandomString(Name.WeaponNodeFunction.PlayerAdvancedResultSet);
break;
}
@ -753,133 +775,7 @@ public class WeaponManager : Singleton<WeaponManager>
}
public string getConditionValueWithLevel(string level,ref string condition, ref List<string> nodesMark, ref List<string> nodesColor)
{
string conditionValue = "";
switch (condition)
{
case Name.WeaponNodeCondition.position:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.positionUnused:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.positionUsed:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.diffSettle:
conditionValue = Name.none;
break;
case Name.WeaponNodeCondition.usedCard:
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "1" }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "2", }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "3" }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "4"}, 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.threeColorDiffMoreThan:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "3", "4", "5" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.everyNumNodeConvert:
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 11), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 6), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 4), 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.everyColorNodeConvert:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerColorConvertSet, 1).ElementAt(0);
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 6), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 5), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 4), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 3), 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.bombbomb:
conditionValue = Name.none;
break;
case Name.WeaponNodeCondition.node:
conditionValue = Name.none;
HashSet<string> nodesA = new HashSet<string>();
switch (level)
{
case Name.WeaponNodeLevel.Basic:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 3);
break;
case Name.WeaponNodeLevel.Elementary:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 4);
break;
case Name.WeaponNodeLevel.Intermediate:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 5);
break;
case Name.WeaponNodeLevel.Advanced:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 6);
break;
}
nodesA.Add("0_0");
nodesMark = nodesA.ToList();
for (int i = 0; i < nodesA.Count; i++)
{
nodesColor.Add(MathTool.GetRandomElements(new HashSet<string> { Name.Color.Red, Name.Color.Blue, Name.Color.Yellow }, 1).ElementAt(0));
}
break;
case Name.WeaponNodeCondition.cardConditionPattern:
conditionValue = Name.none;
StringBuilder sb = new StringBuilder();
sb.Append(MathTool.GetRandomElements(new HashSet<string> { Name.Color.Red, Name.Color.Blue, Name.Color.Yellow }, 1).ElementAt(0))
.Append(MathTool.GetRandomElements(new HashSet<string> { "<", ">" }, 1).ElementAt(0));
string part3 = "";
switch (level)
{
case Name.WeaponNodeLevel.Basic:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 15), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(18, 24), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(35, 45), 1).ElementAt(0);
break;
}
sb.Append(part3);
condition = sb.ToString();
break;
}
return conditionValue;
}
public string getConditionValueWithLevelForForge(string level, ref string condition, ref List<string> nodesMark, ref List<string> nodesColor,string result)
{
@ -924,6 +820,9 @@ public class WeaponManager : Singleton<WeaponManager>
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 11), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(9, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 9), 1).ElementAt(0);
break;
@ -940,6 +839,9 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 7), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 6), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
@ -962,6 +864,9 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 2);
break;
case Name.WeaponNodeLevel.Simple:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 3);
break;
case Name.WeaponNodeLevel.Elementary:
@ -991,7 +896,10 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 9), 1).ElementAt(0);
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 7), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(8, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 15), 1).ElementAt(0);
@ -1010,7 +918,25 @@ public class WeaponManager : Singleton<WeaponManager>
return conditionValue;
}
public string getResultValueWithLevel(string level,ref string result, string condition, string conditionValue)
public void loadEnemyWeaponNode(int position, GameObject weaponNode)
{
Transform weaponSlot = enemyWeaponNodeList.GetChild(position);
if (weaponSlot != null)
{
ClearAllChildren(weaponSlot);
weaponNode.transform.SetParent(weaponSlot.transform, true);
weaponNode.transform.localPosition = Vector3.zero;
weaponNode.transform.localEulerAngles = Vector3.zero;
weaponNode.transform.localScale = Vector3.one;
}
}
public string getResultValueWithLevel(string level, ref string result, string condition, string conditionValue)
{
string resultValue = "";
HashSet<string> resultSet = new HashSet<string>();
@ -1020,13 +946,20 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 7), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 6), 1).ElementAt(0);
if (condition.Equals(Name.none))
{
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 4), 1).ElementAt(0);
}
break;
case Name.WeaponNodeLevel.Simple:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(8, 12), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 13), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(13, 18), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(14, 18), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(23, 30), 1).ElementAt(0);
@ -1056,6 +989,13 @@ public class WeaponManager : Singleton<WeaponManager>
{
case Name.WeaponNodeLevel.Basic:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 8), 1).ElementAt(0);
if (condition.Equals(Name.none))
{
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 5), 1).ElementAt(0);
}
break;
case Name.WeaponNodeLevel.Simple:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(9, 10), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(11, 17), 1).ElementAt(0);
@ -1072,10 +1012,17 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Basic:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 4), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 3), 1).ElementAt(0);
if (condition.Equals(Name.none))
{
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(2, 2), 1).ElementAt(0);
}
break;
case Name.WeaponNodeLevel.Simple:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 5), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 7), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 7), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(8, 10), 1).ElementAt(0);
@ -1089,20 +1036,20 @@ public class WeaponManager : Singleton<WeaponManager>
switch (level)
{
case Name.WeaponNodeLevel.Elementary:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(1, 2), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(1, 1), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 3), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(2, 2), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 5), 1).ElementAt(0);
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 3), 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeFunction.everyRedNodeAddScore:
case Name.WeaponNodeFunction.everyYellowNodeAddScore:
case Name.WeaponNodeFunction.everyBlueNodeAddScore:
resultValue = getEveryNodeAddScoreValue(level);
resultValue = getEveryNodeAddScoreValue(level,condition);
break;
case Name.NodeItem.Volcano:
switch (level)
@ -1110,6 +1057,9 @@ public class WeaponManager : Singleton<WeaponManager>
case Name.WeaponNodeLevel.Basic:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(1, 1), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(1, 1), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
resultValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(2, 2), 1).ElementAt(0);
break;
@ -1130,62 +1080,50 @@ public class WeaponManager : Singleton<WeaponManager>
resultValue = MathTool.GetRandomElements(targets, 1).ElementAt(0);
break;
}
if (Name.WeaponNodeCondition.PlayerConvertSet.Contains(condition)&&result.Equals(Name.WeaponNodeFunction.addScore))
if (Name.WeaponNodeCondition.PlayerConvertSet.Contains(condition) && result.Equals(Name.WeaponNodeFunction.addScore))
{
result = Name.WeaponNodeFunction.addScoreThisTurn;
}
return resultValue;
}
public void loadEnemyWeaponNode(int position, GameObject weaponNode)
{
Transform weaponSlot = enemyWeaponNodeList.GetChild(position);
if (weaponSlot != null)
{
ClearAllChildren(weaponSlot);
weaponNode.transform.SetParent(weaponSlot.transform, true);
weaponNode.transform.localPosition = Vector3.zero;
weaponNode.transform.localEulerAngles = Vector3.zero;
weaponNode.transform.localScale = Vector3.one;
}
}
public string getWeaponNodeResultRarity(string result, string resultValue)
{
string rarity=Name.none;
Dictionary<string,HashSet<string>> addScoreDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(5, 7) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(8, 12) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(13, 18) },
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(4, 6) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(7, 9) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(10, 13) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(14, 18) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(23, 30) }};
Dictionary<string, HashSet<string>> mulScoreDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(1, 3) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(4, 6) }};
Dictionary<string, HashSet<string>> nodeCountDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(6, 8) },
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(5, 8) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(9, 10) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(11, 17) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(20, 24) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(30, 35) }};
Dictionary<string, HashSet<string>> allNodeCountDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(3, 4) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(5, 7) },
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(2, 3) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(4, 5) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(6, 7) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(8, 10) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(11, 15) }};
Dictionary<string, HashSet<string>> drawCardDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(1, 2) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(3, 3) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(4, 5) }};
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(1, 1) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(2, 2) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(3, 3) }};
Dictionary<string, HashSet<string>> everyNodeAddScoreDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, Name.EveryNodeAddScoreResultSet.BasiclSet },
{ Name.WeaponNodeLevel.Simple, Name.EveryNodeAddScoreResultSet.SimpleSet },
{ Name.WeaponNodeLevel.Elementary, Name.EveryNodeAddScoreResultSet.ElementarySet },
{ Name.WeaponNodeLevel.Intermediate, Name.EveryNodeAddScoreResultSet.IntermediateSet },
{ Name.WeaponNodeLevel.Advanced, Name.EveryNodeAddScoreResultSet.AdvancedSet }};
Dictionary<string, HashSet<string>> isIgnoreConditionDict = new Dictionary<string, HashSet<string>>();
Dictionary<string, HashSet<string>> VolcanoDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(1, 1) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(1, 1) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(2, 2) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(3, 3) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(4, 4) }};
@ -1270,25 +1208,166 @@ public class WeaponManager : Singleton<WeaponManager>
}
return rarity;
}
public string getConditionValueWithLevel(string level, ref string condition, ref List<string> nodesMark, ref List<string> nodesColor)
{
string conditionValue = "";
switch (condition)
{
case Name.WeaponNodeCondition.position:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.positionUnused:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.positionUsed:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "0", "1", "2", "3", "4" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.diffSettle:
conditionValue = Name.none;
break;
case Name.WeaponNodeCondition.usedCard:
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "1" }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "2", }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "3" }, 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "4" }, 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.threeColorDiffMoreThan:
conditionValue = MathTool.GetRandomElements(new HashSet<string> { "3", "4", "5" }, 1).ElementAt(0);
break;
case Name.WeaponNodeCondition.everyNumNodeConvert:
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 11), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(9, 9), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 8), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 6), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 4), 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.everyColorNodeConvert:
condition = MathTool.GetRandomElements(Name.WeaponNodeCondition.PlayerColorConvertSet, 1).ElementAt(0);
switch (level)
{
case Name.WeaponNodeLevel.Basic:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(7, 7), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 6), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(5, 5), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 4), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
conditionValue = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(3, 3), 1).ElementAt(0);
break;
}
break;
case Name.WeaponNodeCondition.bombbomb:
conditionValue = Name.none;
break;
case Name.WeaponNodeCondition.node:
conditionValue = Name.none;
HashSet<string> nodesA = new HashSet<string>();
switch (level)
{
case Name.WeaponNodeLevel.Basic:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 2);
break;
case Name.WeaponNodeLevel.Simple:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 3);
break;
case Name.WeaponNodeLevel.Elementary:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 4);
break;
case Name.WeaponNodeLevel.Intermediate:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 5);
break;
case Name.WeaponNodeLevel.Advanced:
nodesA = MathTool.GetRandomElements(new HashSet<string> { "1_0", "-1_0", "0_1", "0_-1", "-1_1", "-1_-1" }, 6);
break;
}
nodesA.Add("0_0");
nodesMark = nodesA.ToList();
for (int i = 0; i < nodesA.Count; i++)
{
nodesColor.Add(MathTool.GetRandomElements(new HashSet<string> { Name.Color.Red, Name.Color.Blue, Name.Color.Yellow }, 1).ElementAt(0));
}
break;
case Name.WeaponNodeCondition.cardConditionPattern:
conditionValue = Name.none;
StringBuilder sb = new StringBuilder();
sb.Append(MathTool.GetRandomElements(new HashSet<string> { Name.Color.Red, Name.Color.Blue, Name.Color.Yellow }, 1).ElementAt(0))
.Append(MathTool.GetRandomElements(new HashSet<string> { "<", ">" }, 1).ElementAt(0));
string part3 = "";
switch (level)
{
case Name.WeaponNodeLevel.Basic:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(4, 5), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Simple:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(6, 8), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Elementary:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(10, 15), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Intermediate:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(18, 24), 1).ElementAt(0);
break;
case Name.WeaponNodeLevel.Advanced:
part3 = MathTool.GetRandomElements(MathTool.GenerateIntegerSet(35, 45), 1).ElementAt(0);
break;
}
sb.Append(part3);
condition = sb.ToString();
break;
}
return conditionValue;
}
public string getWeaponNodeConditionRarity(string condition, string conditionValue, string[] nodesColor)
{
string rarity = Name.none;
Dictionary<string, HashSet<string>> everyNumNodeConvertDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(10, 11) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(7, 9) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(9, 9) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(7, 8) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(5, 6) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(3, 4) }};
Dictionary<string, HashSet<string>> everyColorNodeConvertDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(7, 8) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(5, 6) },
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(7, 7) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(6, 6) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(5, 5) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(4, 4) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(3, 3) }};
Dictionary<string, HashSet<string>> cardConditionPatternDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(3, 5) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(6, 8) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(9, 12) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(14, 18) }};
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(4, 5) },
{ Name.WeaponNodeLevel.Simple, MathTool.GenerateIntegerSet(6, 8) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(10, 15) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(18, 24) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(35, 45) }};
Dictionary<string, HashSet<string>> nodeCountDict = new Dictionary<string, HashSet<string>>
{ { Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(3, 5) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(6, 12) },
@ -1299,10 +1378,6 @@ public class WeaponManager : Singleton<WeaponManager>
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(4, 6) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(7, 9) },
{ Name.WeaponNodeLevel.Advanced, MathTool.GenerateIntegerSet(10, 12) }};
Dictionary<string, HashSet<string>> drawCardDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(1, 2) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(3, 3) },
{ Name.WeaponNodeLevel.Intermediate, MathTool.GenerateIntegerSet(4, 5) }};
Dictionary<string, HashSet<string>> everyNodeAddScoreDict = new Dictionary<string, HashSet<string>>{
{ Name.WeaponNodeLevel.Basic, MathTool.GenerateIntegerSet(1, 1) },
{ Name.WeaponNodeLevel.Elementary, MathTool.GenerateIntegerSet(2, 3) },
@ -1362,13 +1437,17 @@ public class WeaponManager : Singleton<WeaponManager>
}
else if (nodesColor.Length == 4)
{
rarity = Name.WeaponNodeLevel.Elementary;
rarity = Name.WeaponNodeLevel.Simple;
}
else if (nodesColor.Length == 5)
{
rarity = Name.WeaponNodeLevel.Intermediate;
rarity = Name.WeaponNodeLevel.Elementary;
}
else if (nodesColor.Length == 6)
{
rarity = Name.WeaponNodeLevel.Intermediate;
}
else if (nodesColor.Length == 7)
{
rarity = Name.WeaponNodeLevel.Advanced;
}

369
ColorlessWorld-2024-4-2/Assets/TextMesh Pro/Resources/Fonts & Materials/OutLineSourceHanSansCN-Normal SDF 1.asset

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save