Пример #1
0
#! /usr/bin/python
# -*- coding: utf-8 -*-

from HearthStone.ext import set_description
from HearthStone.ext.card_creator import m_summon

__author__ = 'fyabc'


Package = {
    'id': 101,          # id > 100 is user package
    'name': 'Test01',
}


###########
# Neutral #
###########

随机1 = m_summon('随机1', dict(id=101000, name='随机1', CAH=[4, 2, 2], rarity=4), conditions=['type = 0'])
随机2 = m_summon('随机2', dict(id=101001, name='随机2', CAH=[6, 4, 2], rarity=4), conditions=['type = 0', 'rarity = 4'])
随机3 = m_summon('随机3', dict(id=101002, name='随机3', CAH=[2, 1, 1], rarity=2), conditions=['type = 0', 'cost = 3'])


set_description({
    随机1: '战吼:随机召唤一个随从。',
    随机2: '战吼:随机召唤一个传说随从。',
    随机3: '战吼:随机召唤一个法力值消耗为(3)的随从。'
})
Пример #2
0

比斯巨兽_d = m_blank('比斯巨兽_d',
                 dict(id=1006, name='芬克·恩霍尔', CAH=[2, 3, 3], rarity=-1))

##########
# Shaman #
##########

土元素 = m_blank('土元素',
              dict(id=1007,
                   name='土元素',
                   CAH=[5, 7, 8],
                   rarity=3,
                   taunt=True,
                   overload=3))  #

风领主奥拉基尔 = m_blank('风领主奥拉基尔',
                  dict(id=1008,
                       name='风领主奥拉基尔',
                       CAH=[8, 3, 5],
                       rarity=4,
                       attack_number=2,
                       charge=True,
                       divine_shield=True,
                       taunt=True))  #

set_description({
    土元素: '嘲讽,过载:(3)',
})
Пример #3
0
class 星火术(Spell):  #
    """造成5点伤害。抽1张牌。"""
    _data = dict(id=140, name='星火术', type=1, CAH=[6], klass=9)

    have_target = True

    def play(self, player_id, target):
        self.game.add_event_quick(SpellDamage, self, target, 5)
        self.game.add_event_quick(DrawCard, self.player_id, self.player_id)


埃隆巴克保护者 = m_blank('埃隆巴克保护者',
                  dict(id=141,
                       name='埃隆巴克保护者',
                       CAH=[8, 8, 8],
                       klass=9,
                       taunt=True))  #

set_description({
    精灵弓箭手: '战吼:造成1点伤害。',
    酸性沼泽软泥怪: '战吼:摧毁对手的武器。',
    鱼人猎潮者: '战吼:召唤一个1/1的鱼人斥候。',
    铁炉堡火枪手: '战吼:造成1点伤害。',
    剃刀猎手: '战吼:召唤一个1/1的野猪。',
    机械幼龙技工: '战吼:召唤一个2/1的机械幼龙。',
    雷矛特种兵: '战吼:造成2点伤害。',
    大法师: '法术伤害+1',
    暴风城勇士: '你的其他随从获得+1/+1。',
    火元素: '战吼:造成3点伤害。',
})
Пример #4
0
#! /usr/bin/python
# -*- coding: utf-8 -*-

from HearthStone.ext.card_creator import m_summon
from HearthStone.ext import set_description

__author__ = 'fyabc'

Package = {
    "id": 4,
    "name": "Goblins vs Gnomes",
}

载人收割机 = m_summon('载人收割机',
                 dict(id=4001, name='载人收割机', CAH=[4, 4, 3], rarity=1),
                 bc_or_dr=False,
                 conditions=['type = 0', 'cost = 2'])

set_description({载人收割机: '亡语:随机召唤一个法力值消耗为(2)点的随从。'})
Пример #5
0
#! /usr/bin/python
# -*- encoding: utf-8 -*-

from HearthStone.ext import Minion, Spell, Weapon, set_description
from HearthStone.ext.card_creator import *
from HearthStone.ext import DrawCard, AddCardToHand
from HearthStone.ext import Damage, SpellDamage, RestoreHealth, GetArmor
from HearthStone.ext import RandomTargetDamage
from HearthStone.ext import GameHandler, DeskHandler, FreezeOnDamage
from HearthStone.ext import AddMinionToDesk
from HearthStone.ext import TurnBegin
from HearthStone.ext import MinionDeath
from HearthStone.ext import constants
from HearthStone.ext import verbose

__author__ = 'fyabc'

Package = {
    'id': 102,
    'name': 'MyExtension',
}

###########
# Neutral #
###########

set_description({})