Skip to main content

Utilities and tools for things related to Dragon City

Project description

Soon to be documented, enjoy for now and install to discover the tools

Download static files

Sprites

Dragon sprite

from dcutils.static.sprites import DragonSprite

dragon_sprite = DragonSprite(
    image_name="1000_dragon_nature",
    phase=3,
    skin=1,
    image_quality=2
)

dragon_sprite.download(output="dragon_nature_sprite.png")

Dragon thumb

from dcutils.static.sprites import DragonThumb

dragon_thumb = DragonThumb(
    image_name="1000_dragon_nature",
    phase=3,
    skin=1
)

dragon_thumb.download(output="dragon_nature_thumb.png")

Animations

Dragon Animation (Flash Animation)

from dcutils.static.animations import DragonSpineAnimation

dragon_flash_animation = DragonFlashAnimation(
    image_name="1000_dragon_nature",
    phase=3,
    skin=1
)

dragon_flash_animation.download(output="dragon_nature_flash_animation.swf")

Dragon Animation (Spine Animation)

from dcutils.static.animations import DragonSpineAnimation

dragon_spine_animation = DragonSpineAnimation(
    image_name="1000_dragon_nature",
    phase=3,
    skin=1
)

dragon_spine_animation.download(output="dragon_spine_animation.zip")

Island packages

from dcutils.static.islands import IslandPackage

island_package = IslandPackage(uri="/mobile/ui/heroicraces_islands/hr_71_heroicorigins.zip")

island_package.download(output="island_package.zip")

Sounds

Musics

from dcutils.static.sounds import GeneralMusic

music = GeneralMusic(music_name="531_dc_party_planning_island")

music.download(output="531_dc_party_planning_island.mp3")

Calculators

Calculate elements strongs

from dcutils.calculators import calculate_strongs

strongs = calculate_strongs(elements=["terra", "flame"])

Output:

['electric', 'flame', 'nature', 'ice']

Calculate elements weaknesses

from dcutils.calculators import calculate_weaknesses

weaknesses = calculate_weaknesses(first_element="terra")

Output:

['metal', 'war']

Calculate orb recall gain

from dcutils.calculators import calculate_orb_recall_gain

orb_recall_gain = calculate_orb_recall_gain(dragon_level=15, dragon_stars=2)

Output:

389

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dragon-city-utils-1.17.3.7.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file dragon-city-utils-1.17.3.7.tar.gz.

File metadata

  • Download URL: dragon-city-utils-1.17.3.7.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for dragon-city-utils-1.17.3.7.tar.gz
Algorithm Hash digest
SHA256 46c48aed502cfc140511f47e05b3fbb25ef1e4757a0d2be4b902ebf4d3666582
MD5 c7e0e03097bc1e84b55620fd4306e3f8
BLAKE2b-256 6d898d0b6f3c35151fc96139537c63216b874848283d4b328123ab3234a252c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page