Add new function cards
1
asset/icons/book/spell/aura.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M320.938 13.28c-16.646 34.584-38.466 60.157-63.094 60.157-24.522 0-47.035-25.275-63.656-59.593.366 39.358-9.71 90.884-30.938 105.125-21.228 14.24-49.64-12.002-78.844-32.126 17.455 34.04 42.095 67.5 29.78 92.28-12.21 24.576-59.172 35.96-92.874 35.626 29.338 19.29 78.842 45.803 78.844 74.188.002 28.384-49.504 53.71-78.844 73 33.702-.333 80.663 11.612 92.876 36.187 12.227 24.61-9.03 56.31-33.75 85.563 44.826-15.413 65.142-5.735 85.374 10.812h31.75c-42.74-35.413-72.062-107.828-72.062-191.563-.002-118.62 58.92-214.906 131.406-214.906 72.488 0 131.406 96.29 131.406 214.907 0 83.74-29.317 156.153-72.062 191.563h27.313c19.847-14.62 39.796-25.65 89.687-9.28-26.233-30.264-42.2-62.484-29.97-87.095 12.257-24.665 56.658-36.612 90.533-36.188-29.4-19.297-75.344-44.584-75.344-73 0-28.415 45.943-54.89 75.342-74.187-33.874.424-78.273-10.962-90.53-35.625-12.315-24.78 9.982-58.24 27.437-92.28-29.202 20.12-57.583 46.385-78.845 32.124-21.262-14.263-31.382-66.13-30.938-105.69zm-68.97 93.75c-19.56 2.543-37.343 25.564-37.343 55.407 0 16.447 5.67 30.986 14 41.032l10.156 12.218-15.593 2.937c-10.815 2.035-18.743 7.737-25.53 17.063-6.79 9.325-11.984 22.344-15.626 37.343-6.585 27.128-8.078 60.24-8.31 89.47h36.093l.656 8.656 9.124 122.563h76.187l8.095-122.5.563-8.72h34.375c-.026-29.592-.44-63.166-6.407-90.5-3.295-15.095-8.287-28.096-15.156-37.313-6.87-9.216-15.133-14.897-27.28-16.78l-15.94-2.47 10.064-12.593c7.97-9.996 13.375-24.36 13.375-40.406-.002-31.817-19.884-55.313-41.44-55.313-2.54 0-3.96-.103-4.03-.094h-.03z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 1.7 KiB |
1
asset/icons/book/spell/deadly-strike.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M196.38 16.29l12.018 214.677-69.382-213.75h-19.65l70.52 217.25c-17.16-18.22-34.434-44.74-52.243-80.246 18.864 62.058 35.573 139.067 40.552 192.04L19.38 62.393v38.277l144.89 258.98c-33.493-21.316-67.86-56.375-97.918-92.87 26.712 52.73 55.26 104.847 73.076 160.54L19.378 289.453v28.46l107.997 124.026C99 434.69 70.625 422.05 42.25 408.165c38.03 26.607 62.036 50.897 84.234 85.82H230.84l-6.785-91.082H197.77c0-44.845 2.87-108.728 40.767-115.86-6.993-8.433-11.533-20.27-11.533-33.523 0-23.93 14.228-43.758 32.45-46.127h.005c.303-.038.61-.056.923-.063.934-.02 1.895.063 2.83.063 19.957 0 36.205 20.602 36.205 46.128 0 12.928-4.304 24.595-10.996 32.99 41.4 6.42 40.496 71.424 40.496 116.394h-24.94l-6.003 91.082h90.96c19.418-30.77 60.864-56.727 96.524-75.234-38.585 10.67-75.927 17.602-109.66 21.02l117.97-86.97v-23.218l-125.78 92.728c24.4-49.363 55.902-88.075 90.164-122.648-40.56 27.323-73.25 37.7-107.027 43.785L493.77 158.7v-30.58L339.297 328.19c1.19-51.24 16.946-114.427 39.156-171.047-17.383 25.054-33.876 46.073-49.713 62.742l56.406-202.668h-19.398l-53.412 191.906 3.832-192.834h-119.79z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 1.3 KiB |
1
asset/icons/book/spell/dread.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M137.4 26.62l-11.7 10.92 41.8 44.7 11.7-10.92zm138.7 48.32c-2.4 0-4.7 0-7 .1-27.2 1.12-48.8 10.91-65.3 30.86-22 26.7-35.2 73.4-35.4 144.7v4l-3.2 2.4c-40.9 30.3-61.8 57.6-69.74 80.8-7.94 23.1-3.72 42.4 7.64 59.8 22.6 34.8 76.3 59.2 112.3 65.6 22.9 4.1 81.5 12.9 118.5-5.8 18.5-9.4 32-24.5 35.6-52.4 3.6-27.8-3.6-69-29.7-127.3l-1.9-4.3 2.8-3.7c29-39.4 45.9-70.7 53.6-95.1 7.7-24.4 6.3-41.4-.2-54.1-6.4-12.7-18.7-22.01-35.5-29.02-16.8-7.02-37.9-11.51-60.3-14.73-7.8-1.12-15.2-1.73-22.2-1.81zM490.3 113l-62.6 23.8 5.7 15L496 128zm-258.5 19c19.9 0 36.4 16.2 36.4 36.1 0 19.9-16.5 36.1-36.4 36.1-20 0-36.5-16.2-36.5-36.1 0-19.9 16.5-36.1 36.5-36.1zm-83.1 5.3l-63.54 6 1.49 15.9 63.55-5.9-1.5-16zm83.1 10.7c-11.5 0-20.5 9-20.5 20.1 0 11.2 9 20.1 20.5 20.1 11.4 0 20.4-8.9 20.4-20.1 0-11.1-9-20.1-20.4-20.1zm85.1 8.7c19.8 0 36 16.5 36 36.5s-16.2 36.4-36 36.4c-19.9 0-36.1-16.4-36.1-36.4s16.2-36.5 36.1-36.5zm0 16c-11.2 0-20.1 9-20.1 20.5 0 11.4 8.9 20.4 20.1 20.4 11.1 0 20-9 20-20.4 0-11.5-8.9-20.5-20-20.5zm104.6 32.1l-7.4 14.2 49.7 25.8 7.4-14.2zM98.66 222.5c-7.84 15-13.18 29.9-17.45 44.6-2.85.3-5.78.7-8.79 1.3-.14-2.7-.29-5.2-.25-7.5.1-5.6.82-9.7 4.74-14.7l-12.55-9.9c-6.37 8.1-8.06 16.9-8.19 24.3-.1 6.1.47 11.3.37 15.8-8.98 11.3-21.3 29.4-23.99 45-1.68 9.7-.36 17.5 6.84 24.7 6 5.9 17.52 11.4 36.17 14.7 0-9.1 1.45-18.5 4.77-28.2 6.81-19.9 20.97-40.7 44.17-62.5 5.8-8.4 12.3-17 18.6-24.5l-12.2-10.3c-8.7 10.3-17.5 22.3-24.7 33.4-2.8-.7-5.5-1.2-8.31-1.5 3.81-12.5 8.51-25 14.91-37.3zm132.64 29.1c3.2-.1 6.4.2 9.5 1 18.8 5.2 29 27.8 22.8 50.7-6.2 22.8-26.5 37.1-45.3 32-18.9-5.1-29.1-27.8-22.8-50.6 5-18.6 19.7-32.1 35.8-33.1zM384.7 295l-15.7 3.5 5.6 25.3c10.6 34 13.6 61.2 10.8 83.3-1.8 13.3-5.8 24.7-11.5 34.3 13.7 12.5 30.7 16 44.6 12 15.3-4.4 27.1-16.8 27.3-39.1.1-12.5-1.4-23.1-4.6-32.5 5.2-9.5 10.1-24 8.9-41.7l-15.9 1.1c.5 8.3-.7 15.9-2.6 22.1-1.7-2.3-3.6-4.6-5.6-6.7-1.3-1.4-2.7-2.8-4.2-4.1.9-12.6.5-29.2-4.3-44.1l-15.3 4.9c2.8 8.4 3.8 18.6 3.9 27.8-3.9-2.4-8.2-4.6-12.8-6.7-2.9-13.1-5.8-26.2-8.6-39.4zM275 384.6c1.9 0 3.7.2 5.5.5 7.6 1.6 10.4 7.6 12.3 10.8 1.3 2.1 2.1 2.9 2.2 3.2.6 0 2.5-.7 6.2-3.1 4.1-2.7 9.9-7.4 18.3-6 7.4 1.2 11.6 5.6 15.4 9.2 3.7 3.6 6.5 7 6.5 7l-12.5 10.1s-2.2-2.7-5.1-5.5c-2.9-2.8-7.1-5.1-6.8-5-.5-.1-2.9.8-7 3.5-4.2 2.8-10.4 7.4-18.8 5.5-7.4-1.6-10.2-7.6-12.1-10.7-1.4-2.3-2.2-3.1-2.2-3.3-2.2-.1-10 1.9-16.4 5.3-6.7 3.6-12 7.4-12 7.4l-9.4-12.9s6.1-4.5 13.9-8.6c6.4-3.4 13.8-7.3 22-7.4z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 2.6 KiB |
1
asset/icons/book/spell/enrage.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M185 23.42c53.7 45.44 5.5 70.31-7.8 76.32-40.5 18.36-87.65-24.61-99.5-67.35C63.43 75.61 30.56 164.5 88.87 200.5c-35.77 39.9-35.73 37-65.22-7.9-8.45 41.3-2.84 112.6 15.69 164.1 2.04-22.1 5.04-43.5 11.23-60.7l1.09-3 2.78-1.7c45.86-27.2 86.06-36 117.26-40.1-3-12.3-4.7-25.5-4.7-39.2 0-3 .1-6 .2-8.9l-82.06-40.7 35.46-14.9-45.34-45.2 89.74 51-29.2 12.2 32 30.6c2.5-26.4 11.2-50.1 24.3-68.5C207.8 105.5 230.5 91 256 91s48.2 14.5 63.9 36.6c13.2 18.5 21.9 42.4 24.4 68.9l40.1-41.3-38.1-10.9 84.1-70.13-42.9 60.53 45.2 14.3-88.2 49.7c.4 6.3.6 11.8.4 17.5 6.2-.9 12.5-1.5 18.7-1.6 5.8 0 11.5.4 16.7 1.3 14.8 4.2 40.8 45.8 45.1 57.7-2.9 14.3-13 25.4-22.4 34.8l44.9 95.9c5.9 12.6 2.8 28.4.5 40.3-2.4 12-9.3 23.5-21.7 27.5-23.7 5-40.5-7.7-54.3-23 .2 15.2 0 30.1-.4 44.9h94.4c27.4-32.1 28.2-70.2 24.9-111.1-24.7 25.5-45.1-14.3-57.4-41.6 29.3 26.7 70.1-42.9 59.3-106.7-5.4 15.8-42.6 27-59-27.7 50.4-13 54.4-78.4 60.5-109.96-21.2 26.86-33.3 42.06-65.6 24.26 38.8-28.35 7.1-73.26-26.7-91 23 33.73-57.3 89.8-81.1 66.49C306.6 45.5 237.3 16 185 23.42zM256 109c-18.7 0-36 10.5-49.2 29-5.5 7.6-10.1 16.6-13.7 26.5 22.5 12.7 45.4 25.1 57.2 47.7-1.4 5.3-2.4 10.8-3.9 16L202 217.6c7.1-12.6 27.8-11.6 39.7 3.2-7.6-11.3-19.1-20-38.9-21l-10.4-33.4c-4.7 13.7-7.4 29.2-7.4 45.6 0 29.2 8.5 55.5 21.8 74 13.2 18.5 30.5 29 49.2 29 18.7 0 36-10.5 49.2-29 1.4-1.9 2.6-3.9 3.9-5.9-2.2-17.1-3.9-39.4 3.1-52.2 3-4.7 9.9-6.1 14.5-7.6.8-18.8-2.2-39.9-7.9-55.9l-10 35c-17.1 1.3-27.8 8.2-35.2 17.4 8.1-4.5 25.6-6.4 36.4-8.8 1.1 5.7 2.8 11.4-2.8 17.9-13.3-4.4-29.6-1.4-40.9 2.8-1.2-5.4-3.3-11.1-4.7-15.7 11.4-23.2 34.5-36.2 56.9-49.6-3.5-9.5-8-18-13.3-25.4-13.2-18.5-30.5-29-49.2-29zm70.9 130.6c-2.2 6.6-3 19.7-.8 33.1 2.1 13.7 6.6 27.3 10.2 34.2 6.9 2.5 13.8 5.1 20.7 7.7l25 118c9.6 10.8 24.3 26.9 39.2 22.4 14.2-7.3 10.9-33 9.2-45.6l-48.6-103.9c7.7-11.8 20.9-21.1 24.6-31.2-5.2-13.2-17.7-31.3-31-40.9-15.3-.5-35.8 1.9-48.5 6.2zm-110.2 4.2c7.8 0 22.1 15 39.8 13.9 15.9-.9 29.4-21.3 39.5-9.2 11 13.3-4 33.9-11.4 40 0 0-14.3-14.7-27.8-13.6-13.3 1-25.1 16.4-25.1 16.4-15.8-9.5-28.3-28.6-19.4-44.7 1.1-2 2.6-2.8 4.4-2.8zm-39.4 24.9c-29.9 3.7-67.1 11.2-110.7 36.5-10.07 39-10.68 79.1-14.43 114.8l-23.88 41.2c2.8 14.4 7.46 33.4 23.47 32.1 17.97-2.5 35.79-13.4 42.11-29-2.43-10.8-6.14-19.3-10.17-28 4.28-33.2 4.25-66 13.33-91.5l2.89-7.8c29.18 6.6 47.78 2.6 70.18-13.4l-1.2 19c-3.4 51.4-12 105.7-10.1 151.4h195.1c1.5-49.8.3-100.3-10.5-154.2-.7-3.7-1.3-7.6-2-11.8l-17.6-6.6c-3.8-6-6.9-12.9-8.9-18.5-15.4 18.3-36 30.1-58.9 30.1-25.5 0-48.2-14.5-63.9-36.6-5.9-8.2-10.9-17.6-14.8-27.7zm-27.7 88.2c-13 4-26.8 3.6-38.1 1.6-7.3 24.1-7.4 48.4-9.5 74.6 5 12.5 9 21.8 10.4 33.2-4.1 10.6-10 21-16.47 27.7h44.67c-1.8-43.5 5.1-91.6 9-137.1z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 2.8 KiB |
1
asset/icons/book/spell/extra-lucid.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M115.703 19.684C74.03 56.01 47.746 108.598 47.746 167.047c0 59.615 27.327 113.03 70.47 149.428-2.24-9.474-3.615-19.306-4.03-29.4-29.71-31.86-47.75-73.932-47.75-120.028 0-60.944 31.49-114.743 79.876-147.363h-30.61zm245.98 0c48.38 32.614 79.874 86.417 79.874 147.363 0 44.114-16.52 84.543-43.98 115.863-.15 10.162-1.272 20.075-3.272 29.645 40.52-36.26 65.94-88.003 65.94-145.508 0-58.446-26.263-111.034-67.93-147.363h-30.633zM259.616 21.13c-1.22.046-2.1.16-2.627.16-22.966 0-42.474 13.933-54.28 34.743 5.434-2.258 11.378-3.512 17.602-3.512 2.635 0 5.216.238 7.733.667 8.205-8.343 18.363-13.208 28.945-13.208 2.87 0 4.478-.11 4.53-.103l.09.014.09.012c8.883 1.155 17.385 5.918 24.452 13.31 2.568-.448 5.204-.69 7.895-.69 6.14 0 12.004 1.224 17.377 3.423-10.47-18.69-27.132-31.908-47.215-34.556-1.847-.27-3.393-.303-4.593-.26zm-58.758.925C139.302 43.72 95.366 100.54 95.366 167.23c0 26.838 7.12 52.075 19.633 74.07 4.785-43.393 27.372-81.088 59.895-104.857-4.985-11.973-7.76-25.238-7.76-39.2 0-30.428 13.17-57.555 33.724-75.188zm112.966.884c19.968 17.648 32.7 44.38 32.7 74.304 0 14.4-2.955 28.06-8.24 40.324 31.91 23.98 53.94 61.508 58.454 104.57 12.815-22.19 20.12-47.727 20.12-74.908 0-65.8-42.768-121.992-103.034-144.29zm-93.514 48.27c-15.31 0-27.52 12.21-27.52 27.522 0 15.31 12.21 27.522 27.52 27.522 15.31 0 27.524-12.21 27.524-27.522 0-15.31-12.213-27.523-27.524-27.523zm73.735 0c-15.31 0-27.522 12.21-27.522 27.522 0 15.31 12.21 27.522 27.522 27.522 15.31 0 27.523-12.21 27.523-27.522 0-15.31-12.212-27.523-27.523-27.523zm-96.818 67.495c1.458 3.72 3.135 7.29 5.014 10.688-28.76 10.036-47.118 36.23-56.088 67.806-10.313 36.304-9.78 80.714-1.82 123.044l1.432 7.617h38.28l.354 5.406.04 4.084.23-.002 9.09 137.91h122.584l10.408-139.71.385.003.038-5.708.148-1.98h40.32l1.543-7.446c9.072-43.706 8.052-87.865-3.38-123.508-9.866-30.763-28.282-55.794-54.945-66.185 2.144-3.686 4.042-7.593 5.68-11.678-6.67 3.75-14.344 5.898-22.498 5.898-.516 0-1.025-.03-1.537-.047-1.22 1.83-2.504 3.576-3.858 5.21l-10.125 12.212 15.59 2.934c25.758 4.847 43.76 25.75 53.9 57.363 9.523 29.697 11.076 68.077 4.198 106.557h-24.893l.64-91.475-18.687-.13-.78 111.488L299 476.568h-33.332V342.19H246.98V476.57h-35.72l-8.174-124.025-1.133-115.002-18.69.185.903 91.447h-22.713c-6.188-37.77-5.89-76.687 2.682-106.865 9.15-32.208 26.076-53.426 54.59-57.848l15.91-2.47L224.6 149.4c-1.133-1.42-2.22-2.92-3.256-4.488-.345.008-.685.03-1.03.03-8.396 0-16.28-2.28-23.085-6.237z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 2.6 KiB |
1
asset/icons/book/spell/mighty-force.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M256 28l-32 128c-32-16-64-48-96-96 0 48 0 96 32 128-32 17-64 0-96-32 0 32 0 80 48 112-32 16-64 0-80-32 0 48 16 96 48 128-16 16-48 0-64-16 0 64 48 112 112 144h76.8l16.7-68.6-17.2-86.1-97.9 5s20.3-75.2 34.9-103.7c5-9.6 7.2-18 20-18.3 11.3 0 20.4 9.8 20.4 21.9 0 12-9.1 21.8-20.4 21.8-2.3 0-4.6-.5-6.6-1.3l-5.1 46.8c29.6-8.9 56.9-18.8 84-30.9 0-.1-.1-.2-.1-.3-6.2-8.8-10.4-21.5-10.4-35.7 0-14.1 4.1-26.8 10.4-35.7 6.1-8.9 14.1-13.7 22.5-13.7 8.5 0 16.5 4.8 22.6 13.7 6.2 8.9 10.2 21.6 10.2 35.7 0 14.2-4 26.9-10.2 35.7-.1.3-.5.7-.6.9 27.3 12.1 56.1 20.6 84.3 30.3l-5-46.8c-2.2.8-4.3 1.3-6.7 1.3-11.2 0-20.3-9.8-20.3-21.8 0-12.1 9.1-21.9 20.3-21.9 12.8.3 15.2 8.7 20 18.3 14.8 28.5 35 103.7 35 103.7l-97.9-5-17.2 86.1 16.7 68.6H384c64-32 112-80 112-144-16 16-48 32-64 16 32-32 48-80 48-128-16 32-48 48-80 32 48-32 48-80 48-112-32 32-64 48-96 32 32-32 32-80 32-128-32 48-64 80-96 96z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 1.1 KiB |
1
asset/icons/book/spell/wisdom.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g class="" style="" transform="translate(0,0)"><path d="M66.89 18L128 128 18 117v32.5L96 208l-78 39v35l110 22-3.6 16c-12.6 12.1-21.9 26.5-28.46 42.5-14.43 35.2-16.64 85.7-16.9 131.5h18.1c.34-44.1 2.78-93.8 15.46-124.7 8.9-21.9 22.4-39.6 44.6-52.1-4.1-22-6.2-43.5-6.2-61.2v-14.6l13 6.6c9.6 4.7 16.5 6.2 23.1 5.7-5.2-14-8.1-29.6-8.1-45.7 0-29.1 9.1-55.2 23.3-73.7 14.2-18.5 33.1-29.3 53.7-29.3s39.5 10.8 53.7 29.3c14.2 18.5 23.3 44.6 23.3 73.7 0 16.1-2.9 31.7-8.1 45.7 6.6.5 13.6-1 23.1-5.7l13-6.6V256c0 17.7-2.1 39.2-6.2 61.2 22.2 12.5 35.7 30.2 44.6 52.1 12.7 30.9 15.1 80.6 15.5 124.7H433c-.3-45.8-2.5-96.3-16.9-131.5-6.6-16-15.9-30.5-28.6-42.6L384 304l110-22v-35l-78-39 78-58.5V117l-110 11 61.1-110h-37.8L304 80l-18.6-62h-58.8L208 80 104.7 18zM208 215v18h32v-18zm64 0v18h32v-18zm-33.6 36.1c-12.7 6.7-23.7 13.5-35.6 17.4-10 3.4-21.1 4.1-33.3.8.5 8 1.3 16.7 2.4 25.7 27.2-.4 51.7-3.3 77.7-29.4l1.7-1.6zm35.2 0L260.7 264l1.7 1.6c26 26.1 50.5 29 77.7 29.4 1.1-9 1.9-17.7 2.4-25.7-12.2 3.3-23.3 2.6-33.3-.8-11.9-3.9-22.9-10.7-35.6-17.4zM256 284.3c-27 23.7-55.2 27.8-81.3 28.5 1.7 9 3.6 18 6 26.9 2.2 8.3 4.8 16.3 7.6 23.9C193.9 353.1 201 343 208 336c0 21-6.9 35-11.6 46.8 3.8 7.6 7.8 14.4 12.1 20l24.5-24.5V400c0 14.5 2.8 19.1 7.4 23.6 3.4 3.5 9.1 6.9 15.6 12.3 6.5-5.4 12.2-8.8 15.6-12.3 4.6-4.5 7.4-9.1 7.4-23.6v-21.7l24.5 24.5c4.3-5.6 8.3-12.4 12.1-20C310.9 371 304 357 304 336c7 7 14.1 17.1 19.7 27.6 2.8-7.6 5.4-15.6 7.6-23.9 2.4-8.9 4.3-17.9 6-26.9-26.1-.7-54.3-4.8-81.3-28.5z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 1.6 KiB |
1
asset/icons/book/tower/dark-squad.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#000" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M369.1 21.22c-19.2 0-36.2 10.63-47.9 26.47-11.7 15.84-18.6 37.03-18.6 60.31 0 21.1 5.7 40.5 15.5 55.7-5.7 1.6-11 3.9-15.9 6.6-10.2-8.5-22.6-13.6-35.9-13.6-19.3 0-36.3 10.6-48 26.4-4.7 6.4-8.6 13.6-11.6 21.5-4.8-2.4-9.9-4.3-15.5-5.6 9.4-15.1 14.8-34.1 14.8-54.7 0-23.2-6.9-44.43-18.6-60.27-11.7-15.84-28.7-26.5-47.9-26.5s-36.2 10.66-47.94 26.5C79.87 99.87 73 121.1 73 144.3c0 21.1 5.69 40.5 15.47 55.8-32.07 9.1-50.29 37.1-59.44 70-9.79 35.2-10.87 77.3-10.87 115.6v9.4h45.5l6.78 99.3h18.75l-7.28-106.5-4.1-80-18.65 1 3.47 67.5H36.97c.24-35.2 1.97-72.1 10.09-101.2 8.78-31.6 23.32-52.8 51.25-58.2l4.69-.1c10.3 8.8 22.9 14.2 36.5 14.2 14.1 0 26.9-5.7 37.4-15h4.6c7.8 1.2 14.4 3.5 20.1 6.7-1.2 6.6-1.9 13.5-1.9 20.6 0 21.1 5.7 40.5 15.5 55.8-32.1 9.1-50.3 37.2-59.4 70-9.8 35.2-10.9 77.3-10.9 115.6v9.4c21.7-.3 42.8.2 64.3.2l-.5-7.3-4.1-80-18.7.9 3.4 67.5h-25.6c.3-35.2 2-72.1 10.1-101.2 8.7-31.6 23.3-52.7 51.1-58.2l4.9-.1c10.3 8.8 22.8 14.2 36.4 14.2 14.1 0 27-5.7 37.5-15h4.4c15.4 2.4 26.1 8.9 34.5 18.6 8.5 9.7 14.5 23.2 18.5 39.2 7.3 29.5 7.7 66.9 7.7 102.5h-23.4l3.5-67.5-18.7-.9-4.2 82-.3 5.3c20.8 0 43.3-.3 61.9-.2v-9.4c0-38.1.5-80.6-8.4-116.3-4.4-17.8-11.3-34.1-22.4-47-9.7-11.1-22.7-19.4-38.8-23.4 9.4-15.1 14.7-34.1 14.7-54.7 0-22.5-6.4-43.2-17.5-58.8 3.9-1.8 8.1-3.1 12.7-4h4.7c10.3 8.8 22.9 14.2 36.5 14.2 14.1 0 27-5.8 37.4-15l4.6-.1c15.4 2.5 26 8.9 34.4 18.6 8.5 9.8 14.5 23.3 18.5 39.3 7.3 29.4 7.7 66.8 7.7 102.4h-23.4l3.5-67.4-18.7-1-4.1 79.7-8.6 143.1h18.7l8.2-135.7h43.1v-9.3c0-38.2.6-80.7-8.3-116.3-4.5-17.9-11.4-34.2-22.5-47-9.6-11.2-22.6-19.5-38.8-23.5 9.4-15.1 14.8-34 14.8-54.6 0-23.28-6.9-44.47-18.6-60.31-11.6-15.29-31.5-26.13-47.9-26.47zm0 18.69c12.4 0 23.9 6.69 32.9 18.87 9 12.19 14.9 29.67 14.9 49.22 0 19.5-5.9 37-14.9 49.2-9 12.2-20.5 18.9-32.9 18.9-12.3 0-23.9-6.7-32.9-18.9s-14.9-29.7-14.9-49.2c0-19.55 5.9-37.03 14.9-49.22 9-12.18 20.6-18.87 32.9-18.87zM139.5 76.22c12.4 0 23.9 6.72 32.9 18.9s14.9 29.68 14.9 49.18-5.9 37-14.9 49.2c-9 12.2-20.5 18.9-32.9 18.9-12.4 0-23.9-6.7-32.9-18.9-8.97-12.2-14.91-29.7-14.91-49.2 0-19.5 5.94-37 14.91-49.17 9-12.19 20.5-18.91 32.9-18.91zm197.8 22.34v18.64h22.5V98.56h-22.5zm41.1 0v18.64h22.5V98.56h-22.5zM107.7 134.9v18.7h22.5v-18.7h-22.5zm41.1 0v18.7h22.5v-18.7h-22.5zm117.5 40.4c12.3 0 23.8 6.7 32.8 18.9 9 12.2 15 29.7 15 49.2 0 19.6-6 37-15 49.2-9 12.2-20.5 18.9-32.8 18.9-12.4 0-24-6.7-33-18.9-8.9-12.2-14.9-29.6-14.9-49.2 0-19.5 6-37 14.9-49.2 9-12.2 20.6-18.9 33-18.9zM234.5 234v18.7h22.4V234zm41.1 0v18.7H298V234h-22.4z" fill="#fff" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 2.7 KiB |
1
asset/icons/book/tower/eye-target.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#ffffff" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M256 105c-60.25 0-124.749 38.39-167.945 77.66-34.931 31.756-58.722 62.36-66.88 73.34 8.158 10.98 31.949 41.584 66.88 73.34C131.25 368.61 195.75 407 256 407s124.749-38.39 167.945-77.66c34.931-31.756 58.722-62.36 66.88-73.34-8.158-10.98-31.949-41.584-66.88-73.34C380.75 143.39 316.25 105 256 105zm0 23a128 128 0 0 1 63.486 16.969A48 48 0 0 0 288 190a48 48 0 0 0 .023.453A72.362 72.362 0 0 0 265 183.576V160h-18v23.576c-33.034 4.095-59.33 30.39-63.424 63.424H160v18h23.576c4.095 33.034 30.39 59.33 63.424 63.424V352h18v-23.576c33.034-4.095 59.33-30.39 63.424-63.424H352v-18h-23.576a72.33 72.33 0 0 0-1.98-10.014A48 48 0 0 0 336 238a48 48 0 0 0 41.023-23.195A128 128 0 0 1 384 256a128 128 0 0 1-128 128 128 128 0 0 1-128-128 128 128 0 0 1 128-128zm-9 73.738V224h18v-22.262c23.237 3.792 41.47 22.025 45.262 45.262H288v18h22.262c-3.792 23.237-22.025 41.47-45.262 45.262V288h-18v22.262c-23.237-3.792-41.47-22.025-45.262-45.262H224v-18h-22.262c3.792-23.237 22.025-41.47 45.262-45.262z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 1.2 KiB |
1
asset/icons/book/tower/night-sleep.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#000" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M294.8 26.57L238 60.37l7.8 13.17L281 52.59 270.8 118l6.3 10.6L336 93.53l-7.8-13.17-37.3 22.14L301 37.12l-6.2-10.55zM147.1 60.55A224 224 0 0 0 32 256a224 224 0 0 0 224 224 224 224 0 0 0 214.9-161.2A208 208 0 0 1 320 384a208 208 0 0 1-208-208 208 208 0 0 1 35.1-115.45zm244.5 52.05l-6.9 16.5 44.1 18.4-68.3 35.9-5.5 13.2 73.7 30.8 6.9-16.5-46.7-19.5 68.3-35.9 5.5-13.2-71.1-29.7zm-115 64l-97.8 35 8.1 22.7 60.6-21.7-35.4 97.9 6.5 18.1L320 292.4l-8.1-22.7-64.2 23 35.4-97.9-6.5-18.2z" fill="#fff" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 746 B |
1
asset/icons/book/tower/spanner.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#000" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M331.188 16.72c-40.712-.002-81.41 15.408-112.438 46.436-43.866 43.864-56.798 107-38.813 162.25L17.03 388.312v25.75l170.22-170.218c2.75 5.84 5.847 11.555 9.344 17.094L17.03 440.5v51.78H64l181.875-181.874c5.516 3.515 11.212 6.668 17.03 9.438L90.44 492.28h27.03l164.75-164.75c55.182 17.85 118.21 4.884 162-38.905 41.415-41.414 54.998-99.91 41.282-152.813L380.22 241.125l-90.033-23.938-23.968-90.03L371.53 21.843c-13.213-3.41-26.772-5.125-40.342-5.125z" fill="#fff" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 714 B |
1
asset/icons/book/tower/upgrade.svg
Normal file
@ -0,0 +1 @@
|
||||
<svg style="height: 512px; width: 512px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M0 0h512v512H0z" fill="#ffffff" fill-opacity="1"></path><g class="" style="" transform="translate(0,0)"><path d="M256 29.816l-231 154v106.368l231-154 231 154V183.816zm0 128.043L105 259.783v90.283l151-101.925 151 101.925v-90.283zm0 112l-87 58.725v67.6l87-58 87 58v-67.6zm0 89.957l-87 58v64.368l87-58 87 58v-64.368z" fill="#000000" fill-opacity="1"></path></g></svg>
|
After Width: | Height: | Size: 472 B |
307
ct_doc.py
@ -40,28 +40,30 @@ JUST_RELEASED = bge.logic.KX_INPUT_JUST_RELEASED
|
||||
ACTIVATE = bge.logic.KX_INPUT_ACTIVE
|
||||
# JUST_DEACTIVATED = bge.logic.KX_SENSOR_JUST_DEACTIVATED
|
||||
|
||||
# Functions description
|
||||
fct_description ={}
|
||||
|
||||
###############################################################################
|
||||
# Map
|
||||
###############################################################################
|
||||
|
||||
map_fct=["ct_level", "ct_sleep"]
|
||||
map_card=["Level-card", "Sleep-card"]
|
||||
|
||||
# ct_level ()
|
||||
ct_level_title="Get your level"
|
||||
ct_level_text=" ct_level ()\n \v - Return your level (integer)"
|
||||
fct_description.update({"Level-card" : [ct_level_title, ct_level_text]})
|
||||
|
||||
# ct_sleep (delay)
|
||||
ct_sleep_title="Time management"
|
||||
ct_sleep_text=" ct_sleep (delay)\n \v - delay : duration in seconds (float)"
|
||||
|
||||
map_fct_title=[ct_level_title, ct_sleep_title]
|
||||
map_fct_text=[ct_level_text, ct_sleep_text]
|
||||
fct_description.update({"Sleep-card" : [ct_sleep_title, ct_sleep_text]})
|
||||
|
||||
###############################################################################
|
||||
# Tower
|
||||
###############################################################################
|
||||
|
||||
tower_fct=["ct_build", "ct_remove"]
|
||||
tower_card=["Build-card", "Remove-card", "Upgrade-card", "Activate-card", "Tune-card", "Targets-card"]
|
||||
|
||||
# ct_build (x, y, category, name, color, style)
|
||||
ct_build_title="Build a tower"
|
||||
@ -72,54 +74,103 @@ ct_build_text = ct_build_text +" \v- style (string) : \n \v \v- \"square\" (defa
|
||||
ct_build_text = ct_build_text +" \v- Return boolean flag (builded -> True)\n\n"
|
||||
ct_build_text = ct_build_text +"Predefined colors : blue, green, magenta,\n orange, purple, red, turquoise, yellow.\n\n"
|
||||
ct_build_text = ct_build_text +"Exemple : ct_build (1, 1, \"Archer tower\", \n \"Tower #1\", yellow, \"round-A\")\n"
|
||||
fct_description.update({"Build-card" : [ct_build_title, ct_build_text]})
|
||||
|
||||
# ct_remove (x, y)
|
||||
ct_remove_title="Remove a tower"
|
||||
ct_remove_text=" ct_remove (x, y) \n \v - x position (integer)\n \v - y position (integer)\n"
|
||||
fct_description.update({"Remove-card" : [ct_remove_title, ct_remove_text]})
|
||||
|
||||
tower_fct_title=[ct_build_title, ct_remove_title]
|
||||
tower_fct_text=[ct_build_text, ct_remove_text]
|
||||
# ct_upgrade (x, y)
|
||||
ct_upgrade_title="Upgrade a tower"
|
||||
ct_upgrade_text=" ct_upgrade (x, y) \n \v - x position (integer)\n \v - y position (integer)\n"
|
||||
ct_upgrade_text = ct_upgrade_text +"FIXME\n"
|
||||
fct_description.update({"Upgrade-card" : [ct_upgrade_title, ct_upgrade_text]})
|
||||
|
||||
# ct_activate (x, y)
|
||||
ct_activate_title="activate/desactivate a tower"
|
||||
ct_activate_text=" ct_activate (x, y, activate) \n \v - x position (integer)\n \v - y position (integer)\n \v - activate (bool)\n"
|
||||
fct_description.update({"Activate-card" : [ct_activate_title, ct_activate_text]})
|
||||
|
||||
# ct_tune (x, y)
|
||||
ct_tune_title="Tune a tower"
|
||||
ct_tune_text=" ct_tune (x, y) \n \v - x position (integer)\n \v - y position (integer)\n"
|
||||
ct_tune_text = ct_tune_text +"FIXME\n"
|
||||
fct_description.update({"Tune-card" : [ct_tune_title, ct_tune_text]})
|
||||
|
||||
# ct_targets (x, y)
|
||||
ct_targets_title="FIXME"
|
||||
ct_targets_text=" ct_targets (x, y) \n \v - x position (integer)\n \v - y position (integer)\n"
|
||||
ct_targets_text = ct_targets_text +"FIXME\n"
|
||||
fct_description.update({"Targets-card" : [ct_targets_title, ct_targets_text]})
|
||||
|
||||
###############################################################################
|
||||
# Tech
|
||||
###############################################################################
|
||||
|
||||
tech_fct=[]
|
||||
tech_fct_title=[]
|
||||
tech_fct_text=[]
|
||||
tech_card=["Accurate-card", "Volley-card", "Slow_tech-card", "Fire-card", "Bolt-card", "Ice-card", "Acid-card"]
|
||||
|
||||
# ct_accurate
|
||||
ct_accurate_title="FIXME"
|
||||
ct_accurate_text="FIXME\n"
|
||||
fct_description.update({"Accurate-card" : [ct_accurate_title, ct_accurate_text]})
|
||||
|
||||
# ct_volley
|
||||
ct_volley_title="FIXME"
|
||||
ct_volley_text="FIXME\n"
|
||||
fct_description.update({"Volley-card" : [ct_volley_title, ct_volley_text]})
|
||||
|
||||
# ct_slow_tech
|
||||
ct_slow_tech_title="FIXME"
|
||||
ct_slow_tech_text="FIXME\n"
|
||||
fct_description.update({"Slow_tech-card" : [ct_slow_tech_title, ct_slow_tech_text]})
|
||||
|
||||
# ct_fire
|
||||
ct_fire_title="FIXME"
|
||||
ct_fire_text="FIXME\n"
|
||||
fct_description.update({"Fire-card" : [ct_fire_title, ct_fire_text]})
|
||||
|
||||
# ct_bolt
|
||||
ct_bolt_title="FIXME"
|
||||
ct_bolt_text="FIXME\n"
|
||||
fct_description.update({"Bolt-card" : [ct_bolt_title, ct_bolt_text]})
|
||||
|
||||
# ct_ice
|
||||
ct_ice_title="FIXME"
|
||||
ct_ice_text="FIXME\n"
|
||||
fct_description.update({"Ice-card" : [ct_ice_title, ct_ice_text]})
|
||||
|
||||
# ct_acid
|
||||
ct_acid_title="FIXME"
|
||||
ct_acid_text="FIXME\n"
|
||||
fct_description.update({"Acid-card" : [ct_acid_title, ct_acid_text]})
|
||||
|
||||
###############################################################################
|
||||
# Spell
|
||||
###############################################################################
|
||||
|
||||
spell_fct=[]
|
||||
spell_fct_title=[]
|
||||
spell_fct_text=[]
|
||||
spell_card=["Slow_spell-card", "Detect-card", "Fear-card", "Aura-card"]
|
||||
|
||||
###############################################################################
|
||||
# General
|
||||
###############################################################################
|
||||
# ct_slow_spell
|
||||
ct_slow_spell_title="FIXME"
|
||||
ct_slow_spell_text="FIXME\n"
|
||||
fct_description.update({"Slow_spell-card" : [ct_slow_spell_title, ct_slow_spell_text]})
|
||||
|
||||
fct = {
|
||||
'Book_chap-screen': "",
|
||||
'Book_chap-map' : map_fct,
|
||||
'Book_chap-tower' : tower_fct,
|
||||
'Book_chap-tech' : tech_fct,
|
||||
'Book_chap-spell' : spell_fct}
|
||||
# ct_detect
|
||||
ct_detect_title="FIXME"
|
||||
ct_detect_text="FIXME\n"
|
||||
fct_description.update({"Detect-card" : [ct_detect_title, ct_detect_text]})
|
||||
|
||||
fct_title = {
|
||||
'Book_chap-screen': "",
|
||||
'Book_chap-map' : map_fct_title,
|
||||
'Book_chap-tower' : tower_fct_title,
|
||||
'Book_chap-tech' : tech_fct_title,
|
||||
'Book_chap-spell' : spell_fct_title}
|
||||
# ct_fear
|
||||
ct_fear_title="FIXME"
|
||||
ct_fear_text="FIXME\n"
|
||||
fct_description.update({"Fear-card" : [ct_fear_title, ct_fear_text]})
|
||||
|
||||
# ct_aura
|
||||
ct_aura_title="FIXME"
|
||||
ct_aura_text="FIXME\n"
|
||||
fct_description.update({"Aura-card" : [ct_aura_title, ct_aura_text]})
|
||||
|
||||
fct_text = {
|
||||
'Book_chap-screen': "",
|
||||
'Book_chap-map' : map_fct_text,
|
||||
'Book_chap-tower' : tower_fct_text,
|
||||
'Book_chap-tech' : tech_fct_text,
|
||||
'Book_chap-spell' : spell_fct_text}
|
||||
|
||||
###############################################################################
|
||||
# Interface
|
||||
@ -131,7 +182,7 @@ fct_text = {
|
||||
|
||||
def init():
|
||||
|
||||
# Book
|
||||
# Mettre les pages avec la couleurs par defaut
|
||||
scene.objects['Book'].worldPosition = [0, -22, 16.5]
|
||||
scene.objects['Book_close'].color = color_doc_chap
|
||||
scene.objects['Book_chap-screen'].color = color_doc_chap
|
||||
@ -141,25 +192,31 @@ def init():
|
||||
scene.objects['Book_chap-spell'].color = color_doc_chap
|
||||
scene.objects['Book_close'].color = color_doc_chap
|
||||
scene.objects['Book'].setVisible(True,True)
|
||||
sound_play (sndbuff_book_open)
|
||||
|
||||
# Tout effacer
|
||||
for i in range (1,13):
|
||||
if i<10:
|
||||
name_fct = "Book_fct-0"+str(i)
|
||||
else:
|
||||
name_fct = "Book_fct-"+str(i)
|
||||
scene.objects[name_fct].setVisible(False,False)
|
||||
scene.objects[name_fct].color = color_doc_fct
|
||||
scene.objects['Book_text_title'].setVisible(False,True)
|
||||
scene.objects['Book_text'].setVisible(False,True)
|
||||
sound_play (sndbuff_book_open)
|
||||
|
||||
# Activer la page screen
|
||||
# Activer la page screen (page par defaut)
|
||||
scene.objects['Book']['page_chap'] = "Book_chap-screen"
|
||||
scene.objects['Book']['page_fct'] = ""
|
||||
scene.objects['Book_chap-screen'].color = color_doc_activate
|
||||
scene.objects['Book_page_screen'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_screen'].setVisible(True,True)
|
||||
|
||||
# Mettre les cartes avec la couleurs par defaut
|
||||
for i in range(len(map_card)):
|
||||
scene.objects[map_card[i]].color = color_doc_fct
|
||||
scene.objects[map_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(tower_card)):
|
||||
scene.objects[tower_card[i]].color = color_doc_fct
|
||||
scene.objects[tower_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(tech_card)):
|
||||
scene.objects[tech_card[i]].color = color_doc_fct
|
||||
scene.objects[tech_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(spell_card)):
|
||||
scene.objects[spell_card[i]].color = color_doc_fct
|
||||
scene.objects[spell_card[i]+"-colbox"].suspendPhysics()
|
||||
|
||||
##
|
||||
# Fermeture du livre
|
||||
##
|
||||
@ -167,20 +224,19 @@ def init():
|
||||
def close():
|
||||
sound_play (sndbuff_book_close)
|
||||
|
||||
# Effacer les fonctions cartes
|
||||
scene.objects['Book_page_screen'].setVisible(False,True)
|
||||
scene.objects['Book_page_map'].setVisible(False,True)
|
||||
scene.objects['Book_page_tower'].setVisible(False,True)
|
||||
scene.objects['Book_page_tech'].setVisible(False,True)
|
||||
scene.objects['Book_page_spell'].setVisible(False,True)
|
||||
|
||||
scene.objects['Book_page_screen'].setVisible(False,True)
|
||||
scene.objects['Book'].setVisible(False,True)
|
||||
# scene.objects['Book'].worldPosition = [28, 0.84549, 1.53626] # Position dans Blender [28, 0.84549, 1.53626]
|
||||
scene.objects['Book'].worldPosition = [28, 15, 14] # Position dans Blender [28, 0.84549, 1.53626]
|
||||
scene.objects['Book_page_screen'].worldPosition = scene.objects['Book'].worldPosition
|
||||
|
||||
|
||||
# scene.objects['Book_page_screen'].setVisible(False,True)
|
||||
# scene.objects['Book_page_map'].setVisible(False,True)
|
||||
# scene.objects['Book_page_map-canvas'].setVisible(False,True)
|
||||
# scene.objects['Book_page_tower-canvas'].setVisible(False,True)
|
||||
# scene.objects['Book_page_tech-canvas'].setVisible(False,True)
|
||||
# scene.objects['Book_page_spell-canvas'].setVisible(False,True)
|
||||
|
||||
##
|
||||
# Highlight du livre
|
||||
##
|
||||
@ -213,92 +269,71 @@ def chapter(cont):
|
||||
if cont.sensors['Click'].status == JUST_ACTIVATED and cont.sensors['MO'].positive and cont.sensors['Click'].positive:
|
||||
sound_play (sndbuff_book_flip)
|
||||
obj = cont.owner
|
||||
name_chap=obj.name[:-7]
|
||||
|
||||
# Highlight des onglets
|
||||
scene.objects['Book_chap-screen'].color = color_doc_chap
|
||||
scene.objects['Book_chap-map'].color = color_doc_chap
|
||||
scene.objects['Book_chap-tower'].color = color_doc_chap
|
||||
scene.objects['Book_chap-tech'].color = color_doc_chap
|
||||
scene.objects['Book_chap-spell'].color = color_doc_chap
|
||||
last_name_chap= scene.objects['Book']['page_chap']
|
||||
name_chap= obj.name[:-7]
|
||||
scene.objects[last_name_chap].color = color_doc_chap
|
||||
scene.objects[name_chap].color = color_doc_activate
|
||||
scene.objects["Book"]['page_chap'] = name_chap
|
||||
|
||||
# Tout effacer (fonctions + texte)
|
||||
for i in range (1,13):
|
||||
if i<10:
|
||||
name_fct = "Book_fct-0"+str(i)
|
||||
else:
|
||||
name_fct = "Book_fct-"+str(i)
|
||||
scene.objects[name_fct].setVisible(False,False)
|
||||
scene.objects[name_fct].color = color_doc_fct
|
||||
scene.objects["Book"]['page_fct'] = ""
|
||||
scene.objects['Book']['page_chap'] = name_chap
|
||||
last_name_fct= scene.objects['Book']['page_fct']
|
||||
if last_name_fct != "":
|
||||
scene.objects[last_name_fct].color = color_doc_fct
|
||||
scene.objects['Book']['page_fct'] = ""
|
||||
scene.objects['Book_text_title'].setVisible(False,True)
|
||||
scene.objects['Book_text'].setVisible(False,True)
|
||||
|
||||
# Effacer les fonctions cartes
|
||||
scene.objects['Book_page_screen'].setVisible(False,True)
|
||||
scene.objects['Book_page_map'].setVisible(False,True)
|
||||
scene.objects['Book_page_map-canvas'].setVisible(False,True)
|
||||
scene.objects['Book_page_tower-canvas'].setVisible(False,True)
|
||||
scene.objects['Book_page_tech-canvas'].setVisible(False,True)
|
||||
scene.objects['Book_page_spell-canvas'].setVisible(False,True)
|
||||
scene.objects['Book_page_tower'].setVisible(False,True)
|
||||
scene.objects['Book_page_tech'].setVisible(False,True)
|
||||
scene.objects['Book_page_spell'].setVisible(False,True)
|
||||
|
||||
# Afficher la page Ecran
|
||||
# Désactiver les cartes
|
||||
for i in range(len(map_card)):
|
||||
scene.objects[map_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(tower_card)):
|
||||
scene.objects[tower_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(tech_card)):
|
||||
scene.objects[tech_card[i]+"-colbox"].suspendPhysics()
|
||||
for i in range(len(spell_card)):
|
||||
scene.objects[spell_card[i]+"-colbox"].suspendPhysics()
|
||||
|
||||
# Afficher la page Screen
|
||||
if name_chap == "Book_chap-screen":
|
||||
scene.objects['Book_page_screen'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_screen'].setVisible(True,True)
|
||||
|
||||
# Afficher les fonctions
|
||||
if name_chap != "Book_chap-screen":
|
||||
# scene.objects['Book_page_screen'].setVisible(False,True)
|
||||
# Afficher la page Map
|
||||
if name_chap == "Book_chap-map":
|
||||
scene.objects['Book_page_map'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_map'].setVisible(True,True)
|
||||
for i in range(len(map_card)):
|
||||
scene.objects[map_card[i]+"-colbox"].restorePhysics()
|
||||
|
||||
# Pas de fonctions
|
||||
if len(fct[name_chap])==0:
|
||||
scene.objects['Book_text']['Text'] = " No functions yet. \n Work in progress..."
|
||||
scene.objects['Book_text'].setVisible(True,True)
|
||||
|
||||
# Cartes des fonctions Map
|
||||
if name_chap == "Book_chap-map":
|
||||
scene.objects['Book_page_map-canvas'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_map-canvas'].setVisible(True,True)
|
||||
# Afficher la page Tower
|
||||
if name_chap == "Book_chap-tower":
|
||||
scene.objects['Book_page_tower'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_tower'].setVisible(True,True)
|
||||
for i in range(len(tower_card)):
|
||||
scene.objects[tower_card[i]+"-colbox"].restorePhysics()
|
||||
|
||||
# Autres fonctions
|
||||
else:
|
||||
for i in range(len(fct[name_chap])):
|
||||
j=i+1
|
||||
if j<10:
|
||||
name_fct = "Book_fct-0"+str(j)
|
||||
else:
|
||||
name_fct = "Book_fct-"+str(j)
|
||||
scene.objects[name_fct]['Text']=fct[name_chap][i]
|
||||
scene.objects[name_fct].setVisible(True,False)
|
||||
|
||||
##
|
||||
# Afficher les details de la fonction
|
||||
##
|
||||
# Afficher la page Tech
|
||||
if name_chap == "Book_chap-tech":
|
||||
scene.objects['Book_page_tech'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_tech'].setVisible(True,True)
|
||||
for i in range(len(tech_card)):
|
||||
scene.objects[tech_card[i]+"-colbox"].restorePhysics()
|
||||
|
||||
def function(cont):
|
||||
if cont.sensors['Click'].status == JUST_ACTIVATED and cont.sensors['MO'].positive :
|
||||
sound_play (sndbuff_book_flip)
|
||||
obj = cont.owner
|
||||
|
||||
# Highlight des fonctions
|
||||
for i in range (1,13):
|
||||
if i<10:
|
||||
name_fct = "Book_fct-0"+str(i)
|
||||
else:
|
||||
name_fct = "Book_fct-"+str(i)
|
||||
scene.objects[name_fct].color = color_doc_fct
|
||||
scene.objects[obj.name[:-7]].color = color_doc_activate
|
||||
scene.objects["Book"]['page_fct'] = obj.name[:-7]
|
||||
# Afficher la page Speel
|
||||
if name_chap == "Book_chap-spell":
|
||||
scene.objects['Book_page_spell'].worldPosition = scene.objects['Book'].worldPosition
|
||||
scene.objects['Book_page_spell'].setVisible(True,True)
|
||||
for i in range(len(spell_card)):
|
||||
scene.objects[spell_card[i]+"-colbox"].restorePhysics()
|
||||
|
||||
# Afficher le texte de la fonction
|
||||
name_chap = scene.objects["Book"]['page_chap']
|
||||
nb = int(obj.name[9:11])-1
|
||||
scene.objects['Book_text_title']['Text'] = fct_title[name_chap][nb]
|
||||
scene.objects['Book_text']['Text'] = fct_text[name_chap][nb]
|
||||
scene.objects['Book_text_title'].setVisible(True,True)
|
||||
scene.objects['Book_text'].setVisible(True,False)
|
||||
|
||||
##
|
||||
# Afficher les details de la fonction à partir d'une carte
|
||||
@ -309,23 +344,21 @@ def card (cont):
|
||||
sound_play (sndbuff_book_flip)
|
||||
obj = cont.owner
|
||||
|
||||
# Highlight des fonctions
|
||||
# for i in range (1,13):
|
||||
# if i<10:
|
||||
# name_fct = "Book_fct-0"+str(i)
|
||||
# else:
|
||||
# name_fct = "Book_fct-"+str(i)
|
||||
# scene.objects[name_fct].color = color_doc_fct
|
||||
# scene.objects[obj.name[:-7]].color = color_doc_activate
|
||||
# scene.objects["Book"]['page_fct'] = obj.name[:-7]
|
||||
# Highlight des cartes
|
||||
last_name_fct= scene.objects['Book']['page_fct']
|
||||
name_fct= obj.name[:-7]
|
||||
if last_name_fct != "":
|
||||
scene.objects[last_name_fct].color = color_doc_fct
|
||||
scene.objects['Book']['page_fct'] = name_fct
|
||||
scene.objects[name_fct].color = color_doc_activate
|
||||
|
||||
# Afficher le texte de la fonction
|
||||
# name_chap = scene.objects["Book"]['page_chap']
|
||||
# nb = int(obj.name[9:11])-1
|
||||
# scene.objects['Book_text_title']['Text'] = fct_title[name_chap][nb]
|
||||
# scene.objects['Book_text']['Text'] = fct_text[name_chap][nb]
|
||||
# scene.objects['Book_text_title'].setVisible(True,True)
|
||||
# scene.objects['Book_text'].setVisible(True,False)
|
||||
print ("name_fct : ", name_fct)
|
||||
print ("fct_description : ", fct_description)
|
||||
scene.objects['Book_text_title']['Text'] = fct_description[name_fct][0]
|
||||
scene.objects['Book_text']['Text'] = fct_description[name_fct][1]
|
||||
scene.objects['Book_text_title'].setVisible(True, False)
|
||||
scene.objects['Book_text'].setVisible(True, False)
|
||||
|
||||
##
|
||||
# Sounds
|
||||
|
12
ct_map1.py
@ -126,10 +126,13 @@ def minion_definition():
|
||||
|
||||
# Wave 1
|
||||
def wave1():
|
||||
# Text
|
||||
ct_map_text_wave(1)
|
||||
# Pooling
|
||||
wave_minion_name=[]
|
||||
for i in range (15):
|
||||
wave_minion_name.append(ct_minion_create_details(14,3,"Orc",1, "Orc_A_common"))
|
||||
# Go !
|
||||
for i in range (len(wave_minion_name)):
|
||||
ct_minion_go(wave_minion_name[i])
|
||||
ct_sleep (2)
|
||||
@ -137,10 +140,13 @@ def wave1():
|
||||
|
||||
# Wave 2
|
||||
def wave2():
|
||||
# Text
|
||||
ct_map_text_wave(2)
|
||||
# Pooling
|
||||
wave_minion_name=[]
|
||||
for i in range (20):
|
||||
wave_minion_name.append(ct_minion_create(14,3,"Orc",1))
|
||||
# Go !
|
||||
for i in range (len(wave_minion_name)):
|
||||
ct_minion_go(wave_minion_name[i])
|
||||
ct_sleep (1)
|
||||
@ -148,10 +154,13 @@ def wave2():
|
||||
|
||||
# Wave 3
|
||||
def wave3():
|
||||
# Text
|
||||
ct_map_text_wave(3)
|
||||
# Pooling
|
||||
wave_minion_name=[]
|
||||
for i in range (30):
|
||||
wave_minion_name.append(ct_minion_create(14,3,"Orc",1))
|
||||
# Go !
|
||||
for i in range (len(wave_minion_name)):
|
||||
ct_minion_go(wave_minion_name[i])
|
||||
ct_sleep (1)
|
||||
@ -159,12 +168,15 @@ def wave3():
|
||||
|
||||
# Wave 4
|
||||
def wave4():
|
||||
# Text
|
||||
ct_map_text_wave(4)
|
||||
# Pooling
|
||||
wave_minion_name_group1=[]
|
||||
wave_minion_name_group2=[]
|
||||
for i in range (20):
|
||||
wave_minion_name_group1.append(ct_minion_create(14,2.5,"Orc",1))
|
||||
wave_minion_name_group2.append(ct_minion_create(14,3,"Knight",1))
|
||||
# Go !
|
||||
for i in range (len(wave_minion_name_group1)):
|
||||
ct_minion_go(wave_minion_name_group1[i])
|
||||
ct_minion_go(wave_minion_name_group2[i])
|
||||
|