Releases: mathsman5133/coc.py
Releases · mathsman5133/coc.py
v3.5.2
Additions:
- added the option to change the base url of the API in
coc.Client
to allow an easier use of proxies - added the new events
coc.PlayerEvents.equipment_change
andcoc.PlayerEvents.active_equipment_change
- added the new names for builder base related events to
coc.ClanEvents
andcoc.PlayerEvents
- added the change in the api model for ClanMembers.
coc.ClanMember
now has a new attributetown_hall
which is the town hall level.
Fixes:
- Fixed an issue with the renaming of
versus_trophies
tobuilder_base_trophies
and similar name changes in the event related code
v3.5.1
Additions:
- added the option to change the base url of the API in
coc.Client
to allow an easier use of proxies - added the new events
coc.PlayerEvents.equipment_change
andcoc.PlayerEvents.active_equipment_change
- added the new names for builder base related events to
coc.ClanEvents
andcoc.PlayerEvents
- added the change in the api model for ClanMembers.
coc.ClanMember
now has a new attributetown_hall
which is the town hall level.
Fixes:
- Fixed an issue with the renaming of
versus_trophies
tobuilder_base_trophies
and similar name changes in the event related code
v3.4.2: April 2024 update
Additions:
- added the new Angry Jelly pet to
coc.PETS_ORDER
- updated static data to reflect the April 2024 update
v3.4.1
Additions:
- added the missing achievements to
coc.ACHIEVEMENT_ORDER
- updated static data to reflect the March 26th balance patch
v3.4.0: Merge pull request #229 from mathsman5133/fix/3.4.0
Additions:
- added the new Fireball equipment to
coc.EQUIPMENT
Bugs Fixed:
- Fixed an oversight that caused static equipment data not to be updated, which in turn resulted in some newer
equipment pieces not showing up incoc.Player.equipment
if game data was enabled - Fixed some errors in the docs
v3.3.1: Merge pull request #227 from mathsman5133/fix/http-error
v3.3.1
Bugs Fixed:
- Fixed a behaviour where in some cases (when the API responds with an unusual status code), coc.py would not
properly raise anHTTPException
v3.3.0: February 2024 Update
Additions:
- Added dedicated enums for elixir/dark elixir troops and spells:
coc.ELIXIR_TROOP_ORDER
,
coc.DARK_ELIXIR_TROOP_ORDER
,coc.ELIXIR_SPELL_ORDER
andcoc.DARK_ELIXIR_SPELL_ORDER
- Added the new Overgrowth Spell
- Added the new equipment introduced since the last release (up to and including the February 2024 update)
v3.2.1
v3.2.1
Bugs Fixed:
- Fixed an issue that would cause spells to not be properly looked up, breaking
coc.Client.get_spell
andPlayer.spells
- Fixed a month overflow issue with clan game start/end events that would occur from Dec 28th to Dec 31st
v3.2.0
Additions:
- Added custom class support to a few more classes:
- :class:
ClanWarMember
now supports the :attr:attack_cls
attribute to customize the type returned in
:func:ClanWarMember.attacks
(and, by extension also :func:WarClan.attacks
and :func:ClanWar.attacks
) - :class:
WarClan
now supports the :attr:member_cls
attribute to customize the type returned in
:func:WarClan.members
(and, by extension also :func:ClanWar.members
) - :class:
ClanWar
now supports the :attr:clan_cls
attribute to customize the types of
:func:ClanWar.clan
and :func:ClanWar.opponent
- the :class:
Equipment
class can now be imported ascoc.Equipment
- :class:
Full Changelog: v3.1.0...v3.2.0
v3.1.0
Additions:
- Added support for Hero Equipment:
- an
Equipment
class - a cached
Player.equipment
property andPlayer.get_equipment
method. Equipment obtained this way will be enriched with game data if enabled - a
Hero.equipment
attribute to return the currently active equipment for a hero. Equipment obtained this way will never be enriched with game data and only have the basicname
,level
,max_level
andvillage
attributes
- an
- Added the new Root Rider troop
- Added the new Spirit Fox pet
- The
ClanMember
class now has atown_hall
attribute that will also be present inClan.members
andClan.get_members
Bugs Fixed:
- Fixed an issue that would cause troop and hero change events to fire even when no upgrades were detected
- Fixed the army link parser
Full Changelog: v3.0.0...v3.1.0