hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
191840622ba4f376a7f93c8724514c6d2f52d3bb
1,393
py
Python
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
6
2021-03-30T13:09:41.000Z
2021-09-08T01:50:42.000Z
africa/views.py
Mutugiii/Pinstagram
40436facfb068eea135c6dffcdaf85028ff803c1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse from django.template import loader from .models import Location,Category,Image def index(request): '''Main view function for the start page''' images = Image.get_images() template = loader.get_template('index.html') context = { 'images': images, } return HttpResponse(template.render(context,request)) def search(request): '''View function to search by category''' template = loader.get_template('search.html') if 'image' in request.GET and request.GET['image']: search_category = request.GET['image'] searched_images = Image.search_images(search_category) message = f'{search_category}' context = { 'message': message, 'images': searched_images, } return HttpResponse(template.render(context,request)) else: message = 'The category does not exist!!' context = { 'message': message, } return render(request, 'search.html', {'message': message}) def locations(request, region): '''View Function to sort based on location''' template = loader.get_template('location.html') region_images = Image.filter_by_location(region) context = { 'images': region_images, } return HttpResponse(template.render(context,request))
30.955556
67
0.65542
1918493233bb0f6b63771c2685165671159e3808
509
py
Python
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
src/chapter4/exercise6.py
group6BCS1/BCS-2021
272b1117922163cde03901cfdd82f8e0cfab9a67
[ "MIT" ]
null
null
null
x = (input("enters hours")) y = (input("enters rate")) def compute_pay(hours, rate): """The try block ensures that the user enters a value between from 0-1 otherwise an error message pops up""" try: hours = float(x) rate = float(y) if hours <= 40: pay= float(hours * rate) else: pay = float(40 * rate + (hours - 40) * 1.5 * rate) return pay except ValueError: return "INVALID ENTRY" pay = compute_pay(x, y) print(pay)
23.136364
63
0.563851
1918ab57423bec266c18fa1bdfea020adfc67165
628
py
Python
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
6
2016-10-16T14:23:44.000Z
2021-05-06T12:00:08.000Z
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
3
2019-10-17T19:21:45.000Z
2020-08-06T10:29:27.000Z
front_end/create_data_natalia_icassp.py
adiyoss/DeepVOT
6bbda01fc5a4f93c92fccba2b9dacee511533244
[ "MIT" ]
8
2016-07-02T04:38:07.000Z
2021-08-31T08:25:19.000Z
# import argparse # # # def main(audio_path, textgrid_path, output_path): # data = list() # for # print(1) # # if __name__ == "__main__": # # -------------MENU-------------- # # # command line arguments # parser = argparse.ArgumentParser() # parser.add_argument("audio_path", help="The path to the audio directory") # parser.add_argument("labels_path", help="The path to the relevant textgrids") # parser.add_argument("output_path", help="The path to output directory") # args = parser.parse_args() # # # main function # main(args.audio_path, args.textgrid_path, args.output_path)
33.052632
83
0.638535
1918ecc1cb7ed0d73d2876e4710c8c0ffca95358
557
py
Python
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
1
2021-09-19T13:33:33.000Z
2021-09-19T13:33:33.000Z
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
phone_numbers.py
EdilOndong/beginner_code
13b05afb25ec2ba4396f5fbe751febe7cb4bdabb
[ "Unlicense" ]
null
null
null
import phonenumbers from phonenumbers import geocoder, carrier if __name__ == '__main__': numbers = input("Please Enter The Target Number : ") get_information_about_number(numbers)
39.785714
125
0.732496
191b02340ae1fb3a92d5b7d4ecfd3b82e78caed3
3,494
py
Python
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
8
2019-06-04T16:21:07.000Z
2021-09-05T07:24:20.000Z
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
null
null
null
src/templates/camera.py
coherentsolutionsinc/issoft-insights-2019-sdc-carla-ros
f6d3e162888bd79d59b771c82ff028df0f70ae11
[ "MIT" ]
1
2019-06-21T14:37:18.000Z
2019-06-21T14:37:18.000Z
# TODO: 1. Add indicator that node should be run by python # line above indicates that python is responsible for running this node import os import csv import rospy import numpy as np import pygame from utilities import pipline import cv2 from cv_bridge import CvBridge, CvBridgeError from sensor_msgs.msg import Image # set image resolution RESOLUTION_X = 640 RESOLUTION_Y = 480 # python class definition # python way to indicate what to do if this file is run as executable rather then imported as library if __name__ == '__main__': try: # create CameraTester instance and initiate loop sequence CameraTester() except rospy.ROSInterruptException: # catch and log ROS errors rospy.logerr('Could not start camera tester node.') pass finally: pygame.quit()
30.920354
121
0.642244
191e560813185fd516419069f86e8ed6f0ccdaf4
393
py
Python
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
Server APP/epl/rest/migrations/0012_auto_20180201_2304.py
seanjohn85/Premier-League
61c1406733e9c6fb282f8a4544a2f16cd6ff80a0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-02-01 23:04 from __future__ import unicode_literals from django.db import migrations
19.65
46
0.615776
191ea83d06729e5bde9055413df2bd0a44ff8fe7
2,669
py
Python
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
plugins/beacon/alerta_beacon.py
ernadhalilovic/alerta-contrib
e12b5cf1e7f5913f641758032ca0d426c7eb8a08
[ "MIT" ]
null
null
null
import logging import os import json import requests try: from alerta.plugins import app # alerta >= 5.0 except ImportError: from alerta.app import app # alerta < 5.0 from alerta.plugins import PluginBase LOG = logging.getLogger('alerta.plugins.beacon') BEACON_HEADERS = { 'Content-Type': 'application/json' } BEACON_SEND_ON_ACK = os.environ.get('BEACON_SEND_ON_ACK') or app.config.get('BEACON_SEND_ON_ACK', False) BEACON_SEVERITY_MAP = app.config.get('BEACON_SEVERITY_MAP', {}) BEACON_DEFAULT_SEVERITY_MAP = {'security': '#000000', # black 'critical': '#FF0000', # red 'major': '#FFA500', # orange 'minor': '#FFFF00', # yellow 'warning': '#1E90FF', #blue 'informational': '#808080', #gray 'debug': '#808080', # gray 'trace': '#808080', # gray 'ok': '#00CC00'} # green
35.118421
104
0.573248
1923272d7be3c0492ef9a0ede3d5a0e3b7f1d272
5,542
py
Python
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
pyscriptman/hosts/host.py
reap2sow1/pyscriptman
2020111097e846c3fb6c4669d67de05ee3ef979a
[ "MIT" ]
null
null
null
"""The abstract class module for all hosts.""" # Standard Library Imports from abc import ABC, abstractmethod, abstractclassmethod # Third Party Imports # Local Application Imports from util.helpers import get_typeof_repo_names from util.message import Message def __init_subclass__(cls, *args, **kwargs): """Specifications required by future host subclasses.""" super().__init_subclass__(*args, **kwargs) if cls.HELP_DESC is NotImplemented and cls.__name__ != "WebHost": raise NotImplementedError( Message.construct_helpdesc_notimplemented_msg({cls.__name__}) ) def add_repo_name_and_location(self, repo_name, location): """How to add repo name and location to host's repos names and locations. Parameters ---------- repo_name : str The name of the Git repo to store. location : str A url to the Git repo. """ self.repo_names_and_locations[repo_name] = location def get_location_from_repo_name(self, repo_name): """How to get the host's repo location from the repo name. Parameters ---------- repo_name : str The name of the Git repo to store. """ return self.repo_names_and_locations[repo_name]
28.27551
83
0.616925
192369f557f40b35dc6e1a446089e36a7716438d
488
py
Python
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
429
2019-08-14T01:34:07.000Z
2022-03-30T06:31:38.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
998
2019-08-14T01:52:37.000Z
2022-03-31T23:17:22.000Z
discovery-provider/src/models/reward_manager.py
AudiusProject/audius-protocol
0315c31402121b24faa039e93cea8869d5b80743
[ "Apache-2.0" ]
73
2019-10-04T04:24:16.000Z
2022-03-24T16:27:30.000Z
from sqlalchemy import ( Column, Integer, String, DateTime, ) from .models import Base
25.684211
64
0.719262
1924e772ac06a1b05910f40c7a40911d19ba34ea
2,326
py
Python
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
3
2020-04-10T16:47:25.000Z
2020-05-17T14:44:47.000Z
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
null
null
null
plugins/roll.py
Cyame/OkayuTweetBot
5ca257f2faa622f5b88cecc95522f2114e5717fc
[ "MIT" ]
1
2020-04-12T09:38:22.000Z
2020-04-12T09:38:22.000Z
from nonebot import on_command, CommandSession,permission as perm import asyncio import traceback from helper import getlogger,msgSendToBot,CQsessionToStr,data_read,data_save from module.roll import match_roll logger = getlogger(__name__) __plugin_name__ = 'ROLL' __plugin_usage__ = r""" roll """ # # on_command
32.305556
87
0.602322
1925e952156fee34defbc265e2d492362c1470a4
384
py
Python
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
42
2022-02-27T16:16:57.000Z
2022-03-30T20:11:05.000Z
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
null
null
null
wip/ray/serve/archive/serve-dag-client.py
nitish-raj/data-science-on-aws
b760805d28f8375094ce83aee849de8b9d3382a2
[ "Apache-2.0" ]
26
2022-02-28T18:28:11.000Z
2022-03-29T13:15:22.000Z
import time import requests # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["5", [1, 2], "sum"]).text) print(f"Time spent: {round(time.time() - cur, 2)} secs.") # Http endpoint cur = time.time() print(requests.post("http://127.0.0.1:8000/my-dag", json=["1", [0, 2], "max"]).text) print(f"Time spent: {round(time.time() - cur, 2)} secs.")
29.538462
84
0.630208
192684c2fc33a3cff3429a446241736d19388fbe
697
py
Python
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/careeropportunity/migrations/0015_auto_20200426_1109.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
# Generated by Django 3.0.5 on 2020-04-26 09:09 from django.db import migrations, models import django.db.models.deletion
26.807692
60
0.604017
1928b4ff5a13f2e891c264d668791fc8b69f1469
790
py
Python
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
Businesslayer/Email_Validate.py
rohitgs28/FindMyEmployer
d4b369eb488f44e40ef371ac09847f8ccc39994c
[ "MIT" ]
null
null
null
import os import os.path import logging import sys import IValidator import re sys.path.append(os.path.abspath(os.path.join('0', '../extensions'))) from extensions_logging import logmyerror
32.916667
73
0.640506
192a1f5991a077d1bd0f6488cd823461b384cac5
188
py
Python
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
psmate/apps/blog/admin.py
vgrivtsov/psmate
10e0279b995d36518e0867e8c5d5125c355a2f00
[ "MIT" ]
null
null
null
from django.contrib import admin from psmate.models import News admin.site.register(News, BlogAdmin)
17.090909
46
0.75
192a9867b561e4cc653889667cda0bafef034b8e
4,706
py
Python
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
Main/APIUsagePatternSearcher.py
SMAT-Lab/APIMatchmaker
0cc5c68f7f2aba570ad4c583bbc5ec757158c676
[ "MIT" ]
null
null
null
# coding:utf-8 import re from Helper.common import *
35.923664
116
0.563536
192b90d17689e6aeda21369042966d2de1a7f460
335
py
Python
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
127
2020-10-13T18:04:35.000Z
2022-02-17T10:56:27.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
132
2020-10-13T18:06:53.000Z
2021-10-17T18:44:26.000Z
Beginner/Ambiguous Permutations (PERMUT2)/permutation.py
anishsingh42/CodeChef
50f5c0438516210895e513bc4ee959b9d99ef647
[ "Apache-2.0" ]
364
2020-10-13T18:04:52.000Z
2022-03-04T14:34:53.000Z
while True : n = int(input()) if n == 0 : break else : arr = input().split() check = True for i in range(n) : if int(arr[int(arr[i]) - 1]) != i + 1 : check = False if check : print('ambiguous') else : print('not ambiguous')
23.928571
51
0.402985
192bad6eff2c66e4ca11db59cd7ea795ca554716
2,140
py
Python
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
1
2021-12-19T14:59:31.000Z
2021-12-19T14:59:31.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
3
2021-09-16T20:47:58.000Z
2021-12-19T02:45:59.000Z
src/voiceassistant/integrations/respeaker.py
vadimtitov/voice-assistant
9ed6a799f44d5a546eb712195e3e84e6ff10d2fa
[ "Apache-2.0" ]
null
null
null
"""Add-On functions for speech interface.""" from __future__ import annotations from typing import TYPE_CHECKING, List from voiceassistant.addons.create import Addon, CoreAttribute, addon_begin, addon_end from voiceassistant.exceptions import IntegrationError from .base import Integration if TYPE_CHECKING: from voiceassistant.core import VoiceAssistant try: from pixel_ring import pixel_ring from pixel_ring import apa102_pixel_ring if isinstance(pixel_ring, apa102_pixel_ring.PixelRing): print("Found ReSpeaker 4 Mic Array") from gpiozero import LED power = LED(5) power.on() pixel_ring.change_pattern("echo") pixel_ring.off() ring_state = PixelRingState.off except Exception as e: raise IntegrationError(f"No ReSpeaker Microphone detected or not able to connect: {e}") from e
24.883721
98
0.700935
192bfb70b6700b39e9f6c097fb207ffc155ff246
4,602
py
Python
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
1
2018-07-14T07:09:23.000Z
2018-07-14T07:09:23.000Z
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
src/driving_curriculum/agents/neural_networks/tf/tf_novelty_detector.py
takeitallsource/pac-simulator
2c00d878047ec4a0247167e8a7de5aec8b474086
[ "MIT" ]
null
null
null
from math import cos, sin import numpy as np import tensorflow as tf from .....simulator import Agent # from simulator import Agent tf.set_random_seed(1234)
37.112903
100
0.634941
192c65ff044acb45e1b0a8921920efeebef0c02a
4,093
py
Python
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
10
2015-11-19T12:39:50.000Z
2021-02-21T20:15:29.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
109
2015-06-15T05:03:33.000Z
2018-01-14T10:18:48.000Z
setup.py
opalmer/pycffiwin32
39210182a92e93c37a9f1c644fd5fcc1aa32f6d1
[ "MIT" ]
8
2015-07-29T04:18:27.000Z
2018-11-02T17:15:40.000Z
from __future__ import print_function import os import sys from errno import ENOENT from os.path import dirname, abspath, join, isdir from setuptools import setup, find_packages from distutils.command.upload import upload from pywincffi import __version__ try: WindowsError except NameError: WindowsError = OSError try: with open("README.rst") as readme: long_description = readme.read() except (OSError, IOError, WindowsError) as error: if error.errno == ENOENT: long_description = "" else: raise requirements = [ "cffi>=1.6.0", "six" ] ROOT = dirname(abspath(__file__)) DISTS = join(ROOT, "dist") setup_keywords = dict( name="pywincffi", version=".".join(map(str, __version__)), cmdclass={ "upload_from_appveyor": AppVeyorArtifactUpload }, packages=find_packages( include=("pywincffi*", ) ), include_package_data=True, author="Oliver Palmer", author_email="oliverpalmer@opalmer.com", url="http://github.com/opalmer/pywincffi", description="A Python library which wraps Windows functions using CFFI", long_description=long_description, setup_requires=requirements, install_requires=requirements, classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Environment :: Win32 (MS Windows)", "Operating System :: Microsoft :: Windows", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries" ] ) # Only add cffi_modules if we're running on Windows. Otherwise # things like the documentation build, which can run on Linux, may # not work. if os.name == "nt": setup_keywords.update( cffi_modules=["pywincffi/core/dist.py:_ffi"] ) setup(**setup_keywords)
31.728682
79
0.583435
192d556dfe9b06a1468a98d96f04aa0a6fb881ce
331
py
Python
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
null
null
null
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
null
null
null
data/split.py
manhcuongk55/gender-classification-by-hand
cafc5781f9c0a6476e848239f13d3ddf3a55de59
[ "MIT" ]
1
2020-12-07T06:38:16.000Z
2020-12-07T06:38:16.000Z
import shutil with open('test.csv', 'r') as f: lines = f.readlines() for line in lines: image, gender = line.split(",") print(image) if 'female' in gender: shutil.move("test/" + image, "test/female/" + image) else: shutil.move("test/" + image, "test/male/" + image)
27.583333
64
0.531722
192f1d7e5401a66f3ca654feee18cca382797d01
2,941
py
Python
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
generate.py
fnrcum/dungeon_generator
7f5d1bd1b612f66e39f2782eac6fcd40abe7f7f0
[ "MIT" ]
null
null
null
import random from helpers import Leaf, Rect, RoomList from renderer import MapRenderer from typing import List, Any room_list = RoomList() tree = BSPTree().generateLevel(64, 128, room_list) MapRenderer(tree).render_map() print(room_list.get_rooms()[5].get_random_point_in_room())
35.011905
82
0.550493
1930fdebe216693651fdbce0248a0cc3fa01cfe6
4,387
py
Python
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/crsaxialfrictionmodel.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# This an autogenerated file # # Generated with CRSAxialFrictionModel from typing import Dict,Sequence,List from dmt.entity import Entity from dmt.blueprint import Blueprint from .blueprints.crsaxialfrictionmodel import CRSAxialFrictionModelBlueprint from typing import Dict from sima.sima.moao import MOAO from sima.sima.scriptablevalue import ScriptableValue
29.641892
174
0.647367
19310709fccc926261a99f530ec7e2d84e44988f
3,142
py
Python
Drop7/test/Disk_Test.py
SanderP99/Drop7
b11c2590d3cc1e311fb34a4635a1f6c075d9cb59
[ "MIT" ]
null
null
null
Drop7/test/Disk_Test.py
SanderP99/Drop7
b11c2590d3cc1e311fb34a4635a1f6c075d9cb59
[ "MIT" ]
null
null
null
Drop7/test/Disk_Test.py
SanderP99/Drop7
b11c2590d3cc1e311fb34a4635a1f6c075d9cb59
[ "MIT" ]
null
null
null
# import Drop7.Board as Board import Drop7.Disk as Disk def test_Is_Proper_Disk__Legal_Case(score, max_score): """Function is_proper_disk: given disk is proper disk.""" max_score.value += 1 try: assert Disk.is_proper_disk(4, Disk.init_disk(Disk.VISIBLE, 4)) assert Disk.is_proper_disk(4, Disk.init_disk(Disk.CRACKED, 1)) score.value += 1 except: pass def test_Is_Proper_Disk__Illegal_State(score, max_score): """Function is_proper_disk: illegal state.""" max_score.value += 1 try: assert not Disk.is_proper_disk(4, Disk.init_disk(("ABC",), 4)) score.value += 1 except: pass def test_Is_Proper_Disk__Illegal_Value(score, max_score): """Function is_proper_disk: illegal value.""" max_score.value += 1 try: assert not Disk.is_proper_disk(4, Disk.init_disk(Disk.VISIBLE, 5)) score.value += 1 except: pass def test_Init_Disk__Single_Case(score,max_score): """Function init_disk: single case.""" max_score.value += 1 try: disk = Disk.init_disk(Disk.VISIBLE,4) assert Disk.get_state(disk) == Disk.VISIBLE assert Disk.get_value(disk) == 4 score.value += 1 except: pass def test_Get_Random_Disk__Single_Case(score,max_score): """Function get_random_disk: single case.""" max_score.value += 1 try: for i in range(1,1000): disk = Disk.get_random_disk(7,{Disk.VISIBLE,Disk.WRAPPED}) assert Disk.get_state(disk) in {Disk.VISIBLE,Disk.WRAPPED} assert 1 <= Disk.get_value(disk) <= 7 score.value += 1 except: pass def test_Set_State(score, max_score): """Function set_state: single case.""" max_score.value += 1 try: disk = Disk.init_disk(Disk.CRACKED,5) Disk.set_state(disk, Disk.VISIBLE) assert Disk.get_state(disk) == Disk.VISIBLE score.value += 1 except: pass def test_Set_Value(score, max_score): """Function set_value: single case.""" max_score.value += 1 try: disk = Disk.init_disk(Disk.CRACKED,5) Disk.set_value(disk, 8) assert Disk.get_value(disk) == 8 score.value += 1 except: pass def test_Get_Disk_Copy(score, max_score): """Function get_disk_copy: single case.""" max_score.value += 3 try: disk = Disk.init_disk(Disk.CRACKED,5) copy = Disk.get_disk_copy(disk) assert Disk.get_state(copy) == Disk.get_state(disk) assert Disk.get_value(copy) == Disk.get_value(disk) # Checking that a new disk has been returned. Disk.set_value(disk,Disk.get_value(disk)+100) assert Disk.get_value(copy) == Disk.get_value(disk)-100 score.value += 3 except: pass disk_test_functions = \ { test_Is_Proper_Disk__Legal_Case, test_Is_Proper_Disk__Illegal_State, test_Is_Proper_Disk__Illegal_Value, test_Init_Disk__Single_Case, test_Get_Random_Disk__Single_Case, test_Set_State, test_Set_Value, test_Get_Disk_Copy }
26.854701
74
0.638765
19340df43351011be81d21c8afe59df9e5f9d483
1,821
py
Python
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
Sensors/MaxSonarTTY.py
paceaux/pi-projects
c9eb1f138868d41f8304c4251382cc4a6d161ba8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Filename: maxSonarTTY.py # Reads serial data from Maxbotix ultrasonic rangefinders # Gracefully handles most common serial data glitches # Use as an importable module with "import MaxSonarTTY" # Returns an integer value representing distance to target in millimeters from time import time from serial import Serial
33.109091
84
0.556837
1935e935a94ea899193f63cf6a01d898e2f578ec
2,577
py
Python
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
15
2015-12-14T19:07:28.000Z
2022-02-28T13:32:11.000Z
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
null
null
null
tests/output/TestFile.py
dstore-dbap/LumberMill
b7cbadc209a83386871735b8ad88b61da917a6ab
[ "Apache-2.0" ]
4
2017-02-08T10:49:55.000Z
2019-03-19T18:47:46.000Z
import sys import os import io import gzip import mock import tempfile import lumbermill.utils.DictUtils as DictUtils from tests.ModuleBaseTestCase import ModuleBaseTestCase from lumbermill.output import File
37.347826
128
0.629414
19368974491b6add6e004f6c293a6ac67a000708
4,517
py
Python
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
user_scripts/decode_logits.py
DavidHribek/pero-ocr
8d274282813878b3e31dd560563a36b3f02e5c33
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import pickle import time import sys from safe_gpu.safe_gpu import GPUOwner from pero_ocr.decoding import confusion_networks from pero_ocr.decoding.decoding_itf import prepare_dense_logits, construct_lm, get_ocr_charset, BLANK_SYMBOL import pero_ocr.decoding.decoders as decoders from pero_ocr.transcription_io import save_transcriptions if __name__ == "__main__": args = parse_arguments() gpu_owner = GPUOwner() main(args)
34.480916
150
0.651317
1936ec832cd585d63cf22975d9e0473abed83035
1,608
py
Python
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
5
2020-07-15T09:01:42.000Z
2020-09-28T08:45:21.000Z
PiCN/Layers/ICNLayer/ContentStore/ContentStoreMemoryExact.py
NikolaiRutz/PiCN
7775c61caae506a88af2e4ec34349e8bd9098459
[ "BSD-3-Clause" ]
null
null
null
""" An in-memory content store with exact matching""" import time from PiCN.Packets import Content, Name from PiCN.Layers.ICNLayer.ContentStore import BaseContentStore, ContentStoreEntry
34.212766
83
0.65796
193ab624d131e849acb875b0bc59e01faf091e1d
279
py
Python
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
2
2018-02-06T06:24:03.000Z
2018-03-20T03:32:13.000Z
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
32
2017-02-21T20:01:43.000Z
2020-02-08T21:52:16.000Z
texaslan/slack/pipelines/on_success.py
hsmeans/texaslan.org
a981e7835381e77320e39536a619981ba9d03451
[ "MIT" ]
6
2017-03-21T21:16:40.000Z
2020-02-08T20:46:20.000Z
from django_slack_oauth.models import SlackOAuthRequest
27.9
55
0.749104
193b0ac325ef43006df164a8a14a3f901439a20c
185
py
Python
main_app/forms.py
reeshabhkumarranjan/SocPay
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
[ "MIT" ]
null
null
null
main_app/forms.py
reeshabhkumarranjan/SocPay
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
[ "MIT" ]
null
null
null
main_app/forms.py
reeshabhkumarranjan/SocPay
ba3f3ea0b7b814e1ca40293b14f192b6d40adbbd
[ "MIT" ]
null
null
null
from django.forms import ModelForm # class add_money_form(ModelForm): # class Meta: # model = Transaction # fields = ['transaction_user_2', 'transaction_amount']
20.555556
63
0.675676
193c6a68a587626a9b404a216a915daaf939afcb
7,187
py
Python
leetcode_python/Design/first-unique-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Design/first-unique-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Design/first-unique-number.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 1429. First Unique Number # https://leetcode.ca/all/1429.html You have a queue of integers, you need to retrieve the first unique integer in the queue. Implement the FirstUnique class: FirstUnique(int[] nums) Initializes the object with the numbers in the queue. int showFirstUnique() returns the value of the first unique integer of the queue, and returns -1 if there is no such integer. void add(int value) insert value to the queue. Example 1: Input: ["FirstUnique","showFirstUnique","add","showFirstUnique","add","showFirstUnique","add","showFirstUnique"] [[[2,3,5]],[],[5],[],[2],[],[3],[]] Output: [null,2,null,2,null,3,null,-1] Explanation: FirstUnique firstUnique = new FirstUnique([2,3,5]); firstUnique.showFirstUnique(); // return 2 firstUnique.add(5); // the queue is now [2,3,5,5] firstUnique.showFirstUnique(); // return 2 firstUnique.add(2); // the queue is now [2,3,5,5,2] firstUnique.showFirstUnique(); // return 3 firstUnique.add(3); // the queue is now [2,3,5,5,2,3] firstUnique.showFirstUnique(); // return -1 Example 2: Input: ["FirstUnique","showFirstUnique","add","add","add","add","add","showFirstUnique"] [[[7,7,7,7,7,7]],[],[7],[3],[3],[7],[17],[]] Output: [null,-1,null,null,null,null,null,17] Explanation: FirstUnique firstUnique = new FirstUnique([7,7,7,7,7,7]); firstUnique.showFirstUnique(); // return -1 firstUnique.add(7); // the queue is now [7,7,7,7,7,7,7] firstUnique.add(3); // the queue is now [7,7,7,7,7,7,7,3] firstUnique.add(3); // the queue is now [7,7,7,7,7,7,7,3,3] firstUnique.add(7); // the queue is now [7,7,7,7,7,7,7,3,3,7] firstUnique.add(17); // the queue is now [7,7,7,7,7,7,7,3,3,7,17] firstUnique.showFirstUnique(); // return 17 Example 3: Input: ["FirstUnique","showFirstUnique","add","showFirstUnique"] [[[809]],[],[809],[]] Output: [null,809,null,-1] Explanation: FirstUnique firstUnique = new FirstUnique([809]); firstUnique.showFirstUnique(); // return 809 firstUnique.add(809); // the queue is now [809,809] firstUnique.showFirstUnique(); // return -1 Constraints: 1 <= nums.length <= 10^5 1 <= nums[i] <= 10^8 1 <= value <= 10^8 At most 50000 calls will be made to showFirstUnique and add. """ # V0 # V1 # https://blog.csdn.net/Changxing_J/article/details/109854442 # IDEA : dequeue from collections import Counter, deque # V1' # IDEA : dequeue # https://blog.csdn.net/sinat_30403031/article/details/116664368 from collections import Counter, deque, defaultdict from heapq import heappush, heappop # V1'' # https://github.com/jyj407/leetcode/blob/master/1429.md # V1''' # https://github.com/jyj407/leetcode/blob/master/1429.md # V1'''' # https://github.com/jyj407/leetcode/blob/master/1429.md # V1''''' # https://leetcode.ca/2019-10-29-1429-First-Unique-Number/ # C++ # / OJ: https://leetcode.com/problems/first-unique-number/ # # // Time: # // FirstUnique: O(N) # // showFirstUnique: O(1) # // add: O(1) # // Space: O(N) # class FirstUnique { # list<int> data; # typedef list<int>::iterator iter; # unordered_map<int, iter> m; # unordered_set<int> s; # public: # FirstUnique(vector<int>& nums) { # for (int n : nums) add(n); # } # # int showFirstUnique() { # return data.size() ? data.front() : -1; # } # # void add(int value) { # if (s.count(value)) return; # if (m.count(value)) { # data.erase(m[value]); # s.insert(value); # } else { # data.push_back(value); # m[value] = prev(data.end()); # } # } # }; # V2
27.856589
125
0.579797
193cb661b098c4c5b452e6a65209cb9479f364c3
4,326
py
Python
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
get_git/github_client.py
alanahanson/get-git
a3b078a64ce8f4bb7103fcd46a0eee80cd35f87c
[ "MIT" ]
null
null
null
import os from get_git.utils import make_request GH_URL = 'https://api.github.com/graphql' TOKEN=os.environ.get('GH_API_TOKEN')
35.170732
100
0.487286
193eb2395e6afc892c407dab660196002686ac81
15,517
py
Python
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
Naluno/model.py
dstarrago/Naluno
de2a498b65ac7e10599f797e41c77d0ceae56c3e
[ "MIT" ]
null
null
null
from __future__ import division, print_function, unicode_literals from config import * __all__ = ['Map', 'Vertex', 'Edge', 'State'] class Edge: def __init__(self): self._port = [State.FREE, State.FREE, State.FREE] self._num_cards = 0 self._contact_number = 0 def update(self, edge): self._contact_number = 0 for i in range(3): if self.port[i] != State.FREE: if self.port[i] != State.CLOSED and edge.port[i] != State.CLOSED: self._contact_number += 1 self.port[i] = edge.port[i] self.num_cards += 1 def match(self, edge): self._contact_number = 0 if self.port[1] == State.FREE: return True for i in range(3): if self.port[i] == State.MANDATORY: if edge.port[i] == State.CLOSED: return False elif self.port[i] == State.CLOSED: if edge.port[i] == State.MANDATORY: return False if self.port[i] != State.CLOSED and edge.port[i] != State.CLOSED: self._contact_number += 1 return True def copy_to(self, edge): edge.num_cards = self._num_cards edge.contact_number = self._contact_number for i in range(3): edge.port[i] = self._port[i] class Vertex: def __init__(self): self._state = State.FREE self._contact_number = 0 self._num_cards = 0 def update(self, vertex): self._contact_number = 0 if self._state == State.CLOSED: self._state = vertex.state elif self._state == State.MANDATORY: if vertex.state != State.CLOSED: self._state = State.OPTIONAL self._contact_number = 1 elif self._state == State.OPTIONAL: if vertex.state != State.CLOSED: self._contact_number = 1 elif self._state == State.FREE: self._state = vertex.state self._num_cards += 1 def match(self, vertex): self._contact_number = 0 if self._state == State.FREE: return True if self._state == State.MANDATORY: if vertex.state == State.CLOSED and self._num_cards == 3: return False elif self._state == State.CLOSED: if vertex.state == State.MANDATORY and self._num_cards == 3: return False if self._state != State.CLOSED and vertex.state != State.CLOSED: self._contact_number = 1 return True def copy_to(self, vertex): vertex.state = self._state vertex.num_cards = self._num_cards vertex.contact_number = self._contact_number def clone(self): m = Map(self._matrix) m.contact_count = self._contact_count m.move_history.extend(self._move_history[:]) m.most_left_move = self._most_left_move m.most_right_move = self._most_right_move m.top_move = self._top_move m.bottom_move = self._bottom_move return m def square_at(self, col, row): return self._matrix[row * 2 + 1][col * 2 + 1] def top_square(self, col, row): return self.square_at(col, row - 1) # NO using GL coord system def bottom_square(self, col, row): return self.square_at(col, row + 1) # NO using GL coord system def left_square(self, col, row): return self.square_at(col - 1, row) def right_square(self, col, row): return self.square_at(col + 1, row) def top_edge(self, col, row): return self._matrix[row * 2][col * 2 + 1] def bottom_edge(self, col, row): return self._matrix[row * 2 + 2][col * 2 + 1] def left_edge(self, col, row): return self._matrix[row * 2 + 1][col * 2] def right_edge(self, col, row): return self._matrix[row * 2 + 1][col * 2 + 2] def top_left_vertex(self, col, row): return self._matrix[row * 2][col * 2] def bottom_left_vertex(self, col, row): return self._matrix[row * 2 + 2][col * 2] def top_right_vertex(self, col, row): return self._matrix[row * 2][col * 2 + 2] def bottom_right_vertex(self, col, row): return self._matrix[row * 2 + 2][col * 2 + 2] def dock_count(self, col, row): result = self.top_edge(col, row).dock_count + \ self.bottom_edge(col, row).dock_count + \ self.left_edge(col, row).dock_count + \ self.right_edge(col, row).dock_count + \ self.top_left_vertex(col, row).dock_count + \ self.top_right_vertex(col, row).dock_count + \ self.bottom_left_vertex(col, row).dock_count + \ self.bottom_right_vertex(col, row).dock_count return result def mandatory_dock_count(self, col, row): result = self.top_edge(col, row).mandatory_dock_count + \ self.bottom_edge(col, row).mandatory_dock_count + \ self.left_edge(col, row).mandatory_dock_count + \ self.right_edge(col, row).mandatory_dock_count + \ self.top_left_vertex(col, row).mandatory_dock_count + \ self.top_right_vertex(col, row).mandatory_dock_count + \ self.bottom_left_vertex(col, row).mandatory_dock_count + \ self.bottom_right_vertex(col, row).mandatory_dock_count return result def have_adjacent_card(self, col, row): up = self.top_square(col, row) down = self.bottom_square(col, row) left = self.left_square(col, row) right = self.right_square(col, row) return up.has_card or down.has_card or left.has_card or right.has_card def move_card(self, move): self.put_card(move.col, move.row, move.card) def put_card(self, col, row, card): self.square_at(col, row).has_card = True self.top_left_vertex(col, row).update(card.vertex(card.TOP_LEFT_VERTEX)) self.top_right_vertex(col, row).update(card.vertex(card.TOP_RIGHT_VERTEX)) self.bottom_left_vertex(col, row).update(card.vertex(card.BOTTOM_LEFT_VERTEX)) self.bottom_right_vertex(col, row).update(card.vertex(card.BOTTOM_RIGHT_VERTEX)) self.top_edge(col, row).update(card.vertex(card.TOP_EDGE)) self.bottom_edge(col, row).update(card.vertex(card.BOTTOM_EDGE)) self.left_edge(col, row).update(card.vertex(card.LEFT_EDGE)) self.right_edge(col, row).update(card.vertex(card.RIGHT_EDGE)) self._contact_count = \ self.top_edge(col, row).contact_number + \ self.bottom_edge(col, row).contact_number + \ self.left_edge(col, row).contact_number + \ self.right_edge(col, row).contact_number + \ self.top_left_vertex(col, row).contact_number + \ self.top_right_vertex(col, row).contact_number + \ self.bottom_left_vertex(col, row).contact_number + \ self.bottom_right_vertex(col, row).contact_number move = Move(col, row, card) self._move_history.append(move) self.update_extreme_cards(move) return self._contact_count def match(self, col, row, card): match = \ self.top_left_vertex(col, row).match(card.vertex(card.TOP_LEFT_VERTEX)) and \ self.top_right_vertex(col, row).match(card.vertex(card.TOP_RIGHT_VERTEX)) and \ self.bottom_left_vertex(col, row).match(card.vertex(card.BOTTOM_LEFT_VERTEX)) and \ self.bottom_right_vertex(col, row).match(card.vertex(card.BOTTOM_RIGHT_VERTEX)) and \ self.top_edge(col, row).match(card.vertex(card.TOP_EDGE)) and \ self.bottom_edge(col, row).match(card.vertex(card.BOTTOM_EDGE)) and \ self.left_edge(col, row).match(card.vertex(card.LEFT_EDGE)) and \ self.right_edge(col, row).match(card.vertex(card.RIGHT_EDGE)) if not match: self._contact_count = 0 return False self._contact_count = \ self.top_edge(col, row).contact_number + \ self.bottom_edge(col, row).contact_number + \ self.left_edge(col, row).contact_number + \ self.right_edge(col, row).contact_number + \ self.top_left_vertex(col, row).contact_number + \ self.top_right_vertex(col, row).contact_number + \ self.bottom_left_vertex(col, row).contact_number + \ self.bottom_right_vertex(col, row).contact_number return self._contact_count > 0 def try_move(self, move): return not self.square_at(move.col, move.row).has_card and \ self.have_adjacent_card(move.col, move.row) and \ self.match(move.col, move.row, move.card) def play_card(self, col, row, card): if not self.square_at(col, row).has_card and \ self.have_adjacent_card(col, row) and \ self.match(col, row, card): self.put_card(col, row, card) card.played = True return True def update_extreme_cards(self, move): if len(self._move_history) == 1: self._most_right_move = move self._most_left_move = move self._top_move = move self._bottom_move = move else: if move.col > self._most_right_move.col: self._most_right_move = move if move.col < self._most_left_move.col: self._most_left_move = move if move.row < self._top_move: # NO using GL coord system self._top_move = move if move.row > self._bottom_move: # NO using GL coord system self._bottom_move = move
32.875
98
0.569827
194088485187df0c1ce817432f67940ecca472cb
1,035
py
Python
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
139
2016-02-18T02:31:04.000Z
2022-02-18T10:38:06.000Z
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
8
2016-04-18T08:10:44.000Z
2020-12-30T08:49:33.000Z
combo/search/score.py
yanpei18345156216/COMBO_Python3
666a116dfece71e6236291e89ea2ab4d6db0ead9
[ "MIT" ]
50
2016-05-21T01:17:23.000Z
2022-02-18T01:27:41.000Z
import numpy as np import scipy.stats
24.069767
67
0.656039
19414c412df3d7fe628fab1103ed1b978f8a57d8
1,528
py
Python
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
2
2019-06-28T20:08:56.000Z
2021-03-30T15:24:10.000Z
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
null
null
null
dags/calculating_google_ads_network.py
BjMrq/Python-AirflowReportPipeline
261812488d661580cb0f41808d94249cc8e0951b
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np LOCAL_DIR = '/tmp/' if __name__ == '__main__': main()
27.781818
78
0.621073
1941b9b85d89dbfd9a868d046110eb8fc8e84d5a
1,401
py
Python
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
null
null
null
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
21
2020-01-29T22:03:54.000Z
2020-07-29T17:55:44.000Z
src/auditor/org_checker.py
agrc/agol-validator
b17f3fee55bf0b1f7d2ed21ae86b1556072da4d8
[ "MIT" ]
null
null
null
""" Holds an OrgChecker object that runs checks at the organization level (instead of at the item level) """
29.808511
117
0.628837
1941f729283db4adc38960fd6ecd423a78269f4b
994
py
Python
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
create_post.py
schlop/blog
74fe7d5ce4e1c00942cb033710720098ac493844
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from datetime import datetime import sys if __name__ == '__main__': if len(sys.argv): create_blog_post(sys.argv[1]) else: create_blog_post()
26.157895
80
0.573441
194306ac920374768433626240e00df6f0b039ac
1,436
py
Python
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
src/python/procyon/py3.py
orbea/procyon
469d94427d3b6e7cc2ab93606bdf968717a49150
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2017 The Procyon Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Defines names that are no longer available in python3. name py2 meaning py3 meaning ---- ----------- ----------- unicode unicode str long long int xrange xrange range iteritems dict.iteritems dict.items iterkeys dict.iterkeys dict.keys itervalues dict.itervalues dict.values """ try: unicode = unicode repr = (lambda r: lambda x: r(x).decode("utf-8"))(repr) except NameError: unicode = str repr = repr try: long = long except NameError: long = int try: xrange = xrange except NameError: xrange = range iteritems = lambda d: getattr(d, "iteritems", d.items)() iterkeys = lambda d: getattr(d, "iterkeys", d.keys)() itervalues = lambda d: getattr(d, "itervalues", d.values)()
29.306122
74
0.664345
1943cab210caf1760efe3b398e0efc3f17bdc7ab
693
py
Python
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
interlens/criterions/criterion.py
cctien/bimultialign
d0dad62651c25545fb7539639cb72fc8ea2570aa
[ "MIT" ]
null
null
null
from allennlp.common import Registrable import torch # Losses = Dict[str, Dict[str, Union[float, Loss]]]
23.896552
51
0.572872
1944d33ab633803b83a02f71e2b185489b6751ce
2,180
py
Python
week10_classes/seminar/generator_widgets.py
fortminors/msai-python
1dfe19c132cd59125ef64164cce007845ffb6cf8
[ "MIT" ]
9
2021-03-12T06:59:10.000Z
2022-01-21T20:23:31.000Z
week10_classes/seminar/generator_widgets.py
fortminors/msai-python
1dfe19c132cd59125ef64164cce007845ffb6cf8
[ "MIT" ]
null
null
null
week10_classes/seminar/generator_widgets.py
fortminors/msai-python
1dfe19c132cd59125ef64164cce007845ffb6cf8
[ "MIT" ]
14
2021-03-25T15:23:19.000Z
2022-02-05T14:34:40.000Z
# Form implementation generated from reading ui file 'generator.ui' # # Created by: PyQt6 UI code generator 6.2.2 # # WARNING: Any manual changes made to this file will be lost when pyuic6 is # run again. Do not edit this file unless you know what you are doing. from PyQt6 import QtCore, QtGui, QtWidgets
45.416667
86
0.707798
19455519ed74bb43e4ac991488c150b0c157ddd6
5,247
py
Python
sportradar/NFL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
33
2018-07-05T17:07:06.000Z
2022-02-05T16:32:19.000Z
sportradar/NFL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
6
2018-11-16T15:53:33.000Z
2021-06-26T23:04:33.000Z
sportradar/NFL.py
scrambldchannel/SportradarAPIs
e42e128313647d51784b6f1f3aa201b07fca0a08
[ "MIT" ]
17
2018-08-08T08:10:49.000Z
2021-10-06T00:25:21.000Z
# Sportradar APIs # Copyright 2018 John W. Miller # See LICENSE for details. from sportradar.api import API
45.232759
90
0.658853
1945a3089e1f6313c2cc75593bf5a6b3e3eaea61
4,767
py
Python
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
14
2021-09-15T02:49:18.000Z
2022-03-15T06:00:54.000Z
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
11
2021-09-17T03:17:07.000Z
2022-02-08T03:12:41.000Z
rain/models/posemb_transformer.py
qq1418381215/caat
1422707bef7a2aeca272fa085f410bff07ced760
[ "MIT" ]
2
2021-11-06T19:22:29.000Z
2022-03-24T11:56:11.000Z
import torch import os from torch import Tensor import torch.nn as nn from fairseq import options, utils, checkpoint_utils from fairseq.dataclass import ChoiceEnum, FairseqDataclass from fairseq.models import ( transformer, FairseqLanguageModel, register_model, register_model_architecture, FairseqEncoder, FairseqIncrementalDecoder, BaseFairseqModel,FairseqEncoderDecoderModel ) from rain.layers.rand_pos import PositionalEmbedding from .speech_transformer import SpeechTransformerModelConfig
42.5625
102
0.680092
1946122a44cafe21fe0a3f27b222402b8e3d88b9
6,345
py
Python
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
null
null
null
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
1
2020-03-24T18:20:15.000Z
2020-03-25T22:56:06.000Z
ensembl_map/symbol.py
mattdoug604/ensembl_map
5edb8a48943df4b53effe3cd7ddf4d461fdd4bae
[ "MIT" ]
null
null
null
from .ensembl import Ensembl from .util import is_ensembl_id ########## ## Exon ## ########## ########## ## Gene ## ########## ############# ## Protein ## ############# ################# ## Transcripts ## ################# ##################### ## Query functions ## #####################
35.446927
96
0.695035
194675cce0a60e3494b3def09e1010cda20f0f00
1,113
py
Python
MiGRIDS/InputHandler/readAllTimeSeries.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
8
2019-02-18T14:18:55.000Z
2022-03-04T12:34:24.000Z
MiGRIDS/InputHandler/readAllTimeSeries.py
mmuellerstoffels/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2018-09-01T00:30:19.000Z
2018-09-01T01:09:50.000Z
MiGRIDS/InputHandler/readAllTimeSeries.py
acep-uaf/GBSTools
aebd8aa6667a2284aaa16424f9b9d22ca3a2a375
[ "MIT" ]
3
2019-06-10T19:49:22.000Z
2021-05-08T08:42:57.000Z
from MiGRIDS.InputHandler.readCsv import readCsv def readAllTimeSeries(inputDict): ''' Cycles through a list of files in the AVEC format and imports them into a single dataframe. :param inputDict: :return: pandas.DataFrame with data from all input files. ''' df = None for i in range(len(inputDict['fileNames'])): print(inputDict['fileNames'][i])# for each data file inputDict['fileName'] = inputDict['fileNames'][i] if i == 0: # read data file into a new dataframe if first iteration df = readCsv(inputDict) else: # otherwise append df2 = readCsv(inputDict) # the new file # get intersection of columns, df2Col = df2.columns dfCol = df.columns dfNewCol = [val for val in dfCol if val in df2Col] # resize dataframes to only contain columns contained in both dataframes df = df[dfNewCol] df2 = df2[dfNewCol] df = df.append(df2) # append df = df.sort_values('DATE') return df
33.727273
95
0.591195
1946a0c16887bdd25321c997aa98e68109542c3a
12,725
py
Python
tests/test_dryruns.py
gmcgoldr/pyteal_utils
6dc33d1f18b73ce26163040e37fb145ccd5c1de8
[ "MIT" ]
2
2021-12-16T15:43:46.000Z
2022-01-11T13:24:50.000Z
tests/test_dryruns.py
gmcgoldr/pyteal_utils
6dc33d1f18b73ce26163040e37fb145ccd5c1de8
[ "MIT" ]
null
null
null
tests/test_dryruns.py
gmcgoldr/pyteal_utils
6dc33d1f18b73ce26163040e37fb145ccd5c1de8
[ "MIT" ]
1
2022-01-11T13:25:03.000Z
2022-01-11T13:25:03.000Z
import algosdk as ag import pyteal as tl import pytest from algosdk.future.transaction import OnComplete from algosdk.v2client.algod import AlgodClient from algosdk.v2client.models.application_local_state import ApplicationLocalState from algosdk.v2client.models.application_state_schema import ApplicationStateSchema from algoappdev import apps, dryruns, utils from algoappdev.utils import AlgoAppDevError, idx_to_address, to_key_value
36.048159
88
0.691473
19476d50e68179e3181c58bfc67d757bccf5c292
6,191
py
Python
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
aatrn.py
kmkurn/uxtspwsd
ea4da18cec023d0dc487ee061861e6715edc2e85
[ "MIT" ]
null
null
null
# Copyright (c) 2021 Kemal Kurniawan from typing import Optional import math from einops import rearrange from torch import BoolTensor, Tensor from crf import DepTreeCRF, LinearCRF def compute_ambiguous_arcs_mask( scores: Tensor, threshold: float = 0.95, projective: bool = False, multiroot: bool = True, is_log_marginals: bool = False, ) -> BoolTensor: """If is_log_marginals then scores are assumed to be the log marginals.""" assert scores.dim() == 4 assert 0 <= threshold <= 1 if is_log_marginals: return _compute_ambiguous_arcs_mask_from_log_marginals( scores, threshold, projective, multiroot ) return _compute_ambiguous_arcs_mask(scores, threshold, projective, multiroot)
37.295181
95
0.709255
1947c38029e5b214e95d735bbab912cedc55ad7e
5,151
py
Python
wildlifelicensing/apps/returns/models.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
null
null
null
wildlifelicensing/apps/returns/models.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
11
2019-03-19T02:03:11.000Z
2019-05-31T07:20:59.000Z
wildlifelicensing/apps/returns/models.py
jawaidm/wildlifelicensing
87e8e9ab163e0d7bbb0c7a654a13ce8a4d8fcf82
[ "Apache-2.0" ]
2
2020-08-10T10:17:10.000Z
2021-10-31T23:20:53.000Z
from __future__ import unicode_literals from django.db import models from django.contrib.postgres.fields.jsonb import JSONField from django.core.exceptions import ValidationError import datapackage import jsontableschema from ledger.accounts.models import RevisionedMixin, EmailUser from wildlifelicensing.apps.main.models import WildlifeLicenceType, WildlifeLicence, CommunicationsLogEntry
34.57047
113
0.664143
194979bac6f323e9a28bd3fab05ed2877e60ddea
605
py
Python
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
1
2022-02-03T23:07:20.000Z
2022-02-03T23:07:20.000Z
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
null
null
null
CE_to_AE_enemy_converter.py
Plouni/mari0_se_ce_to_ae_level_converter
9aa0d0ebffac4df1b5d541ff003bd9abeb187a0a
[ "MIT" ]
null
null
null
import os import json import logging cwd = os.getcwd() list_enemy = [file for file in os.listdir(cwd) if '.json' in file[-5:]] for enemy in list_enemy: try: with open(cwd + '\\' + enemy, 'r') as f: enemy_txt = f.read() enemy_txt = enemy_txt.replace('offsetx','offsetX').replace('offsety','offsetY').replace('quadcenterx','quadcenterX').replace('quadcentery','quadcenterY').replace('quadcount','quadCount') with open(cwd + '\\' + enemy, 'w+') as f: f.write(enemy_txt) except: print("Error for enemy: ", enemy_txt)
26.304348
194
0.591736
1949bf476b27ab37588853e2472ecb87a7d25778
5,485
py
Python
tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
22
2022-03-18T07:29:31.000Z
2022-03-23T14:54:32.000Z
tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
null
null
null
tests/python/tensor_graph/test/test_internal/correctness/grad-op-test/te-cat-case2.py
QinHan-Erin/AMOS
634bf48edf4015e4a69a8c32d49b96bce2b5f16f
[ "Apache-2.0" ]
2
2022-03-18T08:26:34.000Z
2022-03-20T06:02:48.000Z
from tvm import testing from tvm from tvm import topi import tvm import numpy as np import torch dim0 = 3 dim1 = 4 dim2 = 1 shape_size1 = [dim0, dim1, dim2] shape_size2 = [dim0, dim1, dim2 * 8] dtype = "float32" cap0 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap0") cap1 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap1") cap2 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap2") cap3 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap3") cap4 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap4") cap5 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap5") cap6 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap6") cap7 = tvm.te.placeholder(shape_size1, dtype=dtype, name="cap7") cap_list = [cap0, cap1, cap2, cap3, cap4, cap5, cap6, cap7] C = tvm.te.compute(shape_size2, lambda i, j, k: # tvm.tir.Select( tvm.te.if_then_else( k == 0, cap0[i, j, k], tvm.te.if_then_else(k == 1, cap1[i, j, k-1], tvm.te.if_then_else(k == 2, cap2[i, j, k-2], tvm.te.if_then_else(k == 3, cap3[i, j, k-3], tvm.te.if_then_else(k == 4, cap4[i, j, k-4], tvm.te.if_then_else(k == 5, cap5[i, j, k-5], tvm.te.if_then_else(k == 6, cap6[i, j, k-6], cap7[i, j, k-7]))))))), name="concat") dC = tvm.te.placeholder(C.shape, dtype=dtype, name="dC") dcap0, dcap1, dcap2, dcap3, dcap4, dcap5, dcap6, dcap7 = tvm.tg.gradient(C, cap_list, dC) dcap_list = [dcap0, dcap1, dcap2, dcap3, dcap4, dcap5, dcap6, dcap7] s = tvm.te.create_schedule([C.op, dcap0.op, dcap1.op, dcap2.op, dcap3.op, dcap4.op, dcap5.op, dcap6.op, dcap7.op]) print(tvm.lower(s, cap_list + [C, dC] + dcap_list, simple_mode=True)) func = tvm.build(s, cap_list + [C, dC] + dcap_list, target="llvm") cap0_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap1_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap2_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap3_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap4_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap5_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap6_np = np.random.uniform(-10, 10, shape_size1).astype("float32") cap7_np = np.random.uniform(-10, 10, shape_size1).astype("float32") dC_np = np.ones(shape_size2).astype("float32") dcap0_np = np.zeros(shape_size1).astype("float32") dcap1_np = np.zeros(shape_size1).astype("float32") dcap2_np = np.zeros(shape_size1).astype("float32") dcap3_np = np.zeros(shape_size1).astype("float32") dcap4_np = np.zeros(shape_size1).astype("float32") dcap5_np = np.zeros(shape_size1).astype("float32") dcap6_np = np.zeros(shape_size1).astype("float32") dcap7_np = np.zeros(shape_size1).astype("float32") ctx = tvm.context("llvm", 0) cap0_tvm = tvm.nd.array(cap0_np, ctx) cap1_tvm = tvm.nd.array(cap1_np, ctx) cap2_tvm = tvm.nd.array(cap2_np, ctx) cap3_tvm = tvm.nd.array(cap3_np, ctx) cap4_tvm = tvm.nd.array(cap4_np, ctx) cap5_tvm = tvm.nd.array(cap5_np, ctx) cap6_tvm = tvm.nd.array(cap6_np, ctx) cap7_tvm = tvm.nd.array(cap7_np, ctx) C_np = np.zeros(shape_size2, dtype="float32") C_tvm = tvm.nd.array(C_np, ctx) dC_tvm = tvm.nd.array(dC_np, ctx) dcap0_tvm = tvm.nd.array(dcap0_np, ctx) dcap1_tvm = tvm.nd.array(dcap1_np, ctx) dcap2_tvm = tvm.nd.array(dcap2_np, ctx) dcap3_tvm = tvm.nd.array(dcap3_np, ctx) dcap4_tvm = tvm.nd.array(dcap4_np, ctx) dcap5_tvm = tvm.nd.array(dcap5_np, ctx) dcap6_tvm = tvm.nd.array(dcap6_np, ctx) dcap7_tvm = tvm.nd.array(dcap7_np, ctx) func(cap0_tvm, cap1_tvm, cap2_tvm, cap3_tvm, cap4_tvm, cap5_tvm, cap6_tvm, cap7_tvm, C_tvm, dC_tvm, dcap0_tvm, dcap1_tvm, dcap2_tvm, dcap3_tvm, dcap4_tvm, dcap5_tvm, dcap6_tvm, dcap7_tvm) print("dcap0_tvm", dcap0_tvm) # =======> # compare the results with pytorch cap0_torch = torch.tensor(cap0_np, requires_grad=True) cap1_torch = torch.tensor(cap1_np, requires_grad=True) cap2_torch = torch.tensor(cap2_np, requires_grad=True) cap3_torch = torch.tensor(cap3_np, requires_grad=True) cap4_torch = torch.tensor(cap4_np, requires_grad=True) cap5_torch = torch.tensor(cap5_np, requires_grad=True) cap6_torch = torch.tensor(cap6_np, requires_grad=True) cap7_torch = torch.tensor(cap7_np, requires_grad=True) C_torch = torch.cat([cap0_torch, cap1_torch, cap2_torch, cap3_torch, cap4_torch, cap5_torch, cap6_torch, cap7_torch], dim=2) loss = C_torch.sum() loss.backward() print("Pytorch gradient:\n cap0:", cap0_torch.grad.numpy(), "\ncap1:", cap1_torch.grad.numpy()) testing.assert_allclose(dcap0_tvm.asnumpy(), cap0_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap1_tvm.asnumpy(), cap1_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap2_tvm.asnumpy(), cap2_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap3_tvm.asnumpy(), cap3_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap4_tvm.asnumpy(), cap4_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap5_tvm.asnumpy(), cap5_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap6_tvm.asnumpy(), cap6_torch.grad.numpy(), atol=1e-30, rtol=1e-30) testing.assert_allclose(dcap7_tvm.asnumpy(), cap7_torch.grad.numpy(), atol=1e-30, rtol=1e-30) print("Compare with PyTorch success!")
43.531746
95
0.699909
194c38c24bff2dd1b26d3bd458a2d3f23f28316b
121
py
Python
controle_de_estoque/app.py
rodrigo-labs/controle_estoque
890acefef2c3dace68723d086a0d40f27ff20476
[ "MIT" ]
6
2020-09-20T21:38:47.000Z
2021-11-15T10:45:02.000Z
controle_de_estoque/app.py
rodrigo-labs/controle_estoque
890acefef2c3dace68723d086a0d40f27ff20476
[ "MIT" ]
null
null
null
controle_de_estoque/app.py
rodrigo-labs/controle_estoque
890acefef2c3dace68723d086a0d40f27ff20476
[ "MIT" ]
6
2019-06-27T18:15:51.000Z
2022-02-17T19:31:59.000Z
from controle_de_estoque.controllers import controllers if __name__ == "__main__": controllers.principal_controle()
24.2
55
0.809917
194c851ed5bb33eaa2cf355799844f072e6955b4
2,334
py
Python
pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
16
2018-07-08T19:20:15.000Z
2021-01-08T22:08:49.000Z
pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
null
null
null
pagewalker/pagewalker/analyzer/devtools/devtools_protocol.py
rafal-qa/page-walker
8940a819d436d46f729c9307effc5118d692cad0
[ "MIT" ]
5
2018-10-26T13:08:10.000Z
2020-06-20T21:03:17.000Z
from .connector import websocket_connector, http_connector
33.342857
86
0.653385
194c8b5cc1cd58612c803208f1241b2813f11d98
9,523
py
Python
pysnmp/CISCO-IETF-PW-FR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-IETF-PW-FR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-IETF-PW-FR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-IETF-PW-FR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-PW-FR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:43:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsIntersection, ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion") DlciNumber, = mibBuilder.importSymbols("CISCO-FRAME-RELAY-MIB", "DlciNumber") CpwVcIndexType, = mibBuilder.importSymbols("CISCO-IETF-PW-TC-MIB", "CpwVcIndexType") ciscoExperiment, = mibBuilder.importSymbols("CISCO-SMI", "ciscoExperiment") InterfaceIndexOrZero, = mibBuilder.importSymbols("IF-MIB", "InterfaceIndexOrZero") NotificationGroup, ModuleCompliance, ObjectGroup = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance", "ObjectGroup") MibIdentifier, Counter32, ObjectIdentity, Integer32, TimeTicks, IpAddress, NotificationType, ModuleIdentity, Counter64, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, Gauge32, Unsigned32, iso = mibBuilder.importSymbols("SNMPv2-SMI", "MibIdentifier", "Counter32", "ObjectIdentity", "Integer32", "TimeTicks", "IpAddress", "NotificationType", "ModuleIdentity", "Counter64", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "Gauge32", "Unsigned32", "iso") RowStatus, TextualConvention, StorageType, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "RowStatus", "TextualConvention", "StorageType", "DisplayString") cpwVcFrMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 9, 10, 112)) cpwVcFrMIB.setRevisions(('2003-12-16 00:00',)) if mibBuilder.loadTexts: cpwVcFrMIB.setLastUpdated('200312160000Z') if mibBuilder.loadTexts: cpwVcFrMIB.setOrganization('Cisco Systems, Inc.') cpwVcFrNotifications = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 112, 0)) cpwVcFrObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 112, 1)) cpwVcFrConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 112, 2)) cpwVcFrTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1), ) if mibBuilder.loadTexts: cpwVcFrTable.setStatus('current') cpwVcFrEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1), ).setIndexNames((0, "CISCO-IETF-PW-FR-MIB", "cpwVcFrPwVcIndex")) if mibBuilder.loadTexts: cpwVcFrEntry.setStatus('current') cpwVcFrPwVcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 1), CpwVcIndexType()) if mibBuilder.loadTexts: cpwVcFrPwVcIndex.setStatus('current') cpwVcFrIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 2), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrIfIndex.setStatus('current') cpwVcFrDlci = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 3), DlciNumber()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrDlci.setStatus('current') cpwVcFrAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrAdminStatus.setStatus('current') cpwVcFrOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpwVcFrOperStatus.setStatus('current') cpwVcFrPw2FrOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpwVcFrPw2FrOperStatus.setStatus('current') cpwVcFrRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 7), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrRowStatus.setStatus('current') cpwVcFrStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 1, 1, 8), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrStorageType.setStatus('current') cpwVcFrPMTable = MibTable((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2), ) if mibBuilder.loadTexts: cpwVcFrPMTable.setStatus('current') cpwVcFrPMEntry = MibTableRow((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1), ).setIndexNames((0, "CISCO-IETF-PW-FR-MIB", "cpwVcFrPMPwVcIndex")) if mibBuilder.loadTexts: cpwVcFrPMEntry.setStatus('current') cpwVcFrPMPwVcIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 1), CpwVcIndexType()) if mibBuilder.loadTexts: cpwVcFrPMPwVcIndex.setStatus('current') cpwVcFrPMIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 2), InterfaceIndexOrZero()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrPMIfIndex.setStatus('current') cpwVcFrPMAdminStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2)))).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrPMAdminStatus.setStatus('current') cpwVcFrPMOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpwVcFrPMOperStatus.setStatus('current') cpwVcFrPMPw2FrOperStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("active", 1), ("inactive", 2), ("unknown", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: cpwVcFrPMPw2FrOperStatus.setStatus('current') cpwVcFrPMRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 6), RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrPMRowStatus.setStatus('current') cpwVcFrPMStorageType = MibTableColumn((1, 3, 6, 1, 4, 1, 9, 10, 112, 1, 2, 1, 7), StorageType()).setMaxAccess("readcreate") if mibBuilder.loadTexts: cpwVcFrPMStorageType.setStatus('current') cpwVcFrCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 1)) cpwVcFrGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 2)) cpwVcFrFullCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 1, 1)).setObjects(("CISCO-IETF-PW-FR-MIB", "cpwVcFrGroup"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cpwVcFrFullCompliance = cpwVcFrFullCompliance.setStatus('current') cpwVcFrReadOnlyCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 1, 2)).setObjects(("CISCO-IETF-PW-FR-MIB", "cpwVcFrGroup"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cpwVcFrReadOnlyCompliance = cpwVcFrReadOnlyCompliance.setStatus('current') cpwVcFrGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 2, 1)).setObjects(("CISCO-IETF-PW-FR-MIB", "cpwVcFrIfIndex"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrDlci"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrAdminStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrOperStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPw2FrOperStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrRowStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrStorageType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cpwVcFrGroup = cpwVcFrGroup.setStatus('current') cpwVcFrPMGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 9, 10, 112, 2, 2, 2)).setObjects(("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMIfIndex"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMAdminStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMOperStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMPw2FrOperStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMRowStatus"), ("CISCO-IETF-PW-FR-MIB", "cpwVcFrPMStorageType")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): cpwVcFrPMGroup = cpwVcFrPMGroup.setStatus('current') mibBuilder.exportSymbols("CISCO-IETF-PW-FR-MIB", cpwVcFrPMStorageType=cpwVcFrPMStorageType, cpwVcFrPMPwVcIndex=cpwVcFrPMPwVcIndex, cpwVcFrGroups=cpwVcFrGroups, cpwVcFrConformance=cpwVcFrConformance, cpwVcFrOperStatus=cpwVcFrOperStatus, cpwVcFrPMAdminStatus=cpwVcFrPMAdminStatus, cpwVcFrIfIndex=cpwVcFrIfIndex, cpwVcFrTable=cpwVcFrTable, cpwVcFrAdminStatus=cpwVcFrAdminStatus, cpwVcFrPMEntry=cpwVcFrPMEntry, cpwVcFrPMRowStatus=cpwVcFrPMRowStatus, cpwVcFrPwVcIndex=cpwVcFrPwVcIndex, cpwVcFrPMPw2FrOperStatus=cpwVcFrPMPw2FrOperStatus, cpwVcFrRowStatus=cpwVcFrRowStatus, cpwVcFrEntry=cpwVcFrEntry, cpwVcFrMIB=cpwVcFrMIB, cpwVcFrObjects=cpwVcFrObjects, cpwVcFrGroup=cpwVcFrGroup, cpwVcFrFullCompliance=cpwVcFrFullCompliance, cpwVcFrCompliances=cpwVcFrCompliances, cpwVcFrReadOnlyCompliance=cpwVcFrReadOnlyCompliance, cpwVcFrPw2FrOperStatus=cpwVcFrPw2FrOperStatus, cpwVcFrPMTable=cpwVcFrPMTable, cpwVcFrPMOperStatus=cpwVcFrPMOperStatus, cpwVcFrDlci=cpwVcFrDlci, cpwVcFrPMGroup=cpwVcFrPMGroup, cpwVcFrNotifications=cpwVcFrNotifications, PYSNMP_MODULE_ID=cpwVcFrMIB, cpwVcFrStorageType=cpwVcFrStorageType, cpwVcFrPMIfIndex=cpwVcFrPMIfIndex)
119.0375
1,132
0.748609
195261959efe1d29efc067b8292d053eeea3aa60
1,639
py
Python
Chapter05/non-model-view_code.py
trappn/Mastering-GUI-Programming-with-Python
14392c06dd3b9cf655420d09853bce6bfe8fe16d
[ "MIT" ]
138
2018-12-06T15:48:07.000Z
2022-03-28T12:23:12.000Z
Chapter05/non-model-view_code.py
thema27/Mastering-GUI-Programming-with-Python
66f33ff6c07b7e22a396a982a5502bd93c20d785
[ "MIT" ]
16
2019-11-21T08:17:42.000Z
2020-08-19T06:56:48.000Z
Chapter05/non-model-view_code.py
thema27/Mastering-GUI-Programming-with-Python
66f33ff6c07b7e22a396a982a5502bd93c20d785
[ "MIT" ]
116
2018-12-08T18:13:02.000Z
2022-03-22T14:30:57.000Z
import sys from os import path from PyQt5 import QtWidgets as qtw from PyQt5 import QtGui as qtg from PyQt5 import QtCore as qtc if __name__ == '__main__': app = qtw.QApplication(sys.argv) # it's required to save a reference to MainWindow. # if it goes out of scope, it will be destroyed. mw = MainWindow() sys.exit(app.exec())
27.779661
60
0.583282
195268ef4f0f6c79ac3ca7cf1356d6b54616df26
31
py
Python
src/__init__.py
abdelsamea/DeTraC
2c94d55908285fc9cbb24086da63078ee917525a
[ "MIT" ]
1
2020-09-17T14:17:50.000Z
2020-09-17T14:17:50.000Z
src/__init__.py
arkkhanu/DeTraC_COVId19
ab03719b49a1a048f74f08600a6670f6757bbe60
[ "MIT" ]
null
null
null
src/__init__.py
arkkhanu/DeTraC_COVId19
ab03719b49a1a048f74f08600a6670f6757bbe60
[ "MIT" ]
1
2021-04-14T08:52:36.000Z
2021-04-14T08:52:36.000Z
import tools import frameworks
10.333333
17
0.870968
19536799d88c875ad08a6f5696624ad8dc96acf2
442,707
py
Python
data/chars.py
Shadybloom/dnd-mass-combat-simulation
169bc6cfb967f871290014b342e926b1f71cde81
[ "MIT" ]
3
2020-05-27T08:36:00.000Z
2021-11-22T09:04:08.000Z
data/chars.py
Shadybloom/dnd-mass-combat-simulation
169bc6cfb967f871290014b342e926b1f71cde81
[ "MIT" ]
null
null
null
data/chars.py
Shadybloom/dnd-mass-combat-simulation
169bc6cfb967f871290014b342e926b1f71cde81
[ "MIT" ]
1
2021-11-21T03:57:33.000Z
2021-11-21T03:57:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # (soldiers_pack) from data.items import * #---- # . squad_generation metadict_chars = {} #---- # ( ): metadict_chars['Commoner 1 lvl (recruit)'] = { # . # : # 100 100 = 100 , 30 . # 200 100 = 100 . # 500 100 = 100 . 'level':1, 'recruit_selection':True, 'char_class':'Commoner', 'behavior':'Warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{}, } metadict_chars['Commoner 1 lvl (militia javeliner)'] = { # , . . # https://ru.wikipedia.org/wiki/ # https://ru.wikipedia.org/wiki/ # 600 6000 ( 6x6 ). 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Shield':1, 'Dagger':1, 'Javelin':6, }, } metadict_chars['Commoner 2 lvl (militia javeliner-veteran)'] = { # , . # 2 lvl 300 xp (12 ) # -- ( , ). 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Mace':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl (militia javeliner-corporal)'] = { # - . 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':6, }, } metadict_chars['Warrior 4 lvl (militia javeliner-sergeant)'] = { # -. 'level':4, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':6, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Commoner 1 lvl (militia slinger)'] = { # . . # https://ru.wikipedia.org/wiki/ # , 1 (450 ) ( "" ) 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Shield':1, 'Dagger':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Commoner 2 lvl (militia slinger-veteran)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Warrior 3 lvl (militia slinger-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Warrior 4 lvl (militia slinger-sergeant)'] = { 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Commoner 1 lvl (militia bowman)'] = { # . . # (1d4 ) . 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Dagger':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Commoner 2 lvl (militia bowman-veteran)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Warrior 3 lvl (militia bowman-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (militia bowman-sergeant)'] = { # . , . # -, -. . 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Commoner 1 lvl (militia spearman)'] = { # , "". # https://ru.wikipedia.org/wiki/ 'level':1, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Heavy Shield':1, 'Spear':1, 'Pilum':2, }, } metadict_chars['Commoner 2 lvl (militia spearman-veteran)'] = { # . 'level':2, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Heavy Shield':1, 'Spear':1, 'Pilum':2, }, } metadict_chars['Warrior 3 lvl (militia spearman-corporal)'] = { 'level':3, 'close_order_AI':True, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, } metadict_chars['Warrior 4 lvl (militia spearman-sergeant)'] = { 'level':4, 'close_order_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Commoner 1 lvl (militia swordsman)'] = { # , . 'level':1, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Shield':1, 'Shortsword':1, 'Javelin':2, #'Potion of Heroism':1, #'Potion of Bravery':1, #'Potion of Rage':1, }, } metadict_chars['Commoner 2 lvl (militia swordsman-veteran)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Javelin':2, }, } metadict_chars['Warrior 3 lvl (militia swordsman-corporal)'] = { 'level':3, 'close_order_AI':True, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Dueling':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':2, 'Scale Mail':1, 'Heavy Shield':1, 'Longsword':1, #'Javelin':6, }, } metadict_chars['Warrior 4 lvl (militia swordsman-sergeant)'] = { 'level':4, 'close_order_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Half Plate':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Commoner 1 lvl (militia crossbowman)'] = { # . 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Padded Armor':1, 'Dagger':1, 'Crossbow, Light':1, 'Crossbow Bolt':40, }, } metadict_chars['Commoner 2 lvl (militia crossbowman-veteran)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Crossbow, Light':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 3 lvl (militia crossbowman-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Light':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 4 lvl (militia crossbowman-sergeant)'] = { # . , . # -, -. . 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Light':1, 'Crossbow Bolt':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Commoner 1 lvl (militia heavy crossbowman)'] = { # . "" 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Padded Armor':1, 'Dagger':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Commoner 2 lvl (militia heavy crossbowman-veteran)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 3 lvl (militia heavy crossbowman-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 4 lvl (militia heavy crossbowman-sergeant)'] = { # . , . # -, -. . 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # ( ) # TODO: , , . # -- 63 ( -- 10.5) # ( , 10 000 ): # 18 -- 2.5% # 16+ -- 22.5% # 14+ -- 40% # 12+ -- 28.7% # 10+ -- 5.8% # <10 -- 0.5% # ( , 10 000 ): # 16+ -- 2.5% # 14+ -- 22% # 12+ -- 47% # 10+ -- 25.7% # <10 -- 2.8% # ( , 10 000 ): # 14+ -- 5% # 12+ -- 35% # 10+ -- 45% # <10 -- 15% # : # 5% +2 AC . # , 35% +1 AC . Scale Mail -- . # ( 10 000 ): # x 5 = (50 , 25 10) # x 10 = (100 , 50 , -10 ) # 95% (STR 12+) 60 . # 85% (STR 8+) 40 . # , -- 19 . metadict_chars['Warrior 1 lvl (achean hoplite)'] = { # . . # 1000 10 000 30 000 . # -- ~3 . -- () # -- "" , . 'level':1, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Javelin':5, }, } metadict_chars['Warrior 2 lvl (achean hoplite-veteran)'] = { # "" 10 . . # 2 lvl 300 xp (12 ) # -- ( ) 'level':2, 'char_class':'Warrior', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ # . -. #'Fighting_Style_Protection':True, 'Fighting_Style_Dueling':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, }, } metadict_chars['Warrior 3 lvl (achean hoplite-corporal)'] = { # . # 3 lvl 300+900=1200 exp (24-48 ) # -- , , . 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Fighting_Style_Protection':True, 'Fighting_Style_Dueling':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, }, } metadict_chars['Warrior 4 lvl (achean hoplite-sergeant)'] = { # 30 . # 4 lvl 300+900+2700 xp (78-156 ) 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Protection':True, 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (achean hoplite-lieutenant)'] = { # # , , . # 5 lvl 300+900+2700+6500 xp (208-416 ) 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Protection':True, 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () metadict_chars['Warrior 1 lvl (city pikeman)'] = { # -- , . # , , . # https://ru.wikipedia.org/wiki/ 'level':1, 'char_class':'Warrior-heavy', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Ring Mail':1, 'Shortsword':1, 'Shield':1, 'Pike':1, }, } metadict_chars['Warrior 2 lvl (city pikeman-veteran)'] = { 'level':2, 'char_class':'Warrior-heavy', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Mail':1, 'Shortsword':1, 'Shield':1, 'Pike':1, }, } metadict_chars['Warrior 3 lvl (city pikeman-corporal)'] = { 'level':3, 'char_class':'Warrior-heavy', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Shortsword':1, 'Shield':1, 'Pike':1, }, } metadict_chars['Warrior 4 lvl (city pikeman-sergeant)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Shortsword':1, 'Shield':1, 'Pike':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (city pikeman-lieutenant)'] = { 'level':5, #'close_order_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shortsword':1, 'Shield':1, 'Pike':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # -. metadict_chars['Warrior 1 lvl (sqythian bowman)'] = { # , , . , . 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Padded Armor':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (sqythian bowman-veteran)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (sqythian bowman-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (sqythian bowman-sergeant)'] = { # . , . # -, -. . 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (sqythian bowman-lieutenant)'] = { 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # -. metadict_chars['Warrior 1 lvl (persian bowman)'] = { # . 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (persian bowman-veteran)'] = { # 10 . . . 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (persian bowman-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (persian bowman-sergeant)'] = { # . 30 , . # -, -. . 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (persian bowman-lieutenant)'] = { # . 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # , . metadict_chars['Warrior 1 lvl (musketeer line-infantry)'] = { # , / . # , , . 'level':1, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Halberd':1, 'Shortsword':1, 'Muskete, big':1, 'Muskete Bullet, big':14, #'Muskete Bullet, birdshot':14, 'Smoke Grenade':1, }, } metadict_chars['Warrior 2 lvl (musketeer line-infantry-veteran)'] = { 'level':2, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Breastplate, 17 century':1, 'Halberd':1, 'Rapier':1, 'Muskete, big':1, 'Muskete Bullet, big':14, #'Muskete Bullet, birdshot':14, 'Smoke Grenade':1, }, } metadict_chars['Warrior 3 lvl (musketeer line-infantry-corporal)'] = { 'level':3, 'firearm_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Rapier':1, 'Muskete, Lorenzony':1, 'Muskete Bullet':60, 'Smoke Grenade':2, }, } metadict_chars['Warrior 4 lvl (musketeer line-infantry-sergeant)'] = { 'level':4, 'firearm_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Rapier':1, 'Muskete, Lorenzony':1, 'Muskete Bullet':60, 'Smoke Grenade':2, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (musketeer line-infantry-lieutenant)'] = { # . 'level':5, 'firearm_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Rapier':1, 'Muskete, Lorenzony':1, 'Muskete Bullet':60, 'Smoke Grenade':2, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # , . # https://en.wikipedia.org/wiki/Grenadier metadict_chars['Warrior 1 lvl (grenadier line-infantry)'] = { # , , . 'level':1, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, }, } metadict_chars['Warrior 2 lvl (grenadier line-infantry-veteran)'] = { 'level':2, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, }, } metadict_chars['Warrior 3 lvl (grenadier line-infantry-corporal)'] = { 'level':3, 'carefull_AI':True, 'grenadier_AI':True, 'sneak_AI':True, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, }, } metadict_chars['Warrior 4 lvl (grenadier line-infantry-sergeant)'] = { 'level':4, 'carefull_AI':True, 'grenadier_AI':True, 'sneak_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (grenadier line-infantry-lieutenant)'] = { # . 'level':5, 'carefull_AI':True, 'grenadier_AI':True, 'sneak_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # () metadict_chars['Warrior 2 lvl (grenadier line-infantry-veteran) (assault)'] = { 'base_unit':'Warrior 2 lvl (grenadier line-infantry-veteran)', 'char_class':'Warrior-heavy', 'equipment_weapon':{ 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, 'Hand Mortar':1, '2lb Bomb':3, }, } metadict_chars['Warrior 3 lvl (grenadier line-infantry-corporal) (assault)'] = { 'base_unit':'Warrior 3 lvl (grenadier line-infantry-corporal)', 'char_class':'Warrior-heavy', 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, 'Hand Mortar':1, '2lb Bomb':3, }, } metadict_chars['Warrior 4 lvl (grenadier line-infantry-sergeant) (assault)'] = { 'base_unit':'Warrior 4 lvl (grenadier line-infantry-sergeant)', 'char_class':'Warrior-officer', 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, 'Hand Mortar':1, '2lb Bomb':3, }, } metadict_chars['Warrior 5 lvl (grenadier line-infantry-lieutenant) (assault)'] = { 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'char_class':'Warrior-officer', 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Message':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, 'Hand Mortar':1, '2lb Bomb':3, }, } #---- # (, ) metadict_chars['Warrior 4 lvl (grenadier line-infantry-sergeant) (stormtrooper)'] = { 'base_unit':'Warrior 4 lvl (grenadier line-infantry-sergeant)', 'grenadier_AI':False, 'char_class':'Warrior-heavy', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mold_Earth'), ('cantrip', 'Mage_Hand'), ('ritual', 'Floating_Disk'), ], }, 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Rune of Absorbtion':1, 'Plate Armor, 17 century':1, 'Sabre':1, 'Heavy Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, '10lb Bomb, mine':1, 'Smoke Grenade':1, }, 'mount_combat':False, 'mount_type':'Tensers Floating Disk', 'equipment_mount':{ '10lb Bomb, mine':50, }, } metadict_chars['Warrior 5 lvl (grenadier line-infantry-lieutenant) (stormtrooper)'] = { 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'grenadier_AI':False, 'char_class':'Warrior-heavy', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mold_Earth'), ('cantrip', 'Mage_Hand'), ('ritual', 'Floating_Disk'), ], }, 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor, 17 century':1, 'Sabre':1, 'Heavy Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, '10lb Bomb, mine':1, 'Smoke Grenade':1, }, 'mount_combat':False, 'mount_type':'Tensers Floating Disk', 'equipment_mount':{ '10lb Bomb, mine':50, }, } #---- # ( ) metadict_chars['Warrior 1 lvl (bombardier line-infantry)'] = { # . 'level':1, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Halberd':1, 'Pistol':1, 'Muskete Bullet':30, 'Hand Mortar':1, '2lb Bomb':10, 'Smoke Grenade':1, }, } metadict_chars['Warrior 2 lvl (bombardier line-infantry-veteran)'] = { 'level':2, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Pistol':1, 'Muskete Bullet':30, 'Hand Mortar':1, '2lb Bomb':10, 'Smoke Grenade':1, }, } metadict_chars['Warrior 3 lvl (bombardier line-infantry-corporal)'] = { 'level':3, 'firearm_AI':True, 'grenadier_AI':True, 'defence_AI':True, 'sneak_AI':True, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Mortar':1, '2lb Bomb':10, 'Smoke Grenade':1, }, } metadict_chars['Warrior 4 lvl (bombardier line-infantry-sergeant)'] = { 'level':4, 'firearm_AI':True, 'grenadier_AI':True, 'defence_AI':True, 'sneak_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Mortar':1, '2lb Bomb':10, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (bombardier line-infantry-lieutenant)'] = { # . 'level':5, 'firearm_AI':True, 'grenadier_AI':True, 'defence_AI':True, 'sneak_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Blind_Fighting':True, 'Feat_Firearms_Expert':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Mortar':1, '2lb Bomb':10, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (bombardier line-infantry-lieutenant) (bomba-san)'] = { # . , AC, . 'base_unit':'Warrior 5 lvl (bombardier line-infantry-lieutenant)', 'class_features':{ 'Extra_Attack':True, 'Fighting_Style_Blind_Fighting':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mold_Earth'), ('cantrip', 'Sword_Burst'), ('ritual', 'Floating_Disk'), ], }, 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor, 17 century':1, 'Shield':1, 'Sabre':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'King Bomba-san':1, '2lb Fire-Bomb':10, 'Smoke Grenade':1, }, 'mount_combat':False, 'mount_type':'Tensers Floating Disk', 'equipment_mount':{ '2lb Fire-Bomb':250, }, } metadict_chars['Warrior 5 lvl (bombardier line-infantry-lieutenant) (shaitan-tube)'] = { 'base_unit':'Warrior 5 lvl (bombardier line-infantry-lieutenant)', 'class_features':{ 'Extra_Attack':True, 'Fighting_Style_Blind_Fighting':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mold_Earth'), ('cantrip', 'Sword_Burst'), ('ritual', 'Floating_Disk'), ], }, 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor, 17 century':1, 'Shield':1, 'Sabre':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Akbar Shaitan-tube':1, '20lb Fire-Rocket':1, 'Smoke Grenade':1, }, 'mount_combat':False, 'mount_type':'Tensers Floating Disk', 'equipment_mount':{ '20lb Fire-Rocket':25, }, } #---- # ( ) metadict_chars['Warrior 1 lvl (cannoneer artillery)'] = { # . . 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Shortsword':1, 'Pistol':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 2 lvl (cannoneer artillery-veteran)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Shortsword':1, 'Pistol':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 3 lvl (cannoneer artillery-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Armor':1, 'Shortsword':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant)'] = { 'level':4, 'volley_AI':True, 'firearm_AI':True, 'defence_AI':True, 'sneak_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Armor':1, 'Shortsword':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (2lb Falconet)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '2lb Falconet':1, '2lb Ball':100, }, 'mount_combat':True, 'mount_type':'2lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (6lb Cannon)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '6lb Cannon':1, '6lb Bomb':100, #'6lb Ball':100, }, 'mount_combat':True, 'mount_type':'6lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (12lb Cannon, naval)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '12lb Cannon, naval':1, '12lb Bar':100, '12lb Ball':100, }, 'mount_combat':True, 'mount_type':'12lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (24lb Cannon, naval)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '24lb Cannon, naval':1, '24lb Bar':100, '24lb Ball':100, }, 'mount_combat':True, 'mount_type':'24lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (24lb Cannon, naval)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '24lb Cannon, naval':1, '24lb Bar':100, '24lb Ball':100, }, 'mount_combat':True, 'mount_type':'24lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (cannoneer artillery-sergeant) (12lb Mortar)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Armor':1, '12lb Mortar':1, '12lb Bomb':100, }, 'mount_combat':True, 'mount_type':'12lb Mortar, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (cannoneer artillery-lieutenant)'] = { # . 'level':5, 'volley_AI':True, 'firearm_AI':True, 'defence_AI':True, 'sneak_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Shielding':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Shortsword':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # , . metadict_chars['Warrior 2 lvl (cannoneer-veteran)'] = { # . 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Shield':1, 'Shortsword':1, '6lb Cannon':1, '6lb Bomb':100, #'6lb Ball':100, }, 'mount_combat':True, 'mount_type':'6-lb Cannon', 'equipment_mount':{ }, } metadict_chars['Warrior 3 lvl (cannoneer-corporal) (6-lb Cannon)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Shield':1, 'Shortsword':1, '6lb Cannon':1, '6lb Bomb':100, #'6lb Ball':100, }, 'mount_combat':True, 'mount_type':'6-lb Cannon', 'equipment_mount':{ }, } metadict_chars['Warrior 4 lvl (cannoneer-sergeant)'] = { 'level':4, 'volley_AI':True, 'firearm_AI':True, 'sneak_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Shield':1, 'Shortsword':1, }, } #---- # , . metadict_chars['Warrior 4 lvl (healer-sergeant)'] = { # 'level':4, 'char_class':'Warrior-healer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Healer':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Heroism':1, #'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Shield':1, 'Sabre':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, 'Healer Kit':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (healer-lieutenant)'] = { 'level':5, 'char_class':'Warrior-healer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Healer':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Heroism':1, #'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Shield':1, 'Sabre':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, 'Healer Kit':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # , . # https://en.wikipedia.org/wiki/Fusilier metadict_chars['Warrior 1 lvl (fusilier line-infantry)'] = { # . . 'level':1, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Bayonet':1, 'Muskete':1, 'Muskete Bullet':30, #'Smoke Grenade':1, }, } metadict_chars['Warrior 2 lvl (fusilier line-infantry-veteran)'] = { # . . 'level':2, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Bayonet':1, 'Rifle':1, 'Pistol':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 3 lvl (fusilier line-infantry-corporal)'] = { 'level':3, 'firearm_AI':True, 'carefull_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Armor':1, 'Clothes, Fine':1, 'Rapier':1, 'Rifle, rapid':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':60, 'Smoke Grenade':1, }, } metadict_chars['Warrior 4 lvl (fusilier line-infantry-sergeant)'] = { 'level':4, 'firearm_AI':True, 'carefull_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Shielding':1, 'Rune of Armor':1, 'Clothes, Fine':1, 'Rapier':1, 'Rifle, rapid':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':50, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (fusilier line-infantry-lieutenant)'] = { # . 'level':5, 'firearm_AI':True, 'carefull_AI':True, 'sneak_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Clothes, Fine':1, 'Rapier':1, 'Rifle, rapid':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':50, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (fusilier line-infantry-lieutenant) (Schwartz Mark)'] = { # . . 'base_unit':'Warrior 5 lvl (fusilier line-infantry-lieutenant)', 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Clothes, Fine':1, 'Rapier':1, 'Rifle, Schwartz Mark':1, 'Muskete Bullet':50, 'Smoke Grenade':1, }, } #---- # () metadict_chars['Warrior 4 lvl (fusilier line-infantry-sergeant) (sniper)'] = { # 'hunter_AI':True, 'base_unit':'Warrior 4 lvl (fusilier line-infantry-sergeant)', 'char_class':'Warrior-bowman', 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Infusion of Climbing':1, 'Studded Leather':1, 'Dagger':1, 'Longbow':1, 'Arrow':60, #'Rifle, Schwartz Mark':1, #'Muskete Bullet':60, 'Smoke Grenade':2, }, } metadict_chars['Warrior 5 lvl (fusilier line-infantry-lieutenant) (sniper)'] = { # 'hunter_AI':True, 'base_unit':'Warrior 5 lvl (fusilier line-infantry-lieutenant)', 'char_class':'Warrior-bowman', 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Infusion of Climbing':1, 'Rune of Message':1, 'Studded Leather':1, 'Dagger':1, 'Longbow':1, 'Arrow':60, #'Rifle, Schwartz Mark':1, #'Muskete Bullet':60, 'Smoke Grenade':2, }, } #---- # , . metadict_chars['Warrior 1 lvl (balear slinger)'] = { 'level':1, 'char_class':'Warrior-bowman', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Heavy Shield':1, 'Mace':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Warrior 2 lvl (balear slinger-veteran)'] = { 'level':2, 'char_class':'Warrior-bowman', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Hide Armor':1, 'Heavy Shield':1, 'Mace':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Warrior 3 lvl (balear slinger-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Mace':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Warrior 4 lvl (balear slinger-sergeant)'] = { 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Mace':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (balear slinger-lieutenant)'] = { 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Mace':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # , . metadict_chars['Warrior 1 lvl (cilician infantry)'] = { # - , . . 'level':1, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (cilician infantry-veteran)'] = { # . . 'level':2, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Two_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (cilician infantry-corporal)'] = { 'level':3, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Two_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (cilician infantry-sergeant)'] = { 'level':4, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Two_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (cilician infantry-lieutenant)'] = { 'level':5, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Two_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # , . metadict_chars['Warrior 1 lvl (cavalry archer)'] = { # 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Padded Armor':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Light Warhorse', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (cavalry archer-veteran)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Light Warhorse', 'equipment_mount':{ }, } metadict_chars['Warrior 3 lvl (cavalry archer-corporal)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } metadict_chars['Warrior 4 lvl (cavalry archer-sergeant)'] = { 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl (cavalry archer-lieutenant)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } #---- # . metadict_chars['Warrior 1 lvl (thracian infantry)'] = { # # , . 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, } metadict_chars['Warrior 2 lvl (thracian infantry-veteran)'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Hide Armor':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl (thracian infantry-corporal)'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, } metadict_chars['Warrior 4 lvl (thracian infantry-sergeant)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl (thracian infantry-lieutenant)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # , . metadict_chars['Warrior 1 lvl (celtian infantry)'] = { 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'class_features':{ # , Reckless_Attack -- 2 lvl, . 'Reckless_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, } metadict_chars['Warrior 2 lvl (celtian infantry-veteran)'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Dueling':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Hide Armor':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl (celtian infantry-corporal)'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Dueling':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':2, 'Scale Mail':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, } metadict_chars['Warrior 4 lvl (celtian infantry-sergeant)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Half Plate':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (celtian infantry-lieutenant)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Half Plate':1, 'Heavy Shield':1, 'Longsword':1, 'Javelin':6, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # , : metadict_chars['Warrior 1 lvl (shekelesh infantry)'] = { # . 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Ring Mail':1, 'Shield':1, 'Spear':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (shekelesh infantry-veteran)'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Shield':1, 'Longsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (shekelesh infantry-corporal)'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Longsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (shekelesh infantry-sergeant)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Longsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (shekelesh infantry-lieutenant)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Longsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # , metadict_chars['Warrior 1 lvl (legionary infantry-siege)'] = { # , . . 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Greataxe':1, }, } metadict_chars['Warrior 2 lvl (legionary infantry-siege-veteran)'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Greataxe':1, }, } metadict_chars['Warrior 3 lvl (legionary infantry-siege-corporal)'] = { # (, ) 'level':3, 'seeker_AI':True, 'fearless_AI':True, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Greataxe':1, }, } #---- # , ( ) metadict_chars['Warrior 1 lvl (legionary infantry)'] = { # 2 , ( ). 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':6, }, } metadict_chars['Warrior 2 lvl (legionary infantry-veteran)'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, } metadict_chars['Warrior 3 lvl (legionary infantry-corporal)'] = { # (, ) 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, } metadict_chars['Warrior 4 lvl (legionary infantry-sergeant)'] = { # 30 , (, ) 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (legionary infantry-lieutenant)'] = { # , (). 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':4, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # : metadict_chars['Warrior 1 lvl (mercenary heavy-infantry)'] = { # , . 'level':1, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Ring Mail':1, 'Shield':1, 'Glaive':1, }, } metadict_chars['Warrior 2 lvl (mercenary heavy-infantry-veteran)'] = { 'level':2, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Ring Mail':1, 'Shield':1, 'Glaive':1, }, } metadict_chars['Warrior 3 lvl (mercenary heavy-infantry-corporal)'] = { 'level':3, 'char_class':'Warrior-heavy', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Shield':1, 'Glaive':1, }, } metadict_chars['Warrior 4 lvl (mercenary heavy-infantry-sergeant)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Chain Mail':1, 'Shield':1, 'Glaive':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl (mercenary heavy-infantry-lieutenant)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Glaive':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # , . metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (trebuchet-light)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Trebuchet, Light':1, 'Sling Bullets (x25)':100, #'Boulder (25 lb)':100, #'Boulder (10 lb)':100, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (trebuchet-heavy)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Trebuchet, Heavy':1, 'Boulder (200 lb)':100, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (ballista-siege)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Ballista, Heavy':1, 'Boulder (50 lb)':100, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (ballista-medium)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Ballista, Medium':1, #'Ballista Bolt (1 lb)':100, 'Ballista Bolt (5 lb)':100, #'Ballista Bolt (25 lb)':100, #'Alchemist\'s Fire (10/25 lb)':100, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (onager-siege)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Onager':1, 'Boulder (50 lb)':100, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 2 lvl (siege engineer-apprentice) (onager-fire)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Onager':1, 'Alchemist\'s Fire (25/50 lb)':10, }, 'mount_combat':True, 'mount_type':'Onager', 'equipment_mount':{ }, } metadict_chars['Warrior 4 lvl (siege engineer-master)'] = { # , . 'level':4, 'volley_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, }, } #---- # metadict_chars['Fighter 1 lvl (legionary sentinel-battler)'] = { # . 'level':1, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ # Feat_Heavy_Armor_Master 1. 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Fighting_Style_Protection':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Mail':1, 'Heavy Shield':1, 'Long Spear':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 2 lvl (legionary sentinel-shieldman)'] = { 'level':2, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Fighting_Style_Protection':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Heavy Shield':1, 'Long Spear':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 3 lvl (legionary sentinel-mystic)'] = { 'level':3, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Fighting_Style_Protection':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Sword_Burst'), ('cantrip', 'Frostbite'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Fog_Cloud'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Splint Armor':1, 'Heavy Shield':1, 'Longsword':1, }, } metadict_chars['Fighter 4 lvl (legionary sentinel-sergeant)'] = { 'level':4, 'no_grappler_AI':True, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, 'intelligence':+2, }, 'Fighting_Style_Defence':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Sword_Burst'), ('cantrip', 'Frostbite'), ('1_lvl', 'Shield'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Fog_Cloud'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Splint Armor':1, 'Heavy Shield':1, 'Longsword +1':1, }, } metadict_chars['Fighter 5 lvl (legionary sentinel-lieutenant)'] = { 'level':5, 'no_grappler_AI':True, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, 'intelligence':+2, }, 'Fighting_Style_Defence':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Sword_Burst'), ('cantrip', 'Frostbite'), ('1_lvl', 'Shield'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Fog_Cloud'), ], 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Splint Armor':1, 'Heavy Shield':1, 'Longsword +1':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # . metadict_chars['Fighter 1 lvl (legionary slayer-rookie)'] = { 'level':1, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Fighting_Style_Great_Weapon_Fighting':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Shield':1, 'Greatsword':1, 'Javelin':6, }, } metadict_chars['Fighter 2 lvl (legionary slayer-flanker)'] = { 'level':2, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Fighting_Style_Great_Weapon_Fighting':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Shield':1, 'Greatsword':1, }, } metadict_chars['Fighter 3 lvl (legionary slayer-champion)'] = { # TODO: - . . # . 'level':3, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Fighting_Style_Great_Weapon_Fighting':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, 'Parry':True, 'Menacing_Attack':True, 'Precision_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Chain Mail':1, 'Shield':1, 'Greatsword':1, }, } metadict_chars['Fighter 4 lvl (legionary slayer-sergeant)'] = { 'level':4, 'no_grappler_AI':True, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Fighting_Style_Great_Weapon_Fighting':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, 'Parry':True, 'Menacing_Attack':True, 'Precision_Attack':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Greatsword':1, }, } metadict_chars['Fighter 5 lvl (legionary slayer-lieutenant)'] = { # Samurai 'level':5, 'no_grappler_AI':True, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Fighting_Style_Great_Weapon_Fighting':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, 'Parry':True, 'Menacing_Attack':True, 'Precision_Attack':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Greatsword +1':1, }, } #---- # . metadict_chars['Fighter 1 lvl (legionary horseman)'] = { # . 'level':1, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Light Warhorse', 'equipment_mount':{ }, } metadict_chars['Fighter 2 lvl (legionary horseman-veteran)'] = { # . 'level':2, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } metadict_chars['Fighter 3 lvl (legionary horseman-corporal)'] = { 'level':3, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Champion':True, 'Champion_Improved_Critical':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Chain Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } metadict_chars['Fighter 4 lvl (legionary horseman-sergeant)'] = { 'level':4, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Champion':True, 'Champion_Improved_Critical':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } metadict_chars['Fighter 5 lvl (legionary horseman-lieutenant)'] = { 'level':5, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Champion':True, 'Champion_Improved_Critical':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Lance':1, 'Longsword +1':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } #---- # : metadict_chars['Monk 1 lvl (city windsong-apprentice)'] = { 'level':1, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Shortsword':1, #'Bolas':6, }, } metadict_chars['Monk 2 lvl (city windsong-gatekeeper)'] = { 'level':2, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Shortsword':1, #'Bolas':6, }, } metadict_chars['Monk 3 lvl (city windsong-lorekeeper)'] = { # 'level':3, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'grappler_AI':True, 'class_features':{ 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Open_Hand_Technique':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Shortsword':1, #'Bolas':6, }, } metadict_chars['Monk 4 lvl (city windsong-oathkeeper)'] = { 'level':4, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'grappler_AI':True, 'class_features':{ 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Open_Hand_Technique':True, 'Ability_Score_Improvement':{ 'dexterity':+2, }, 'Slow_Fall':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Shortsword':1, #'Bolas':6, }, } metadict_chars['Monk 5 lvl (city windsong-warmonger)'] = { 'level':5, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'grappler_AI':True, 'class_features':{ # TODO: # : # - Flurry_of_Blows Stunning_Strike ( ) # - ( ) . 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Stunning_Strike':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Open_Hand_Technique':True, 'Ability_Score_Improvement':{ 'dexterity':+2, }, 'Slow_Fall':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Shortsword +1':1, #'Bolas':6, }, } #---- # : metadict_chars['Barbarian 1 lvl (thracian slayer-dogface)'] = { # . 'level':1, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Scale Mail':1, 'Heavy Shield':1, 'Greatsword':1, 'Javelin':6, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Barbarian 2 lvl (thracian slayer-slasher)'] = { 'level':2, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':2, 'Scale Mail':1, 'Heavy Shield':1, 'Greatsword':1, 'Javelin':6, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Barbarian 3 lvl (thracian slayer-juggernaught)'] = { 'level':3, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, 'Primal_Path_Berserker':True, 'Berserker_Frenzy':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Scale Mail':1, 'Heavy Shield':1, 'Greatsword':1, 'Javelin':6, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Barbarian 4 lvl (thracian slayer-thane)'] = { 'level':4, 'no_grappler_AI':True, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, 'Primal_Path_Berserker':True, 'Berserker_Frenzy':True, 'Ability_Score_Improvement':{ 'strength':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Heavy Shield':1, 'Greatsword':1, 'Javelin':6, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Barbarian 5 lvl (thracian slayer-lord)'] = { 'level':5, 'no_grappler_AI':True, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'commander', 'class_features':{ 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, 'Primal_Path_Berserker':True, 'Berserker_Frenzy':True, 'Ability_Score_Improvement':{ 'strength':+2, }, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Heavy Shield':1, 'Greatsword +1':1, 'Javelin':6, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # , : metadict_chars['Warlock 1 lvl (otherworld seeker-follower)'] = { 'level':1, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Feat_Elemental_Adept':'fire', 'Feat_Spellsniper':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Thunderclap'), #('cantrip', 'Prestidigitation'), #('1_lvl', 'Charm_Person'), #('1_lvl', 'Arms_of_Hadar'), #('1_lvl', 'Cause_Fear'), #('1_lvl', 'Armor_of_Agathys'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Hex'), # 2d6 , 5x5 : #('1_lvl', 'Arms_of_Hadar'), #('1_lvl', 'Expeditious_Retreat'), #('1_lvl', 'Hellish_Rebuke'), #('1_lvl', 'Witch_Bolt'), ], 'Dark_One\'s_Blessing':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Warlock 2 lvl (otherworld seeker-adept)'] = { 'level':2, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ #'Feat_Elemental_Adept':'fire', 'Feat_Spellsniper':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Thunderclap'), #('1_lvl', 'Charm_Person'), #('1_lvl', 'Protection_from_Evil_and_Good'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Armor_of_Agathys'), ('1_lvl', 'Hex'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, #'Invocation_Mask_of_Many_Faces':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Warlock 3 lvl (otherworld seeker-emissary)'] = { 'level':3, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Feat_Elemental_Adept':'fire', 'Feat_Spellsniper':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Thunderclap'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Message'), #('2_lvl', 'Charm_Person'), ('2_lvl', 'Armor_of_Agathys'), ('2_lvl', 'Protection_from_Evil_and_Good'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Shatter'), #('2_lvl', 'Cause_Fear'), #('2_lvl', 'Invisibility'), #('2_lvl', 'Darkness'), # , 300 : #('2_lvl', 'Earthbind'), #('2_lvl', 'Hold_Person'), #('2_lvl', 'Mind_Spike'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Warlock 4 lvl (otherworld seeker-envoy)'] = { 'level':4, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Feat_Elemental_Adept':'fire', 'Feat_Spellsniper':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Thunderclap'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Message'), ('cantrip', 'Mage_Hand'), #('2_lvl', 'Charm_Person'), ('2_lvl', 'Armor_of_Agathys'), ('2_lvl', 'Protection_from_Evil_and_Good'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Shatter'), ('2_lvl', 'Suggestion'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Warlock 5 lvl (otherworld seeker-ascendant)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Feat_Elemental_Adept':'fire', 'Feat_Spellsniper':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Thunderclap'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Message'), ('cantrip', 'Mage_Hand'), ('ritual', 'Detect_Magic'), ('ritual', 'Identify'), #('3_lvl', 'Charm_Person'), #('3_lvl', 'Armor_of_Agathys'), ('3_lvl', 'Protection_from_Evil_and_Good'), ('3_lvl', 'Invisibility'), ('3_lvl', 'Suggestion'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Fireball'), #('3_lvl', 'Fear'), #('3_lvl', 'Dispel_Magic'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Invocation_Book_of_Ancient_Secrets':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # -: # Snooty metadict_chars['Wizard 2 lvl (city cat-weaver)'] = { 'level':2, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'archer', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Sleep'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ], 'Arcane_Ward':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 5 lvl (city cat-seer)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('cantrip', 'Message'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Blur'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'Shatter'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Fear'), #('3_lvl', 'Fireball'), ], 'Arcane_Ward':True, 'Ability_Score_Improvement':{ 'intelligence':+2, }, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # : metadict_chars['Wizard 1 lvl (otherworld mage-disciple)'] = { # 1 lvl -- 6 ( +2 ) # : _ + _ 'level':1, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'archer', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # Mold_Earth -- , 33 /, 900 /. #('cantrip', 'Create_Bonfire'), #('cantrip', 'Shape_Water'), #('cantrip', 'Mold_Earth'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), # 3-4 ( ): #('ritual', 'Comprehend_Languages'), #('ritual', 'Illusory_Script'), #('ritual', 'Floating_Disk'), #('ritual', 'Find_Familiar'), #('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Charm_Person'), #('1_lvl', 'Cause_Fear'), #('1_lvl', 'Disguise_Self'), #('1_lvl', 'Mage_Armor'), #('1_lvl', 'Absorb_Elements'), ], }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 2 lvl (otherworld mage-weaver)'] = { # Abjurer 'level':2, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'archer', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ], 'Arcane_Ward':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 3 lvl (otherworld mage-annalist)'] = { 'level':3, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), #('ritual', 'Magic_Mouth'), #('ritual', 'Skywrite'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), #('2_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Blur'), ('2_lvl', 'Shatter'), #('2_lvl', 'Melfs_Acid_Arrow'), #('2_lvl', 'Continual_Flame'), #('2_lvl', 'Magic_Weapon'), #('2_lvl', 'Alter_Self'), #('2_lvl', 'Levitate'), #('2_lvl', 'Blur'), #('2_lvl', 'Mirror_Image'), #('2_lvl', 'Invisibility'), #('2_lvl', 'See_Invisibility'), #('2_lvl', 'Pyrotechnics'), #('2_lvl', 'Darkvision'), #('2_lvl', 'Darkness'), #('2_lvl', 'Knock'), # (10 , 21 ): #('2_lvl', 'Warding_Wind'), # (10 , 21 ): # https://www.reddit.com/r/dndnext/comments/bv14et/shatter_really_underrated_spell/ #('2_lvl', 'Shatter'), # - (9 , ): #('2_lvl', 'Flaming_Sphere'), #('2_lvl', 'Dust_Devil'), # ( Magic_Missile): #('2_lvl', 'Scorching_Ray'), ], 'Arcane_Ward':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 4 lvl (otherworld mage-savant)'] = { 'level':4, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('cantrip', 'Message'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), #('2_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Blur'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'Shatter'), ], 'Arcane_Ward':True, 'Ability_Score_Improvement':{ 'intelligence':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 5 lvl (otherworld mage-seer)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Fire_Bolt'), ('cantrip', 'Message'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), #('2_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Blur'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'Shatter'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Fireball'), #('3_lvl', 'Blink'), #('3_lvl', 'Sending'), #('3_lvl', 'Remove_Curse'), #('3_lvl', 'Nondetection'), #('3_lvl', 'Magic_Circle'), #('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Clairvoyance'), #('3_lvl', 'Major_Image'), #('3_lvl', 'Fly'), #('3_lvl', 'Slow'), # Sending , : #('3_lvl', 'Sending'), #('3_lvl', 'Glyph_of_Warding'), # Clairvoyance , : #('3_lvl', 'Clairvoyance'), ], 'Arcane_Ward':True, 'Ability_Score_Improvement':{ 'intelligence':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # : metadict_chars['Bard 1 lvl (otherworld singer-follower)'] = { 'level':1, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ # TODO: Faerie_Fire ('cantrip', 'Prestidigitation'), ('cantrip', 'Vicious_Mockery'), #('ritual', 'Comprehend_Languages'), #('ritual', 'Illusory_Script'), #('ritual', 'Unseen_Servant'), #('ritual', 'Detect_Magic'), #('ritual', 'Identify'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Sleep'), # Faerie_Fire , 2x2 , , . ('1_lvl', 'Faerie_Fire'), # Bane , , -1d4 . #('1_lvl', 'Bane'), # _ . #('1_lvl', 'Heroism'), #('1_lvl', 'Disguise_Self'), #('1_lvl', 'Animal_Friendship'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Bard 2 lvl (otherworld singer-stranger)'] = { # TODO: Jack_of_All_Trades 1/2 . 'level':2, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Vicious_Mockery'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Sleep'), ('1_lvl', 'Faerie_Fire'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Bard 3 lvl (otherworld singer-explorer)'] = { 'level':3, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ # TODO: " " # AC. ('cantrip', 'Prestidigitation'), ('cantrip', 'Vicious_Mockery'), ('ritual', 'Unseen_Servant'), #('ritual', 'Magic_Mouth'), #('ritual', 'Animal_Messenger'), #('ritual', 'Locate_Animals_or_Plants'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Sleep'), ('2_lvl', 'Shatter'), ('2_lvl', 'Lesser_Restoration'), #('2_lvl', 'Hold_Person'), #('2_lvl', 'Invisibility'), #('2_lvl', 'Enhance_Ability'), # 20 , , : #('2_lvl', 'Calm_Emotions'), # , : #('2_lvl', 'Heat_Metal'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, 'College_of_Valor':True, 'Expertise':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Bard 4 lvl (otherworld singer-pathfinder)'] = { 'level':4, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Vicious_Mockery'), ('cantrip', 'Message'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Sleep'), ('2_lvl', 'Shatter'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Calm_Emotions'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, 'College_of_Valor':True, 'Expertise':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Bard 5 lvl (otherworld singer-leader)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Vicious_Mockery'), ('cantrip', 'Message'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Shatter'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Calm_Emotions'), ('3_lvl', 'Sending'), ('3_lvl', 'Clairvoyance'), #('3_lvl', 'Tongues'), #('3_lvl', 'Nondetection'), #('3_lvl', 'Clairvoyance'), #('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Glyph_of_Warding'), #('3_lvl', 'Speak_with_Dead'), #('3_lvl', 'Speak_with_Plants'), # Hypnotic_Pattern, 6x6 , , . #('3_lvl', 'Hypnotic_Pattern'), # Plant_Growth, 8 , 1/2 , 269 , . # 96 840 , 100 000 -12. # 50-150 . . #('3_lvl', 'Plant_Growth'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, 'College_of_Valor':True, 'Expertise':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, 'Font_of_Inspiration':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Shortsword':1, 'Shortbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # -- : metadict_chars['Cleric 1 lvl (war cleric)'] = { 'level':1, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', #'seeker_AI':True, #'killer_AI':True, 'behavior':'commander', 'class_features':{ 'Feat_Inspiring_Leader':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mend'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Spare_the_Dying'), #('cantrip', 'Word_of_Radiance'), ('ritual', 'Detect_Poison_and_Disease'), ('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Detect_Magic'), #('1_lvl', 'Healing_Word'), ('1_lvl', 'Bless'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), #('1_lvl', 'Guiding_Bolt'), #('1_lvl', 'Shield_of_Faith'), ], 'War_Domain':True, 'War_Priest':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Splint Armor':1, 'Shield':1, 'Mace':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # -- : metadict_chars['Cleric 1 lvl (city maatcarian-acolyte)'] = { # , , . 'level':1, 'char_class':'Cleric', 'abilityes_choice':['wisdom','dexterity','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ # Homebrew: Unarmored_Defense : 'Unarmored_Defense':True, 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thaumaturgy'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Sacred_Flame'), ('ritual', 'Detect_Poison_and_Disease'), ('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Detect_Magic'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Bless'), #('1_lvl', 'Cure_Wounds'), #('1_lvl', 'Sanctuary'), #('1_lvl', 'Shield_of_Faith'), #('ritual', 'Ceremony'), ], 'Life_Domain':True, 'Disciple_of_Life':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Healer Kit':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 2 lvl (city maatcarian-celebrant)'] = { 'level':2, 'char_class':'Cleric', 'abilityes_choice':['wisdom','dexterity','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Unarmored_Defense':True, 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thaumaturgy'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Sacred_Flame'), ('ritual', 'Detect_Poison_and_Disease'), ('ritual', 'Purify_Food_and_Drink'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Sanctuary'), ('1_lvl', 'Bless'), ], 'Life_Domain':True, 'Disciple_of_Life':True, 'Channel_Turn_Undead':True, 'Channel_Preserve_Life':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Healer Kit':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 3 lvl (city maatcarian-augur)'] = { 'level':3, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','dexterity','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Unarmored_Defense':True, 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thaumaturgy'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Sacred_Flame'), ('ritual', 'Augury'), #('ritual', 'Silence'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('1_lvl', 'Sanctuary'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Continual_Flame'), #('2_lvl', 'Protection_from_Poison'), #('2_lvl', 'Prayer_of_Healing'), #('2_lvl', 'Spiritual_Weapon'), #('2_lvl', 'Zone_of_Truth'), #('2_lvl', 'Warding_Bond'), #('2_lvl', 'Find_Traps'), ], 'Life_Domain':True, 'Disciple_of_Life':True, 'Channel_Turn_Undead':True, 'Channel_Preserve_Life':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 4 lvl (city maatcarian-arbiter)'] = { 'level':4, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','dexterity','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Unarmored_Defense':True, 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thaumaturgy'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Guidance'), ('ritual', 'Augury'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('1_lvl', 'Sanctuary'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Continual_Flame'), ('2_lvl', 'Zone_of_Truth'), ('2_lvl', 'Find_Traps'), ], 'Life_Domain':True, 'Disciple_of_Life':True, 'Channel_Turn_Undead':True, 'Channel_Preserve_Life':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Healer Kit':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 5 lvl (city maatcarian-reviver)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','dexterity','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Unarmored_Defense':True, 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thaumaturgy'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Guidance'), ('ritual', 'Augury'), #('ritual', 'Water_Walk'), #('ritual', 'Meld_into_Stone'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('3_lvl', 'Healing_Word'), ('1_lvl', 'Sanctuary'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Zone_of_Truth'), ('3_lvl', 'Beacon_of_Hope'), ('3_lvl', 'Revivify'), ('3_lvl', 'Sending'), #('3_lvl', 'Remove_Curse'), #('3_lvl', 'Daylight'), #('3_lvl', 'Clairvoyance'), #('3_lvl', 'Mass_Healing_Word'), #('3_lvl', 'Glyph_of_Warding'), #('3_lvl', 'Spirit_Guardians'), #('3_lvl', 'Speak_with_Dead'), #('3_lvl', 'Tongues'), #('3_lvl', 'Sending'), #('3_lvl', 'Dispel_Magic'), ], 'Life_Domain':True, 'Disciple_of_Life':True, 'Channel_Turn_Undead':True, 'Channel_Preserve_Life':True, 'Channel_Destroy_Undead':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Healer Kit':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # -- : metadict_chars['Cleric 1 lvl (city luminary-acolyte)'] = { # , , . 'level':1, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Word_of_Radiance'), ('cantrip', 'Light'), ('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Detect_Magic'), #('ritual', 'Ceremony'), ('1_lvl', 'Faerie_Fire'), ('1_lvl', 'Burning_Hands'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Bless'), #('1_lvl', 'Cure_Wounds'), #('1_lvl', 'Sanctuary'), ], 'Light_Domain':True, 'Warding_Flare':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 2 lvl (city luminary-celebrant)'] = { 'level':2, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Radiance_of_the_Dawn'), ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Word_of_Radiance'), ('cantrip', 'Light'), ('ritual', 'Ceremony'), ('ritual', 'Purify_Food_and_Drink'), ('1_lvl', 'Faerie_Fire'), ('1_lvl', 'Burning_Hands'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Bless'), ], 'Light_Domain':True, 'Warding_Flare':True, 'Channel_Turn_Undead':True, 'Channel_Radiance_of_the_Dawn':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 3 lvl (city luminary-augur)'] = { 'level':3, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Radiance_of_the_Dawn'), ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Word_of_Radiance'), ('cantrip', 'Light'), ('ritual', 'Augury'), #('ritual', 'Silence'), ('1_lvl', 'Faerie_Fire'), ('1_lvl', 'Burning_Hands'), #('2_lvl', 'Scorching_Ray'), #('2_lvl', 'Flaming_Sphere'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('1_lvl', 'Shield_of_Faith'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Continual_Flame'), #('2_lvl', 'Protection_from_Poison'), #('2_lvl', 'Prayer_of_Healing'), #('2_lvl', 'Spiritual_Weapon'), #('2_lvl', 'Zone_of_Truth'), #('2_lvl', 'Warding_Bond'), #('2_lvl', 'Find_Traps'), ], 'Light_Domain':True, 'Warding_Flare':True, 'Channel_Turn_Undead':True, 'Channel_Radiance_of_the_Dawn':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 4 lvl (city luminary-arbiter)'] = { 'level':4, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Radiance_of_the_Dawn'), ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Word_of_Radiance'), ('cantrip', 'Thaumaturgy'), ('ritual', 'Augury'), ('1_lvl', 'Faerie_Fire'), ('1_lvl', 'Burning_Hands'), #('2_lvl', 'Scorching_Ray'), #('2_lvl', 'Flaming_Sphere'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('1_lvl', 'Shield_of_Faith'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Continual_Flame'), ('2_lvl', 'Zone_of_Truth'), ('2_lvl', 'Find_Traps'), ], 'Light_Domain':True, 'Warding_Flare':True, 'Channel_Turn_Undead':True, 'Channel_Radiance_of_the_Dawn':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 5 lvl (city luminary-reviver)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Radiance_of_the_Dawn'), ('cantrip', 'Guidance'), ('cantrip', 'Word_of_Radiance'), ('cantrip', 'Spare_the_Dying'), ('cantrip', 'Thaumaturgy'), ('ritual', 'Augury'), #('ritual', 'Water_Walk'), #('ritual', 'Meld_into_Stone'), ('1_lvl', 'Faerie_Fire'), ('1_lvl', 'Burning_Hands'), #('2_lvl', 'Scorching_Ray'), #('2_lvl', 'Flaming_Sphere'), #('3_lvl', 'Daylight'), ('3_lvl', 'Fireball'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Healing_Word'), ('1_lvl', 'Shield_of_Faith'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Zone_of_Truth'), ('3_lvl', 'Beacon_of_Hope'), ('3_lvl', 'Revivify'), ('3_lvl', 'Sending'), #('3_lvl', 'Remove_Curse'), #('3_lvl', 'Daylight'), #('3_lvl', 'Clairvoyance'), #('3_lvl', 'Mass_Healing_Word'), #('3_lvl', 'Glyph_of_Warding'), #('3_lvl', 'Spirit_Guardians'), #('3_lvl', 'Speak_with_Dead'), #('3_lvl', 'Tongues'), #('3_lvl', 'Sending'), #('3_lvl', 'Dispel_Magic'), ], 'Light_Domain':True, 'Warding_Flare':True, 'Channel_Turn_Undead':True, 'Channel_Destroy_Undead':True, 'Channel_Radiance_of_the_Dawn':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword +1':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # -: metadict_chars['Rogue 1 lvl (city cat-nyamo)'] = { 'level':1, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Alert':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Crossbow, Light':1, 'Crossbow Bolt':40, 'Dagger':1, }, } metadict_chars['Rogue 2 lvl (city cat-meow)'] = { 'level':2, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Alert':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Cunning_Action_Defence':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, }, } metadict_chars['Rogue 3 lvl (city cat-dodger)'] = { # . , . . # TODO: , , Mage_Hand. 'level':3, 'char_class':'Arcane_Tricker', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'grappler_AI':True, 'class_features':{ 'Feat_Alert':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Cunning_Action_Defence':True, 'Roguish_Archetype_Arcane_Tricker':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mage_Hand'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Message'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Silent_Image'), #('1_lvl', 'Magic_Missile'), ('1_lvl', 'Sleep'), ], 'Mage_Hand_Legerdemain':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, } metadict_chars['Rogue 4 lvl (city cat-runner)'] = { 'level':4, 'char_class':'Arcane_Tricker', 'hit_dice':'1d8', 'behavior':'commander', 'grappler_AI':True, 'class_features':{ 'Feat_Alert':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Cunning_Action_Defence':True, 'Roguish_Archetype_Arcane_Tricker':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mage_Hand'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Message'), ('ritual', 'Illusory_Script'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Silent_Image'), #('1_lvl', 'Magic_Missile'), ('1_lvl', 'Sleep'), ], 'Mage_Hand_Legerdemain':True, 'Ability_Score_Improvement':{ 'dexterity':+2, }, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Infusion of Claws':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, } metadict_chars['Rogue 5 lvl (city cat-mastermind)'] = { 'level':5, #'fireball_AI':True, 'grappler_AI':True, #'no_grappler_AI':True, 'char_class':'Arcane_Tricker', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Alert':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Cunning_Action_Defence':True, 'Roguish_Archetype_Arcane_Tricker':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mage_Hand'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Message'), ('ritual', 'Illusory_Script'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Silent_Image'), #('1_lvl', 'Magic_Missile'), ('1_lvl', 'Shield'), ], 'Mage_Hand_Legerdemain':True, 'Uncanny_Dodge':True, 'Ability_Score_Improvement':{ 'dexterity':+2, }, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':{}, 'equipment_backpack':{}, 'equipment_weapon':{ 'Infusion of Claws':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, }, } #---- # : metadict_chars['Rogue 1 lvl (mercenary phantom-blackeye)'] = { # TODO: . 'level':1, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Rogue 2 lvl (mercenary phantom-hawkeye)'] = { 'level':2, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Rogue 3 lvl (mercenary phantom-deadeye)'] = { 'level':3, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Roguish_Archetype_Assasin':True, 'Assassinate':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Rogue 4 lvl (mercenary phantom-sergeant)'] = { 'level':4, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Roguish_Archetype_Assasin':True, 'Assassinate':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Rogue 5 lvl (mercenary phantom-lieutenant)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Rogue', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Expertise':True, 'Sneak_Attack':True, 'Thieves\' Cant':True, 'Cunning_Action':True, 'Roguish_Archetype_Assasin':True, 'Assassinate':True, 'Uncanny_Dodge':True, 'Ability_Score_Improvement':{ 'dexterity':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # : metadict_chars['Ranger 1 lvl (otherworld wanderer-scout)'] = { 'level':1, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 2 lvl (otherworld wanderer-marksman)'] = { 'level':2, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], 'Spellcasting':True, 'Spells':[ #('ritual', 'Speak_with_Animals'), #('ritual', 'Detect_Poison_and_Disease'), #('ritual', 'Alarm'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Hail_of_Thorns'), #('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Hunter\'s Mark'), #('1_lvl', 'Ensnaring_Strike'), #('1_lvl', 'Animal_Friendship'), #('1_lvl', 'Cure_Wounds'), #('1_lvl', 'Goodberry'), ], 'Fighting_Style_Archery':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 3 lvl (otherworld wanderer-hunter)'] = { 'level':3, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], 'Spellcasting':True, 'Spells':[ ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Hail_of_Thorns'), ('1_lvl', 'Fog_Cloud'), ], 'Fighting_Style_Archery':True, 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Horde_Breaker':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 4 lvl (otherworld wanderer-sergeant)'] = { 'level':4, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], 'Spellcasting':True, 'Spells':[ ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Hail_of_Thorns'), ('1_lvl', 'Fog_Cloud'), ], 'Fighting_Style_Archery':True, 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Horde_Breaker':True, 'Feat_Mounted_Combatant':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 5 lvl (otherworld wanderer-lieutenant)'] = { 'level':5, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], 'Spellcasting':True, 'Spells':[ ('ritual', 'Alarm'), #('ritual', 'Silence'), #('ritual', 'Beast_Sense'), #('ritual', 'Animal_Messenger'), #('ritual', 'Locate_Animals_or_Plants'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Hail_of_Thorns'), ('2_lvl', 'Healing_Spirit'), ('2_lvl', 'Pass_Without_Trace'), #('2_lvl', 'Lesser_Restoration'), #('2_lvl', 'Protection_from_Poison'), #('2_lvl', 'Cordon_of_Arrows'), #('2_lvl', 'Locate_Object'), #('2_lvl', 'Find_Traps'), # , 20- , 10 : # 2d4 . #('2_lvl', 'Spike_Growth'), ], 'Fighting_Style_Archery':True, 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Horde_Breaker':True, 'Feat_Mounted_Combatant':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # : # Gardener, grover, metadict_chars['Druid 1 lvl (otherworld terian-forester)'] = { 'level':1, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ # -- _ + _: # Magic_Stone -- . # Goodberry -- 2 = 20 . 20 2 lvl = 600 . #('cantrip', 'Create_Bonfire'), #('cantrip', 'Control_Flames'), #('cantrip', 'Thorn_Whip'), #('cantrip', 'Guidance'), #('cantrip', 'Gust'), ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Magic_Stone'), #('ritual', 'Detect_Magic'), #('ritual', 'Detect_Poison_and_Disease'), #('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Speak_with_Animals'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Ice_Knife'), #('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Goodberry'), #('1_lvl', 'Charm_Person'), ], 'Druidic_Language':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Hide Armor':1, 'Heavy Shield':1, 'Scimitar':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 2 lvl (otherworld terian-changer)'] = { 'level':2, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Magic_Stone'), ('cantrip', 'Shape_Water'), #('ritual', 'Detect_Magic'), #('ritual', 'Detect_Poison_and_Disease'), #('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Speak_with_Animals'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Ice_Knife'), #('1_lvl', 'Goodberry'), #('1_lvl', 'Charm_Person'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Druid_Circle_Forest':True, 'Natural_Recovery':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Hide Armor':1, 'Heavy Shield':1, 'Scimitar':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 3 lvl (otherworld terian-wiseman)'] = { 'level':3, 'fireball_AI':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Magic_Stone'), ('cantrip', 'Shape_Water'), #('ritual', 'Skywrite'), #('ritual', 'Animal_Messenger'), #('ritual', 'Locate_Animals_or_Plants'), # Speak_with_Animals + Beast_Sense = . ('ritual', 'Speak_with_Animals'), ('ritual', 'Beast_Sense'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Healing_Spirit'), # Moonbeam -- . 5 , ~5 , 2d10 /, . ('2_lvl', 'Moonbeam'), #('2_lvl', 'Find_Traps'), #('2_lvl', 'Earthbind'), #('2_lvl', 'Darkvision'), #('2_lvl', 'Dust_Devil'), #('2_lvl', 'Heat_Metal'), #('2_lvl', 'Gust_of_Wind'), # "Spike_Growth" #('2_lvl', 'Spike_Growth'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Druid_Circle_Forest':True, 'Natural_Recovery':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Hide Armor':1, 'Heavy Shield':1, 'Scimitar':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 4 lvl (otherworld terian-wonderman)'] = { 'level':4, 'fireball_AI':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Magic_Stone'), ('cantrip', 'Shape_Water'), ('cantrip', 'Create_Bonfire'), ('ritual', 'Speak_with_Animals'), ('ritual', 'Beast_Sense'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Healing_Spirit'), ('2_lvl', 'Gust_of_Wind'), ('2_lvl', 'Moonbeam'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Druid_Circle_Forest':True, 'Natural_Recovery':True, 'Wild_Shape_Improvement':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Heavy Shield':1, 'Scimitar':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 5 lvl (otherworld terian-loremaster)'] = { 'level':5, 'fireball_AI':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Magic_Stone'), ('cantrip', 'Shape_Water'), ('cantrip', 'Create_Bonfire'), #('ritual', 'Feign_Death'), #('ritual', 'Meld_into_Stone'), ('ritual', 'Speak_with_Animals'), ('ritual', 'Beast_Sense'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Healing_Spirit'), ('2_lvl', 'Moonbeam'), ('3_lvl', 'Call_Lightning'), ('3_lvl', 'Conjure_Animals'), ('3_lvl', 'Plant_Growth'), #('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Speak_with_Plants'), #('3_lvl', 'Protection_from_Energy'), # : #('3_lvl', 'Sleet_Storm'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Druid_Circle_Forest':True, 'Natural_Recovery':True, 'Wild_Shape_Improvement':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Heavy Shield':1, 'Scimitar +1':1, 'Sling real':1, 'Sling Bullet':10, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } #---- # : metadict_chars['Sorcerer 1 lvl (otherworld wildfire-novice)'] = { # TODO: +1 hp , Draconic_Scales. # , Burning_Hands . 'level':1, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'elite_warrior', 'class_features':{ #'Feat_Inspiring_Leader':True, # . 'Feat_Elemental_Adept':'fire', 'Sorcerous_Origin_Draconic_Bloodline':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Sword_Burst'), #('cantrip', 'Thunderclap'), #('cantrip', 'Acid_Splash'), #('cantrip', 'Fire_Bolt'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), #('1_lvl', 'Absorb_Elements'), #('1_lvl', 'Magic_Missile'), ], }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Draconic_Scales':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Sorcerer 2 lvl (otherworld wildfire-burner)'] = { 'level':2, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'elite_warrior', 'class_features':{ #'Feat_Inspiring_Leader':True, 'Feat_Elemental_Adept':'fire', 'Sorcerous_Origin_Draconic_Bloodline':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Sword_Burst'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Absorb_Elements'), #('1_lvl', 'Magic_Missile'), ], 'Font_of_Magic':True, 'Font_of_Magic_Spellslot_1_lvl':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Draconic_Scales':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Sorcerer 3 lvl (otherworld wildfire-enchanter)'] = { 'level':3, 'fireball_AI':True, #'disengage_AI':True, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ # TODO: Metamagic_Twinned_Spell . ! #'Feat_Inspiring_Leader':True, 'Feat_Elemental_Adept':'fire', 'Sorcerous_Origin_Draconic_Bloodline':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Sword_Burst'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Flaming_Sphere'), ], 'Font_of_Magic':True, 'Metamagic':True, 'Metamagic_Distant_Spell':True, 'Metamagic_Twinned_Spell':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Draconic_Scales':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Sorcerer 4 lvl (otherworld wildfire-paragon)'] = { 'level':4, 'fireball_AI':True, #'disengage_AI':True, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ #'Feat_Inspiring_Leader':True, 'Feat_Elemental_Adept':'fire', 'Sorcerous_Origin_Draconic_Bloodline':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Sword_Burst'), ('cantrip', 'Message'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'Mirror_Image'), #('2_lvl', 'Blur'), ], 'Font_of_Magic':True, 'Metamagic':True, 'Metamagic_Distant_Spell':True, 'Metamagic_Twinned_Spell':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Draconic_Scales':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Sorcerer 5 lvl (otherworld wildfire-ravager)'] = { 'level':5, 'fireball_AI':True, #'disengage_AI':True, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ #'Feat_Inspiring_Leader':True, 'Feat_Elemental_Adept':'fire', 'Sorcerous_Origin_Draconic_Bloodline':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Sword_Burst'), ('cantrip', 'Message'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Mirror_Image'), #('2_lvl', 'Blur'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Fireball'), ], 'Font_of_Magic':True, 'Metamagic':True, 'Metamagic_Distant_Spell':True, 'Metamagic_Twinned_Spell':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Draconic_Scales':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # (): # Sefet, wersefet, imeyer metadict_chars['Paladin 1 lvl (city sentry-sefet)'] = { 'level':1, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Divine_Sense':True, 'Lay_on_Hands':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Light Warhorse', 'equipment_mount':{ }, } metadict_chars['Paladin 2 lvl (city sentry-weresefet)'] = { 'level':2, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, #'Fighting_Style_Protection':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ # : Charisma modifier + half your paladin level # 3 . ('1_lvl', 'Divine_Smite'), ('1_lvl', 'Bless'), ('1_lvl', 'Heroism'), ('1_lvl', 'Shield_of_Faith'), #('1_lvl', 'Searing_Smite'), #('1_lvl', 'Thunderous_Smite'), #('1_lvl', 'Protection_from_Evil_and_Good'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Chain Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } metadict_chars['Paladin 3 lvl (city sentry-imeyer)'] = { # TODO: 3 lvl "Bless" "Channel_Sacred_Weapon" . 12+ # "Feat_Great_Weapon_Master" +10 -5 . 'level':3, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, #'Fighting_Style_Protection':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Sacred_Weapon'), ('1_lvl', 'Divine_Smite'), ('1_lvl', 'Bless'), ('1_lvl', 'Heroism'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Protection_from_Evil_and_Good'), ('1_lvl', 'Sanctuary'), ], 'Divine_Health':True, 'Oath_of_Devotion':True, 'Channel_Turn_The_Unholy':True, 'Channel_Sacred_Weapon':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Chain Mail':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } metadict_chars['Paladin 4 lvl (city sentry-sergeant)'] = { 'level':4, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, #'Fighting_Style_Protection':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Sacred_Weapon'), ('1_lvl', 'Divine_Smite'), ('1_lvl', 'Bless'), ('1_lvl', 'Heroism'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Protection_from_Evil_and_Good'), ('1_lvl', 'Sanctuary'), ], 'Divine_Health':True, 'Oath_of_Devotion':True, 'Channel_Turn_The_Unholy':True, 'Channel_Sacred_Weapon':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Lance':1, 'Longsword':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } metadict_chars['Paladin 5 lvl (city sentry-lieutenant)'] = { # , . +12-15 . Bless Sacred_Weapon. 40+ /. 'level':5, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, #'Fighting_Style_Protection':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Sacred_Weapon'), ('1_lvl', 'Divine_Smite'), ('2_lvl', 'Divine_Smite'), ('1_lvl', 'Bless'), ('1_lvl', 'Heroism'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Protection_from_Evil_and_Good'), ('1_lvl', 'Sanctuary'), ('1_lvl', 'Command'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Zone_of_Truth'), ('2_lvl', 'Find_Steed'), #('2_lvl', 'Aid'), #('2_lvl', 'Branding_Smite'), #('2_lvl', 'Magic_Weapon'), ], 'Divine_Health':True, 'Oath_of_Devotion':True, 'Channel_Turn_The_Unholy':True, 'Channel_Sacred_Weapon':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Splint Armor':1, 'Shield':1, 'Lance':1, 'Longsword +1':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } #------------------------------------------------------------------------------- # , Sea Tribes #---- # () (): metadict_chars['Warrior 1 lvl () ()'] = { 'level':1, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Pike':1, }, } metadict_chars['Warrior 2 lvl () ()'] = { 'level':2, 'char_class':'Warrior', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pike':1, }, } metadict_chars['Warrior 3 lvl () (-)'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Longsword':1, 'Pike':1, }, } metadict_chars['Warrior 4 lvl () ()'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('1_lvl', 'Bless'), ], }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Longsword':1, 'Pike':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl () ()'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Resistance'), ('cantrip', 'Spare_the_Dying'), ('1_lvl', 'Bless'), ], 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Longsword':1, 'Pike':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () (): metadict_chars['Paladin 1 lvl () ()'] = { 'level':1, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Divine_Sense':True, 'Lay_on_Hands':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Athletics', 'Intimidation', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Splint Armor':1, 'Heavy Shield':1, 'Battleaxe':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Paladin 5 lvl () ( II, )'] = { # 5 lvl / / - / - # https://dungeonmaster.ru/PlayerProfiles.aspx?module=9404 'level':5, 'fearless_AI':True, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':10, 'constitution':14, 'intelligence':16, 'wisdom':12, 'charisma':18, }, 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ # TODO: Wrathful_Smite. # : 10 = 4 +2 (5/2) +4 ('channel', 'Control_Undead'), ('channel', 'Dreadful_Aspect'), ('ritual', 'Zone_of_Truth'), ('ritual', 'Find_Steed'), ('1_lvl', 'Divine_Smite'), ('2_lvl', 'Divine_Smite'), ('1_lvl', 'Wrathful_Smite'), ('1_lvl', 'Heroism'), ('1_lvl', 'Command'), ('1_lvl', 'Compelled_Duel'), ('1_lvl', 'Hellish_Rebuke)'), ('1_lvl', 'Inflict_Wounds)'), ('2_lvl', 'Crown_of_madness'), ('2_lvl', 'Darkness'), ], 'Divine_Health':True, 'Oathbreaker':True, 'Channel_Control_Undead':True, 'Channel_Dreadful_Aspect':True, 'Feat_Keen_Mind':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ # === Strength 'Athletics', # === Dexterity #'Acrobatics', #'Sleight_of_Hand', #'Stealth', # === Intelligence #'Arcana', #'History', #'Investigation', #'Nature', #'Religion', # === Wisdom #'Animal_Handling', 'Insight', #'Medicine', 'Perception', 'Survival', # === Charisma #'Deception', 'Intimidation', #'Performance', #'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':2, #'Rune of Shielding':1, 'Splint Armor':1, 'Heavy Shield':1, #'Shortsword':1, 'Long Spear +1':1, #'Javelin':4, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Warrior 1 lvl (Vaarsuvius) ( )'] = { # [80/80] [1 lvl] [ , , , 6 ] 320 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':3, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Hide Armor':1, 'Heavy Shield':1, 'Glaive':1, 'Javelin':6, 'Poison Blade':10, }, } metadict_chars['Warrior 2 lvl (Vaarsuvius) ( )'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Infusion of Vitality':1, #'Scale Mail':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Glaive':1, 'Pilum':12, 'Long Spear':1, 'Poison Blade':40, }, } metadict_chars['Warrior 3 lvl (Vaarsuvius) ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Glaive':1, 'Pilum':12, 'Long Spear':1, 'Poison Blade':40, }, } metadict_chars['Warrior 4 lvl (Vaarsuvius) ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, #'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Glaive':1, 'Pilum':12, 'Long Spear':1, 'Poison Blade':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (Vaarsuvius) ( )'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, #'Fighting_Style_Defence':True, 'Feat_Alert':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Glaive':1, 'Pilum':12, 'Long Spear':1, 'Poison Blade':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 7 lvl (Vaarsuvius) ()'] = { # 'level':7, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, #'Fighting_Style_Defence':True, 'Feat_Alert':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Stealth', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, #'Glaive':1, 'Pilum':12, 'Long Spear':1, 'Poison Blade':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Commoner 1 lvl (Vaarsuvius) ()'] = { 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Spear':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Commoner 2 lvl (Vaarsuvius) (-)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Spear':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Warrior 3 lvl (Vaarsuvius) ( -)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':5, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Dagger':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (Vaarsuvius) ( )'] = { # . 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'fearless_AI':True, 'killer_AI':True, 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':30, 'Infusion of Vitality':1, 'Breastplate':1, 'Dagger':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Commoner 1 lvl (Vaarsuvius) ()'] = { 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Shield':1, 'Handaxe':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Commoner 2 lvl (Vaarsuvius) (-)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Shield':1, 'Handaxe':1, 'Sling real':1, 'Sling Bullet':10, }, } metadict_chars['Commoner 1 lvl (Vaarsuvius) ()'] = { 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Commoner 2 lvl (Vaarsuvius) (-)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } #---- # () (): metadict_chars['Commoner 1 lvl (-)'] = { # 'level':1, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Satyr', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Spear':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Commoner 2 lvl (-)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Satyr', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Spear':1, 'Hunting Bow':1, 'Hunting Arrow':40, }, } metadict_chars['Warrior 3 lvl (-)'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Satyr', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, }, 'race':'Satyr', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # () (): metadict_chars['Warrior 1 lvl (Vaarsuvius) ()'] = { # 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':1, 'Potion of Antidote':1, 'Leather Armor':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (Vaarsuvius) (-)'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':1, 'Potion of Antidote':1, 'Scale Mail':1, 'Dagger':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (Vaarsuvius) ( )'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':5, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Dagger':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (Vaarsuvius) (-)'] = { 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (Vaarsuvius) (-)'] = { 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{}, } #---- # () (): metadict_chars['Druid 2 lvl (Vaarsuvius) ( )'] = { 'level':2, 'char_class':'Druid', 'abilityes_choice':['wisdom','dexterity','constitution','intelligence','charisma','strength'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('ritual', 'Speak_with_Animals'), ('1_lvl', 'Goodberry'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Fog_Cloud'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Circle_Forms':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'skills':[ 'Nature', 'Animal_Handling', 'Medicine', 'Perception', 'Survival', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':20, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 2 lvl (Vaarsuvius) ( ) ()'] = { # " ". . . 'level':2, 'seeker_AI':True, 'killer_AI':True, 'changer_AI':True, 'fearless_AI':True, 'char_class':'Druid', 'abilityes':{ 'strength':10, 'dexterity':14, 'constitution':13, 'intelligence':12, 'wisdom':15, 'charisma':12, }, 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('ritual', 'Speak_with_Animals'), ('1_lvl', 'Goodberry'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Fog_Cloud'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Circle_Forms':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'skills':[ 'Nature', 'Animal_Handling', 'Medicine', 'Perception', 'Survival', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':20, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } metadict_chars['Brass Dragon, (Vaarsuvius) ( )'] = { # # 'level':13, #'Dash_AI':True, 'fearless_AI':True, 'disengage_AI':True, 'recharge_AI':True, #'accurate_AI':True, 'no_grappler_AI':True, 'air_walk':True, 'armor_class_natural':17, 'challenge_rating':'6', 'char_class':'Sorcerer', 'behavior':'commander', 'hitpoints_medial':True, 'class_features':{ 'Extra_Attack':2, 'immunity':['fire'], 'Blindvision':30, 'Darkvision':120, 'Recharge':True, 'Recharge_dice':'1d6', 'Recharge_numbers':[5,6], # : 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), #('cantrip', 'Mold_Earth'), ('ritual', 'Speak_with_Animals'), #('1_lvl', 'Goodberry'), #('1_lvl', 'Cure_Wounds'), #('1_lvl', 'Healing_Word'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Fog_Cloud'), ], 'Druidic_Language':True, 'Wild_Shape':True, #'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Circle_Forms':True, }, 'abilityes':{ 'strength':19, 'dexterity':10, 'constitution':17, # : 'intelligence':12, 'wisdom':15, 'charisma':12, }, 'hit_dice':'1d10', 'attacks':{ ('close', 'claws'): { 'attack_mod':7, 'damage_mod':4, 'weapon': False, 'weapon_type':['simple'], 'damage_type':'slashing', 'damage_dice':'2d6', 'attack_range':5, 'attack_type':'close', 'weapon_skills_use': ['simple'], 'attack_mod_type':'strength', 'weapon_of_choice':'claws', }, ('reach', 'bite'): { 'attack_mod':7, 'damage_mod':4, 'weapon': False, 'weapon_type':['simple'], 'damage_type':'piercing', 'damage_dice':'2d10', 'attack_range':10, 'attack_type':'close', 'weapon_skills_use': ['simple'], 'attack_mod_type':'strength', 'weapon_of_choice':'bite' }, ('zone', 'Unconscious'): { 'zone':True, 'debuff':True, 'effect':'sleep', 'effect_timer':100, 'zone_shape':'cone', 'attack_range':30, 'direct_hit':True, 'savethrow':True, 'savethrow_ability':'constitution', 'casting_time':'action', 'spell_save_DC':14, 'recharge': True, 'ammo':1, 'weapon_of_choice':'Unconscious' }, ('zone', 'Fire_Ray'): { 'zone':True, 'accurate':True, 'zone_shape':'ray', 'attack_range':40, 'direct_hit':True, 'savethrow':True, 'savethrow_ability':'dexterity', 'casting_time':'action', 'damage_type':'fire', 'damage_dice':'12d6', 'spell_save_DC':14, 'recharge': True, 'ammo':1, }, }, 'race':'Dragon-big', 'weapon_skill':[], 'armor_skill':[], 'equipment_weapon':{ 'Goodberry':100, 'Potion of Antidote':1, 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, }, 'equipment_backpack':{}, 'equipment_supply':{}, } metadict_chars['Druid 2 lvl (Vaarsuvius) ( ) ()'] = { # " " , 45 , , . 'level':2, 'killer_AI':True, 'changer_AI':True, 'char_class':'Druid', 'abilityes':{ 'strength':12, 'dexterity':17, 'constitution':17, 'intelligence':15, 'wisdom':18, 'charisma':14, }, 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('ritual', 'Speak_with_Animals'), ('1_lvl', 'Goodberry'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Fog_Cloud'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Circle_Forms':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'skills':[ 'Nature', 'Animal_Handling', 'Medicine', 'Perception', 'Survival', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':20, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } metadict_chars['Druid 7 lvl (Vaarsuvius) ( )'] = { 'level':7, 'changer_AI':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, #'hitpoints_base':8 + 19, 'abilityes':{ 'strength':10, 'dexterity':14, 'constitution':16, 'intelligence':12, 'wisdom':20, 'charisma':16, }, 'class_features':{ #'Feat_Inspiring_Leader':True, 'Feat_Sharpshooter':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Thorn_Whip'), ('cantrip', 'Shape_Water'), ('ritual', 'Detect_Magic'), ('ritual', 'Speak_with_Animals'), ('ritual', 'Beast_Sense'), ('ritual', 'Water_Breathing'), ('ritual', 'Water_Walk'), ('1_lvl', 'Jump'), ('2_lvl', 'Moonbeam'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Flaming_Sphere'), ('3_lvl', 'Call_Lightning'), ('3_lvl', 'Conjure_Animals'), ('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Plant_Growth'), ('4_lvl', 'Polymorph'), ('4_lvl', 'Conjure_Woodlands_Beings'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Giant Elk (CR 2)', #'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Wild_Shape_Improvement':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'skills':[ # "", " ". # === Intelligence 'Nature', # === Wisdom 'Animal_Handling', #'Insight', 'Medicine', 'Perception', 'Survival', # === Charisma #'Deception', #'Intimidation', #'Performance', 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Fighter 1 lvl (ArbitraryNickname) ()'] = { # , " " . 'level':1, 'char_class':'Battlemaster', 'abilityes_choice':['dexterity','constitution','strength','charisma'], 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Perception', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 5 lvl (ArbitraryNickname) ( )'] = { # , 'level':5, 'char_class':'Battlemaster', 'abilityes_choice':['dexterity','constitution','strength','charisma'], 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':12, 'dexterity':20, 'constitution':12, 'intelligence':15, 'wisdom':10, 'charisma':16, }, 'class_features':{ # " " " " # " " " " 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, #'Commander\'s_Strike':True, #'Maneuvering_Attack':True, 'Parry':True, 'Menacing_Attack':True, 'Precision_Attack':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Longbow +1':1, 'Scimitar':1, 'Dagger':1, 'Arrow':40, }, } #---- # () ( ): # -- : metadict_chars['Cleric 2 lvl (Vened) ( )'] = { 'level':2, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','charisma'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ # Feat_Heavy_Armor_Master, . 'Feat_Inspiring_Leader':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mend'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Spare_the_Dying'), ('ritual', 'Detect_Poison_and_Disease'), ('ritual', 'Purify_Food_and_Drink'), #('ritual', 'Detect_Magic'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Bless'), ('1_lvl', 'Guiding_Bolt'), #('1_lvl', 'Shield_of_Faith'), ], 'War_Domain':True, 'War_Priest':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Long Spear':1, 'Longsword':1, }, # TODO: -- #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 7 lvl (Vened) ( )'] = { 'level':7, 'fireball_AI':True, 'char_class':'Cleric', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, #'hitpoints_base':8 + 18 + 4, 'abilityes':{ 'strength':19, 'dexterity':10, 'constitution':12, 'intelligence':10, 'wisdom':18, 'charisma':18, }, 'class_features':{ # TODO: Channel_Guided_Strike 'Feat_Inspiring_Leader':True, 'Feat_Heavy_Armor_Master':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mend'), ('cantrip', 'Thaumaturgy'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Spare_the_Dying'), ('ritual', 'Water_Walk'), ('ritual', 'Purify_Food_and_Drink'), ('1_lvl', 'Guiding_Bolt'), #('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Magic_Weapon'), ('2_lvl', 'Spiritual_Weapon'), ('2_lvl', 'Gentle_Repose'), ('2_lvl', 'Zone_of_Truth'), #('3_lvl', 'Spirit_Guardians'), ('3_lvl', 'Crusaders_Mantle'), ('3_lvl', 'Dispel_Magic'), ('3_lvl', 'Revivify'), #('3_lvl', 'Glyph_of_Warding'), ('4_lvl', 'Divination'), ('4_lvl', 'Stone_Shape'), ('4_lvl', 'Freedom_of_Movement'), ('4_lvl', 'Stoneskin'), ], 'War_Domain':True, 'War_Priest':True, 'Channel_Turn_Undead':True, 'Channel_Guided_Strike':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor':1, 'Heavy Shield':1, 'Long Spear':1, 'Longsword +1':1, }, # TODO: -- #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ( ): metadict_chars['Druid 2 lvl (Vened) ( )'] = { 'level':2, 'char_class':'Druid', 'abilityes_choice':['wisdom','strength','constitution','intelligence'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ # -- _ + _: ('cantrip', 'Druidcraft'), ('cantrip', 'Thorn_Whip'), ('1_lvl', 'Thunderwave'), ('1_lvl', 'Goodberry'), ('1_lvl', 'Healing_Word'), #('1_lvl', 'Fog_Cloud'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Circle_Forms':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword':1, 'Long Spear':1, }, # TODO: -- #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Druid 7 lvl (Vened) ( )'] = { 'level':7, 'fireball_AI':True, 'char_class':'Druid', 'abilityes_choice':['wisdom','strength','constitution','intelligence'], 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':20, 'dexterity':10, 'constitution':12, 'intelligence':18, 'wisdom':18, 'charisma':10, }, 'class_features':{ 'Feat_Healer':True, 'Feat_Heavy_Armor_Master':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Thorn_Whip'), ('cantrip', 'Mend'), ('cantrip', 'Druidcraft'), #('ritual', 'Speak_with_Animals'), #('ritual', 'Water_Breathing'), ('ritual', 'Water_Walk'), ('1_lvl', 'Thunderwave'), ('1_lvl', 'Goodberry'), #('1_lvl', 'Cure_Wounds'), ('1_lvl', 'Healing_Word'), ('2_lvl', 'Heat_Metal'), ('2_lvl', 'Flame_Blade'), ('2_lvl', 'Spike_Growth'), ('3_lvl', 'Dispel_Magic'), ('3_lvl', 'Wind_Wall'), ('3_lvl', 'Conjure_Animals'), ('4_lvl', 'Conjure_Woodlands_Beings'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Wild_Shape_Form':'Brown Bear (CR 1)', #'Wild_Shape_Form':'Giant Octopus (CR 1)', 'Druid_Circle_Moon':True, 'Combat_Wild_Shape':True, 'Wild_Shape_Improvement':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword +1':1, 'Long Spear':1, }, # TODO: -- #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ( ): metadict_chars['Warrior 1 lvl (Vened) ( )'] = { 'level':1, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':1, 'Potion of Bravery':1, 'Potion of Antidote':1, 'Chain Shirt':1, 'Shortsword':1, 'Heavy Shield':1, 'Pike':1, }, } metadict_chars['Warrior 2 lvl (Vened) ( )'] = { 'level':2, 'char_class':'Warrior', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of False Life':1, 'Infusion of Vitality':1, 'Scale Mail':1, 'Shortsword':1, 'Heavy Shield':1, #'Pike':1, 'Long Spear':1, }, } metadict_chars['Warrior 3 lvl (Vened) ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of False Life':1, 'Infusion of Vitality':1, 'Half Plate':1, 'Shortsword':1, 'Heavy Shield':1, #'Pike':1, 'Long Spear':1, }, } metadict_chars['Warrior 4 lvl (Vened) ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of False Life':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Shortsword':1, 'Heavy Shield':1, #'Pike':1, 'Long Spear':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (Vened) ( )'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shortsword':1, 'Heavy Shield':1, #'Pike':1, 'Long Spear':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ( ): metadict_chars['Cleric 2 lvl (Mordodrukow) ( ) ()'] = { # . 'level':2, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Spellcasting':True, 'Spells':[ ('channel', 'Wrath_of_the_Storm'), ('cantrip', 'Mend'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Word_of_Radiance'), ('ritual', 'Detect_Magic'), ('1_lvl', 'Create_or_Destroy_Water'), ('1_lvl', 'Thunderwave'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Bless'), #('1_lvl', 'Shield_of_Faith'), ], 'Tempest_Domain':True, 'Wrath_of_the_Storm':True, 'Channel_Destructive_Wrath':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 2 lvl (Mordodrukow) ( ) ()'] = { 'level':2, 'char_class':'Cleric', 'abilityes_choice':['wisdom','strength','constitution','dexterity'], 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Wrath_of_the_Storm'), ('cantrip', 'Mend'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Spare_the_Dying'), ('ritual', 'Detect_Magic'), ('1_lvl', 'Create_or_Destroy_Water'), ('1_lvl', 'Thunderwave'), ('1_lvl', 'Healing_Word'), #('1_lvl', 'Bless'), ('1_lvl', 'Shield_of_Faith'), ], 'Tempest_Domain':True, 'Wrath_of_the_Storm':True, 'Channel_Destructive_Wrath':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 2 lvl (Mordodrukow) ( )'] = { 'level':2, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Fighting_Style_Defence':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 2 lvl (Mordodrukow) ( )'] = { 'level':2, 'archer_AI':True, 'char_class':'Battlemaster', 'abilityes_choice':['dexterity','constitution','strength'], 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Perception', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Shield':1, 'Scimitar':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Fighter 7 lvl (Mordodrukow) ()'] = { # , 'level':7, 'killer_AI':True, 'archer_AI':True, 'commando_AI':True, 'squad_advantage':True, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':13, 'dexterity':20, 'constitution':18, 'intelligence':10, 'wisdom':18, 'charisma':10, }, 'class_features':{ # TODO: Menacing_Attack. 'Feat_Resilient':'dexterity', 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, 'Parry':True, 'Menacing_Attack':True, 'Precision_Attack':True, 'Extra_Attack':True, 'Spellcasting':True, 'Feat_Magic_Initiate':True, 'Spells':[ ('cantrip', 'Minor_Illusion'), ('cantrip', 'Blade_Ward'), ('1_lvl', 'Hex'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Studded Leather':1, 'Heavy Shield':1, 'Longbow +1':1, 'Scimitar':1, 'Arrow':120, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Cleric 7 lvl (Mordodrukow) ( )'] = { 'level':7, 'killer_AI':True, 'commando_AI':True, 'fireball_AI':True, 'squad_advantage':True, 'char_class':'Cleric', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':10, 'constitution':20, 'intelligence':10, 'wisdom':18, 'charisma':14, }, 'class_features':{ 'Feat_Resilient':'constitution', 'Spellcasting':True, 'Spells':[ ('channel', 'Wrath_of_the_Storm'), ('cantrip', 'Guidance'), ('cantrip', 'Thaumaturgy'), ('cantrip', 'Sacred_Flame'), ('cantrip', 'Word_of_Radiance'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Thunderwave'), ('2_lvl', 'Gust_of_Wind'), ('2_lvl', 'Shatter'), ('2_lvl', 'Aid'), ('2_lvl', 'Hold_Person'), ('2_lvl', 'Spiritual_Weapon'), ('2_lvl', 'Warding_Bond'), #('3_lvl', 'Call_Lightning'), ('3_lvl', 'Sleet_Storm'), ('3_lvl', 'Clairvoyance'), ('3_lvl', 'Dispel_Magic'), ('3_lvl', 'Sending'), ('3_lvl', 'Spirit_Guardians'), ('3_lvl', 'Water_Walk'), ('4_lvl', 'Ice_Storm'), ('4_lvl', 'Control_Water'), ('4_lvl', 'Divination'), ('4_lvl', 'Stone_Shape'), ], 'Tempest_Domain':True, 'Wrath_of_the_Storm':True, 'Channel_Turn_Undead':True, 'Channel_Destructive_Wrath':True, 'Feat_Heavy_Armor_Master':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ # === Strength 'Athletics', # === Intelligence 'Religion', # === Wisdom 'Insight', 'Medicine', 'Perception', # === Charisma 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: +1, . #'Infusion of Vitality':1, 'Potion of Antidote':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword +1':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Warrior 1 lvl (Mordodrukow) ( )'] = { 'level':1, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Dagger':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (Mordodrukow) ( )'] = { 'level':2, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Studded Leather':1, 'Dagger':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (Mordodrukow) ( )'] = { 'level':3, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Scimitar':1, 'Shield':1, 'Longbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (Mordodrukow) ( )'] = { 'level':4, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Shield':1, 'Scimitar':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (Mordodrukow) ( )'] = { 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Shield':1, 'Scimitar':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{}, } #---- # () ( ): metadict_chars['Fighter 1 lvl (Katorjnik) ( )'] = { # , . 'level':1, 'char_class':'Fighter', 'abilityes_choice':['strength','charisma','constitution','wisdom'], 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ # Feat_Mounted_Combatant: 'Feat_Inspiring_Leader':True, 'Feat_Mounted_Combatant':True, 'Fighting_Style_Protection':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Splint Armor':1, 'Shield':1, 'Longsword':1, 'Lance':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ }, } metadict_chars['Fighter 2 lvl (Katorjnik) ( )'] = { # , . 'level':2, 'char_class':'Fighter', 'abilityes_choice':['strength','charisma','constitution','wisdom'], 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ # Feat_Mounted_Combatant: 'Feat_Inspiring_Leader':True, 'Feat_Mounted_Combatant':True, 'Fighting_Style_Protection':True, 'Second_Wind':True, 'Action_Surge':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword':1, 'Lance':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } metadict_chars['Fighter 7 lvl (Katorjnik) ( )'] = { 'level':7, 'char_class':'Fighter', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':20, 'dexterity':10, 'constitution':14, 'intelligence':14, 'wisdom':18, 'charisma':16, }, 'class_features':{ 'Feat_Inspiring_Leader':True, 'Feat_Mounted_Combatant':True, 'Fighting_Style_Protection':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Champion':True, 'Champion_Improved_Critical':True, 'Feat_Heavy_Armor_Master':True, 'Extra_Attack':True, 'Remarkable_Athlete':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Infusion of Regeneration':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor':1, 'Heavy Shield':1, 'Sword of Life-Stealing':1, #'Longsword +1':1, 'Lance':1, 'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Horse Scale Mail':1, }, } #---- # () ( ): metadict_chars['Warrior 1 lvl (Katorjnik) ()'] = { # 2 , ( ). 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':7, }, } metadict_chars['Warrior 2 lvl (Katorjnik) () ()'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Chain Shirt':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':7, }, } metadict_chars['Warrior 2 lvl (Katorjnik) ()'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Scale Mail':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':2, }, } metadict_chars['Warrior 3 lvl (Katorjnik) ()'] = { # (, ) 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':7, }, } metadict_chars['Warrior 4 lvl (Katorjnik) ()'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':7, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (Katorjnik) ()'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', #'carefull_AI':True, 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':3, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ( '): metadict_chars['Ranger 2 lvl (Gogan) ( )'] = { 'level':2, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['sea'], 'Spellcasting':True, 'Spells':[ ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Hail_of_Thorns'), ], 'Fighting_Style_Archery':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':5, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Infusion of Longstrider':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 7 lvl (Gogan) ( -)'] = { 'level':7, 'brave_AI':True, 'archer_AI':True, #'killer_AI':True, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':11, 'dexterity':20, 'constitution':14, 'intelligence':14, 'wisdom':16, 'charisma':17, }, 'class_features':{ # TODO: Hunter_Steel_Will -- 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans', 'sea_monsters'], 'Natural_Explorer':['sea', 'coast'], 'Spellcasting':True, 'Spells':[ # TODO: Spike_Growth ('ritual', 'Animal_Messenger'), ('1_lvl', 'Goodberry'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Hail_of_Thorns'), ('2_lvl', 'Pass_Without_Trace'), #('2_lvl', 'Spike_Growth'), ], 'Fighting_Style_Archery':True, 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Horde_Breaker':True, 'Hunter_Steel_Will':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':15, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Infusion of Longstrider':1, 'Rune of Shielding':1, 'Studded Leather':1, 'Shield':1, 'Scimitar':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () ( '): metadict_chars['Warrior 1 lvl (Gogan) ( )'] = { 'level':1, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl (Gogan) ( -)'] = { 'level':2, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Scale Mail':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl (Gogan) ( -)'] = { 'level':3, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 4 lvl (Gogan) ( -)'] = { 'level':4, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (Gogan) ( -)'] = { 'level':5, #'volley_AI':True, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Rapier':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ('): metadict_chars['Warlock 1 lvl ( \')'] = { 'level':1, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Create_Bonfire'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Hex'), ], 'Dark_One\'s_Blessing':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Horseclaw', 'equipment_mount':{ }, } metadict_chars['Warlock 5 lvl (\')'] = { # : Invocation_Mask_of_Many_Faces # : Feat_Elemental_Adept 'level':5, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':10, 'dexterity':18, 'constitution':14, 'intelligence':16, 'wisdom':8, 'charisma':18, }, 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ # Unseen_Servant . . # Burning_Hands . # TODO: Green_Flame_Blade. ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Minor_Illusion'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('3_lvl', 'Burning_Hands'), ('3_lvl', 'Invisibility'), ('3_lvl', 'Suggestion'), ('3_lvl', 'Earthbind'), ('3_lvl', 'Fireball'), ('3_lvl', 'Fly'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Eldritch_Spear':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Mask_of_Many_Faces':True, 'Pact_Boon':True, 'Pact_of_the_Blade':True, 'Feat_Elemental_Adept':'fire', }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # -: # , +1. 'Goodberry':30, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shortsword +1':1, 'Shortbow +1':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Horseclaw', 'equipment_mount':{ }, } #---- # () ('): metadict_chars['Warlock 1 lvl ( \')'] = { 'level':1, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Create_Bonfire'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Hex'), ], 'Dark_One\'s_Blessing':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Horseclaw', 'equipment_mount':{ }, } metadict_chars['Warlock 5 lvl (\')'] = { # : Invocation_Eldritch_Spear. # : Feat_Inspiring_Leader. # Dancing_Lights Message. 'level':5, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':10, 'dexterity':16, 'constitution':12, 'intelligence':14, 'wisdom':16, 'charisma':18, }, 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Dancing_Lights'), ('cantrip', 'Message'), ('ritual', 'Detect_Magic'), ('ritual', 'Identify'), ('3_lvl', 'Charm_Person'), ('3_lvl', 'Hex'), ('3_lvl', 'Burning_Hands'), ('3_lvl', 'Summon_Lesser_Demons'), ('3_lvl', 'Fly'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Invocation_Book_of_Ancient_Secrets':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':30, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, 'Shortbow +1':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Horseclaw', 'equipment_mount':{ }, } #---- # () (): metadict_chars['Ranger 1 lvl ( )'] = { 'level':1, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Ranger 5 lvl ( -)'] = { 'level':5, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':18, 'constitution':16, 'intelligence':8, 'wisdom':12, 'charisma':14, }, 'class_features':{ 'Feat_Sharpshooter':True, 'Favored_Enemy':['humans'], 'Natural_Explorer':['forest'], 'Spellcasting':True, 'Spells':[ ('ritual', 'Animal_Messenger'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Find_Traps'), ('2_lvl', 'Spike_Growth'), ], 'Fighting_Style_Archery':True, 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Horde_Breaker':True, 'Feat_Great_Weapon_Master':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Longbow +1':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Paladin 1 lvl ( )'] = { 'level':1, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Tough':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Divine_Sense':True, 'Lay_on_Hands':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Splint Armor':1, 'Heavy Shield':1, 'Flait':1, 'Long Spear':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Paladin 5 lvl ( )'] = { 'level':5, 'char_class':'Paladin', 'hit_dice':'1d10', 'behavior':'commander', #'fearless_AI':True, 'killer_AI':True, 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':10, 'constitution':18, 'intelligence':10, 'wisdom':12, 'charisma':18, }, 'class_features':{ 'Feat_Tough':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+3, }, 'Divine_Sense':True, 'Lay_on_Hands':True, 'Fighting_Style_Defence':True, 'Divine_Smite':True, 'Spellcasting':True, 'Spells':[ ('channel', 'Sacred_Weapon'), ('1_lvl', 'Divine_Smite'), ('2_lvl', 'Divine_Smite'), ('1_lvl', 'Bless'), ('1_lvl', 'Heroism'), ('1_lvl', 'Shield_of_Faith'), ('1_lvl', 'Protection_from_Evil_and_Good'), ('1_lvl', 'Sanctuary'), ('1_lvl', 'Command'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Zone_of_Truth'), ('2_lvl', 'Find_Steed'), ], 'Divine_Health':True, 'Oath_of_Devotion':True, 'Channel_Turn_The_Unholy':True, 'Channel_Sacred_Weapon':True, 'Extra_Attack':True, }, 'race':'Human-hero-big', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':2, 'Rune of Absorbtion':1, 'Splint Armor':1, 'Heavy Shield':1, 'Flait +1':1, 'Long Spear':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ('): metadict_chars['Fighter 1 lvl ( \')'] = { # , " " . 'level':1, 'char_class':'Battlemaster', 'abilityes_choice':['dexterity','constitution','strength','charisma'], 'hit_dice':'1d10', 'behavior':'archer', 'class_features':{ 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ 'Perception', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Armor':1, 'Shield':1, 'Shortsword':1, 'Longbow':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Fighter 5 lvl (\')'] = { # - 'level':5, 'char_class':'Battlemaster', 'abilityes_choice':['dexterity','constitution','strength','charisma'], 'hit_dice':'1d10', 'behavior':'commander', 'killer_AI':True, 'hitpoints_medial':True, 'abilityes':{ 'strength':12, 'dexterity':20, 'constitution':12, 'intelligence':16, 'wisdom':10, 'charisma':16, }, 'class_features':{ 'Feat_Sharpshooter':True, 'Fighting_Style_Archery':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Champion':True, 'Champion_Improved_Critical':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shield':1, 'Scimitar +1':1, 'Longbow +1':1, 'Arrow':40, }, 'mount_combat':True, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () (-): metadict_chars['Druid 1 lvl ( -)'] = { # " " " " 'level':1, 'water_walk':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ # -- _ + _: # Goodberry -- 2 = 20 . 20 2 lvl = 600 . ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), #('cantrip', 'Magic_Stone'), #('ritual', 'Speak_with_Animals'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Entangle'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Goodberry'), ], 'Druidic_Language':True, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Armor':1, 'Heavy Shield':1, 'Club':1, 'Sling real':1, 'Sling Bullet':10, }, 'mount_combat':True, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Druid 5 lvl (- )'] = { # , . 'level':5, 'fireball_AI':True, 'water_walk':True, 'char_class':'Druid', 'hit_dice':'1d8', 'behavior':'commander', #'fearless_AI':True, 'hitpoints_medial':True, 'abilityes':{ 'strength':10, 'dexterity':14, 'constitution':14, 'intelligence':16, 'wisdom':18, 'charisma':14, }, 'class_features':{ 'Feat_Healer':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Druidcraft'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Guidance'), ('ritual', 'Speak_with_Animals'), ('ritual', 'Water_Breathing'), ('ritual', 'Water_Walk'), ('1_lvl', 'Entangle'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Healing_Spirit'), ('3_lvl', 'Conjure_Animals'), ('3_lvl', 'Plant_Growth'), ], 'Druidic_Language':True, 'Wild_Shape':True, 'Druid_Circle_Forest':True, 'Natural_Recovery':True, 'Wild_Shape_Improvement':True, 'Ability_Score_Improvement':{ 'wisdom':+2, }, }, 'race':'Human-hero', 'weapon_skill':['simple','Scimitar'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':30, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Heavy Shield':1, 'Club':1, 'Sling real':1, 'Sling Bullet':10, }, 'mount_combat':True, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () ( '): metadict_chars['Commoner 1 lvl ()'] = { # . , . 'level':1, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Primevial-medium', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Mace':1, 'Shield':1, 'Javelin':6, }, } metadict_chars['Commoner 1 lvl (-)'] = { 'level':2, 'char_class':'Commoner', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Primevial-medium', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Mace':1, 'Shield':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl ( \')'] = { # . 'level':3, #'fearless_AI':True, 'seeker_AI':True, 'killer_AI':True, 'char_class':'Warrior-officer', 'behavior':'commander', 'class_features':{ 'Regeneration':3, }, 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':14, 'constitution':18, 'intelligence':10, 'wisdom':12, 'charisma':16, }, 'hit_dice':'1d10', 'race':'Primevial-large', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Battleaxe':1, 'Shield':1, 'Javelin':6, }, } #---- # () ( ): metadict_chars['Wizard 4 lvl ( )'] = { 'level':4, 'archer_AI':True, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Feat_Resilient':'constitution', 'Ability_Score_Improvement':{ 'constitution':+1, 'intelligence':+2, }, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # _ + _ (8 ) ('cantrip', 'Prestidigitation'), ('cantrip', 'Shape_Water'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), # : ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('ritual', 'Find_Familiar'), ('ritual', 'Comprehend_Languages'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Warding_Wind'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'See_Invisibility'), #('2_lvl', 'Dragon_Breath'), #('2_lvl', 'Suggestion'), #('2_lvl', 'Shatter'), ], # TODO: # - Grim_Harvest -- x2 , x3, . 'School_of_Necromancy':True, 'Grim_Harvest':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 12 lvl ( )'] = { # Wizard 1 lvl (otherworld mage-disciple) sum:100 STR:16 DEX:17 CON:17 INT:19 WIS:17 CHA:14 # "" (Contingency) Otiluke_Resilent_Sphere, Wall_of_Force. # "Feat_Alert", -- . "Feat_Keen_Mind" -- . 'level':12, 'fireball_AI':True, 'disengage_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':16, 'dexterity':17, 'constitution':17, 'intelligence':19, 'wisdom':17, 'charisma':14, }, 'class_features':{ 'Feat_Alert':True, 'Feat_Keen_Mind':True, 'Feat_Resilient':'constitution', 'Ability_Score_Improvement':{ 'dexterity':+1, 'constitution':+1, 'intelligence':+1, 'wisdom':+1, }, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # _ + _ (17 ) ('cantrip', 'Prestidigitation'), ('cantrip', 'Shape_Water'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), ('cantrip', 'Minor_Illusion'), # : ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('ritual', 'Find_Familiar'), ('ritual', 'Comprehend_Languages'), ('ritual', 'Feign_Death'), ('ritual', 'Water_Breathing'), ('ritual', 'Leomund_Tiny_Hut'), ('ritual', 'Rary_Telepathic_Bond'), ('ritual', 'Contact_Other_Plane'), # : ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Warding_Wind'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'See_Invisibility'), #('2_lvl', 'Dragon_Breath'), #('2_lvl', 'Suggestion'), #('2_lvl', 'Shatter'), # (9 ): ('3_lvl', 'Counterspell'), ('3_lvl', 'Fireball'), ('3_lvl', 'Sending'), ('4_lvl', 'Fabricate'), ('4_lvl', 'Dimension_Door'), ('5_lvl', 'Teleportation_Circle'), ('5_lvl', 'Animated_Objects'), ('5_lvl', 'Cone_of_Cold'), ('6_lvl', 'Soul_Cage'), # ---- #('3_lvl', 'Blink'), #('3_lvl', 'Animate_Dead'), #('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Vampiric_Touch'), #('3_lvl', 'Melf_Minute_Meteors'), # ---- #('4_lvl', 'Stoneskin'), #('4_lvl', 'Arcane_Eye'), #('4_lvl', 'Control_Water'), #('4_lvl', 'Leomund_Secret_Chest'), #('4_lvl', 'Otiluke_Resilent_Sphere'), #('4_lvl', 'Mordenkainen_Private_Sanctum'), #('4_lvl', 'Conjure_Minor_Elementals'), #('4_lvl', 'Sickening_Radiance'), #('4_lvl', 'Ice_Storm'), #('4_lvl', 'Banishment'), # ---- #('5_lvl', 'Enervation'), #('5_lvl', 'Cone_of_Cold'), #('5_lvl', 'Danse_Macabre'), #('5_lvl', 'Negative_Energy_Flood'), #('5_lvl', 'Conjure_Elemental'), #('5_lvl', 'Wall_of_Force'), #('5_lvl', 'Cloudkill'), #('5_lvl', 'Passwall'), #('5_lvl', 'Scrying'), # ---- #('6_lvl', 'Create_Undead'), #('6_lvl', 'Circle_of_Death'), #('6_lvl', 'Programmed_Illusion'), #('6_lvl', 'Arcane_Gate'), #('6_lvl', 'True_Seeing'), #('6_lvl', 'Magic_Jar'), #('6_lvl', 'Contingency'), #('6_lvl', 'Create_Undead'), ], # TODO: # - Grim_Harvest -- x2 , x3, . # - Undead_Thralls -- 2 "Animate_Dead", +_ max_hp, +_ . # - Inured_to_Undeath -- , . 'School_of_Necromancy':True, 'Grim_Harvest':True, 'Undead_Thralls':True, 'Inured_to_Undeath':True, 'resistance':['necrotic_energy'], }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: 3-4 # - Rune of Flying # - Rune of Stoneskin # - Rune of Greater Invisibility 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 12 lvl ( )'] = { # "Feat_Alert", -- . "Feat_Keen_Mind" -- . # Rary_Telepathic_Bond. 'level':12, 'simulacrum':True, 'fireball_AI':True, 'disengage_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':16, 'dexterity':17, 'constitution':17, 'intelligence':19, 'wisdom':17, 'charisma':14, }, 'class_features':{ 'Feat_Alert':True, 'Feat_Keen_Mind':True, 'Feat_Resilient':'constitution', 'Ability_Score_Improvement':{ 'dexterity':+1, 'constitution':+1, 'intelligence':+1, 'wisdom':+1, }, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # _ + _ (17 ) # https://www.dandwiki.com/wiki/5e_SRD:Wizard ('cantrip', 'Prestidigitation'), ('cantrip', 'Shape_Water'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), ('cantrip', 'Minor_Illusion'), # : ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('ritual', 'Water_Breathing'), ('ritual', 'Leomund_Tiny_Hut'), ('ritual', 'Rary_Telepathic_Bond'), ('1_lvl', 'Shield'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Mirror_Image'), ('2_lvl', 'Knock'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Dispel_Magic'), ('3_lvl', 'Enemies_Abound'), ('3_lvl', 'Blink'), ('4_lvl', 'Arcane_Eye'), ('4_lvl', 'Dimension_Door'), # ('4_lvl', 'Sickening_Radiance'), ('5_lvl', 'Teleportation_Circle'), ('5_lvl', 'Conjure_Elemental'), ('5_lvl', 'Danse_Macabre'), ('5_lvl', 'Passwall'), #('6_lvl', 'Circle_of_Death'), ('6_lvl', 'Arcane_Gate'), ], 'School_of_Necromancy':True, #'Grim_Harvest':True, 'Undead_Thralls':True, 'Inured_to_Undeath':True, 'resistance':['necrotic_energy'], }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # . 'Rune of Absorbtion':2, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () ( ): metadict_chars['Warrior 4 lvl ( )'] = { # . 'level':4, 'sneak_AI':True, 'killer_AI':True, 'fearless_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'immunity':['poison','poisoned'], 'Fighting_Style_Blind_Fighting':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Sword_Burst'), ('cantrip', 'Mold_Earth'), #('cantrip', 'Frostbite'), #('cantrip', 'Fire_Bolt'), #('cantrip', 'Create_Bonfire'), ('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Magic_Missile'), ], }, 'race':'Human-hero-undead', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : #'Infusion of Vitality':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor':1, 'Heavy Shield':1, 'Long Spear':1, 'Longsword':1, 'Plumbata':12, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl ( - )'] = { 'level':5, 'sneak_AI':True, 'killer_AI':True, 'fearless_AI':True, #'carefull_AI':True, #'no_grappler_AI':True, #'fearless_AI':True, #'seeker_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'immunity':['poison','poisoned'], 'Fighting_Style_Blind_Fighting':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Sword_Burst'), ('cantrip', 'Mold_Earth'), #('cantrip', 'Frostbite'), #('cantrip', 'Fire_Bolt'), #('cantrip', 'Create_Bonfire'), #('cantrip', 'Message'), ('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Magic_Missile'), ], 'Extra_Attack':True, }, 'race':'Human-hero-undead', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : #'Infusion of Vitality':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Plate Armor':1, 'Heavy Shield':1, 'Long Spear':1, 'Longsword':1, 'Plumbata':12, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () ( ): metadict_chars['Warrior 1 lvl ( )'] = { # , . 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Hide Armor':1, 'Shield':1, 'Longsword':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 2 lvl ( )'] = { # - 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Hide Armor':1, 'Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Glaive':1, 'Javelin':6, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Glaive':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl ( )'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Great_Weapon_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Glaive':1, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () (): metadict_chars['Barbarian 9 lvl ( )'] = { # Barbarian 1 lvl (thracian slayer-dogface) sum:108 STR:19 DEX:18 CON:19 INT:18 WIS:16 CHA:18 'level':9, 'hunter_AI':True, 'fearless_AI':True, 'no_grappler_AI':True, 'squad_advantage':True, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':19, 'dexterity':18, 'constitution':19, 'intelligence':16, 'wisdom':18, 'charisma':18, }, 'class_features':{ # TODO: # 4. Mindless_Rage ( ) 'Feat_Great_Weapon_Master':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, 'Primal_Path_Berserker':True, 'Berserker_Frenzy':True, 'Fast_Movement':True, 'Feral_Instinct':True, 'Mindless_Rage':True, 'Extra_Attack':True, 'Brutal_Critical':True, 'Ability_Score_Improvement':{ 'dexterity':+2, 'strength':+1, 'constitution':+1, }, }, 'race':'Human-hero-big', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, #'Sword of Life-Stealing':1, #'Sword of Sharpness':1, 'Sword of the Past +2':1, }, #'mount_combat':False, #'mount_type':'Warhorse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Fighter 4 lvl ( )'] = { 'level':4, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'class_features':{ 'Feat_Mounted_Combatant':True, #'Feat_Sentinel':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, }, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Message'), ('cantrip', 'Green_Flame_Blade'), ('ritual', 'Alarm'), ('1_lvl', 'Shield'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), #('1_lvl', 'Fog_Cloud'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Heroism':1, 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Plate Armor':1, 'Heavy Shield':1, 'Longsword +1':1, 'Lance':1, #'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Rune of Absorbtion':1, 'Infusion of Regeneration':1, 'Horse Scale Mail':1, }, } metadict_chars['Fighter 13 lvl ( )'] = { # Fighter 1 lvl (legionary sentinel-battler) sum:103 STR:19 DEX:17 CON:18 INT:16 WIS:16 CHA:17 # " " (Detect_Thoughts), . 'level':13, 'fearless_AI':True, #'predator_AI':True, 'hunter_AI':True, 'no_grappler_AI':True, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':19, 'dexterity':17, 'constitution':18, 'intelligence':16, 'wisdom':16, 'charisma':17, }, 'class_features':{ # TODO: # - Eldritch_Strike -- = . . 'Feat_Mounted_Combatant':True, 'Feat_War_Caster':True, #'Feat_Sentinel':True, 'Feat_Shield_Master':True, 'Feat_Heavy_Armor_Master':True, 'Ability_Score_Improvement':{ 'strength':+1, 'intelligence':+4, }, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ # 9 13 lvl (2 evocation abjuration) ('cantrip', 'Message'), ('cantrip', 'Green_Flame_Blade'), ('cantrip', 'Blade_Ward'), #('cantrip', 'Prestidigitation'), ('ritual', 'Alarm'), ('1_lvl', 'Shield'), #('2_lvl', 'Shield'), #('1_lvl', 'Magic_Missile'), #('1_lvl', 'Fog_Cloud'), ('2_lvl', 'Blur'), ('3_lvl', 'Blur'), ('2_lvl', 'Detect_Thoughts'), ('2_lvl', 'Warding_Wind'), ('2_lvl', 'Gust_of_Wind'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Sending'), ], 'Extra_Attack':True, 'Indomitable':True, 'War_Magic':True, 'Eldritch_Strike':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Heroism':1, 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Plate Armor +1':1, 'Heavy Shield +1':1, #'Sword of Flame Tongue':1, 'Longsword +2':1, 'Lance':1, #'Pilum':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Rune of Absorbtion':1, 'Infusion of Regeneration':1, 'Horse Scale Mail':1, }, } #---- # () (): metadict_chars['Barbarian 2 lvl ( )'] = { 'level':2, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':2, 'Scale Mail':1, 'Shield':1, 'Longsword':1, 'Lance':1, 'Javelin':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Scale Mail':1, }, } metadict_chars['Barbarian 5 lvl ( )'] = { 'level':5, 'char_class':'Barbarian', 'hit_dice':'1d12', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':18, 'dexterity':14, 'constitution':18, 'intelligence':10, 'wisdom':12, 'charisma':16, }, 'class_features':{ 'Feat_Alert':True, 'Feat_Mounted_Combatant':True, 'Unarmored_Defense':True, 'Rage':True, 'Reckless_Attack':True, 'Danger_Sense':True, 'Primal_Path_Berserker':True, 'Berserker_Frenzy':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':3, 'Half Plate':1, 'Shield':1, 'Longsword +1':1, 'Lance':1, 'Javelin':6, }, 'mount_combat':True, 'mount_type':'Warhorse', 'equipment_mount':{ 'Scale Mail':1, }, } #---- # () ( ): metadict_chars['Warlock 3 lvl ( )'] = { # -- . -. 'level':3, 'fireball_AI':True, 'disengage_AI':True, #'archer_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Resilient':'constitution', 'Ability_Score_Improvement':{ 'constitution':+1, }, #'Feat_Spellsniper':True, #'Feat_Elemental_Adept':'fire', 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ # Feat_Spellsniper ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Message'), ('ritual', 'Find_Familiar'), ('2_lvl', 'Armor_of_Agathys'), ('2_lvl', 'Flaming_Sphere'), ('2_lvl', 'Invisibility'), #('2_lvl', 'Shatter'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Pact_Boon':True, 'Pact_of_the_Chain':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, 'Poison Arrow':40, 'Poison Blade':10, }, #'mount_combat':True, #'mount_type':'Horseclaw', #'equipment_mount':{ # 'Horse Scale Mail':1, # }, } metadict_chars['Warlock 11 lvl ( )'] = { # Warlock 1 lvl (otherworld seeker-follower) sum:97 STR:15 DEX:18 CON:16 INT:15 WIS:15 CHA:18 # 18 / " " (Dream) "" (Scrying) # " " (Speak_with_Dead). # () . # ( ): 'level':11, 'fireball_AI':True, 'disengage_AI':True, #'archer_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':15, 'dexterity':18, 'constitution':16, 'intelligence':15, 'wisdom':15, 'charisma':18, }, 'class_features':{ 'Feat_Resilient':'constitution', 'Ability_Score_Improvement':{ 'constitution':+1, 'charisma':+2, }, #'Feat_Spellsniper':True, #'Feat_Elemental_Adept':'fire', 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ # Feat_Spellsniper ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Message'), # Pact_of_the_Chain: ('ritual', 'Find_Familiar'), # (): ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Comprehend_Languages'), ('ritual', 'Water_Breathing'), ('ritual', 'Leomund_Tiny_Hut'), ('ritual', 'Rary_Telepathic_Bond'), ('ritual', 'Contact_Other_Plane'), # : ('5_lvl', 'Armor_of_Agathys'), ('5_lvl', 'Flaming_Sphere'), ('5_lvl', 'Invisibility'), #('5_lvl', 'Shatter'), # : ('5_lvl', 'Dream'), ('5_lvl', 'Scrying'), ('5_lvl', 'Counterspell'), #('5_lvl', 'Wall_of_Fire'), ('5_lvl', 'Synaptic_Static'), ('5_lvl', 'Summon_Greater_Demon'), ('5_lvl', 'Dimension_Door'), ('5_lvl', 'Banishment'), # Invocation_Minios_of_Chaos: ('5_lvl', 'Conjure_Elemental'), # : ('6_lvl', 'True_Seeing'), ], # TODO: # - , +1d10 / . 1 /.. # - , . /. 'Dark_One\'s_Blessing':True, 'Dark_One\'s_Own_Luck':True, 'Fiendish_Resilience':True, 'resistance':['piercing'], # 11 lvl, 5 : 'Eldritch_Invocations':True, 'Invocation_Eldritch_Spear':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Minios_of_Chaos':True, 'Invocation_Voice_of_the_Chain_Master':True, 'Invocation_Whispers_of_the_Grave':True, # : 'Pact_Boon':True, 'Pact_of_the_Chain':True, # 8 lvl: 'Feat_Ritual_Caster':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : # d6 | | # ----- | ------------------------- | ------------------------------------------------------ # 1 | * | . 1 / # 2 | * | . , , 120 . # 3 | * | 1-3 lvl. . # 4 | | . . # 5 | | 30 / # 6 | | , . # , . #'Rune of Absorbtion':1, #'Rune of Shielding':1, 'Mage_Armor':1, 'Shortsword +1':1, 'Shortbow +1':1, 'Arrow':40, 'Poison Arrow':40, 'Poison Blade':10, }, # TODO: : #'mount_combat':True, #'mount_type':'Horseclaw', #'equipment_mount':{ # 'Horse Scale Mail':1, # }, } #---- # () ( ): metadict_chars['Warrior 1 lvl ()'] = { # . " ", x2 . 'level':1, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Chain Shirt':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Shortbow':1, 'Arrow':30, 'Poison Arrow':10, 'Poison Blade':10, }, } metadict_chars['Warrior 2 lvl (-)'] = { 'level':2, 'char_class':'Warrior', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Shortbow':1, 'Arrow':30, 'Poison Arrow':10, 'Poison Blade':10, }, } metadict_chars['Warrior 3 lvl (-)'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Shortbow':1, 'Arrow':30, 'Poison Arrow':10, 'Poison Blade':10, }, } metadict_chars['Warrior 4 lvl (-)'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Shortbow':1, 'Poison Arrow':40, 'Poison Blade':10, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl (-)'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Shortbow':1, 'Poison Arrow':40, 'Poison Blade':10, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () ( ): metadict_chars['Warrior 1 lvl ( )'] = { # " ", . # . . 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':8, 'Sleep Blade':10, }, } metadict_chars['Warrior 2 lvl ( )'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':5, 'Sleep Blade':10, }, } metadict_chars['Warrior 3 lvl ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':5, 'Sleep Blade':10, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':5, 'Sleep Blade':10, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } metadict_chars['Warrior 5 lvl ( )'] = { 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Javelin':5, 'Sleep Blade':10, }, 'mount_combat':False, 'mount_type':'Riding Horse', 'equipment_mount':{ }, } #---- # () ( ): metadict_chars['Sorcerer 3 lvl (otherworld wildfire-enchanter)'] = { 'level':3, 'fireball_AI':True, 'disengage_AI':True, 'char_class':'Sorcerer', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Feat_Elemental_Adept':'fire', 'Spellcasting':True, 'Spells':[ ('cantrip', 'Prestidigitation'), ('cantrip', 'Control_Flames'), ('cantrip', 'Create_Bonfire'), ('cantrip', 'Fire_Bolt'), ('1_lvl', 'Shield'), ('1_lvl', 'Burning_Hands'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'Flaming_Sphere'), ], 'Font_of_Magic':True, 'Metamagic':True, #'Metamagic_Subtle_Spell':True, 'Metamagic_Extended_Spell':True, 'Metamagic_Distant_Spell':True, }, 'race':'Primevial-large', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Dagger':1, }, } #---- # () ( ): metadict_chars['Warrior 1 lvl (-)'] = { # 12 AC. . . 'level':1, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Primevial-medium', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Shield':1, 'Battleaxe':1, 'Long Spear':1, 'Javelin':6, }, } metadict_chars['Warrior 2 lvl (-)'] = { # - . # . 'level':2, 'char_class':'Warrior', 'behavior':'elite_warrior', 'class_features':{ 'resistance':['slashing','piercing','bludgeoning'], 'vultenability':['radiant'], }, 'hit_dice':'1d8', 'race':'Primevial-medium', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Heavy Shield':1, 'Battleaxe':1, 'Long Spear':1, 'Javelin':6, }, } metadict_chars['Warrior 3 lvl (-)'] = { 'level':3, 'brave_AI':True, 'killer_AI':True, 'carefull_AI':True, 'char_class':'Warrior-officer', 'behavior':'commander', 'class_features':{ 'resistance':['slashing','piercing','bludgeoning'], 'vultenability':['radiant'], }, 'hit_dice':'1d10', 'race':'Primevial-large', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Heavy Shield':1, 'Battleaxe':1, 'Long Spear':1, 'Javelin':6, }, } metadict_chars['Warrior 4 lvl (-)'] = { 'level':4, 'brave_AI':True, 'killer_AI':True, 'carefull_AI':True, 'char_class':'Warrior-officer', 'behavior':'commander', 'class_features':{ 'resistance':['slashing','piercing','bludgeoning'], 'vultenability':['radiant'], }, 'hit_dice':'1d10', 'race':'Primevial-large', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Heavy Shield':1, 'Battleaxe':1, 'Long Spear':1, 'Javelin':6, }, } metadict_chars['Warrior 5 lvl (-)'] = { 'level':5, 'brave_AI':True, 'killer_AI':True, 'carefull_AI':True, 'char_class':'Warrior-officer', 'behavior':'commander', 'class_features':{ 'resistance':['slashing','piercing','bludgeoning'], 'vultenability':['radiant'], }, 'hit_dice':'1d10', 'race':'Primevial-large', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Infusion of Regeneration':1, 'Infusion of Heroism':1, 'Rune of Absorbtion':1, 'Half Plate':1, 'Heavy Shield':1, 'Battleaxe':1, 'Long Spear':1, 'Javelin':6, }, } #---- # () ( ): metadict_chars['Warrior 1 lvl ( )'] = { 'level':1, 'water_walk':True, 'char_class':'Warrior', 'behavior':'warrior', 'hit_dice':'1d8', 'race':'Humanoid-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Poison Blade':10, }, } metadict_chars['Warrior 2 lvl (- )'] = { 'level':2, 'water_walk':True, 'char_class':'Warrior', 'behavior':'elite_warrior', 'hit_dice':'1d8', 'class_features':{ 'Fighting_Style_Dueling':True, }, 'race':'Humanoid-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Scale Mail':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Poison Blade':10, }, } metadict_chars['Warrior 3 lvl (- )'] = { 'level':3, 'water_walk':True, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Dueling':True, }, 'race':'Humanoid-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Poison Blade':10, }, } metadict_chars['Warrior 4 lvl (- )'] = { 'level':4, #'close_order_AI':True, 'water_walk':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, }, 'race':'Humanoid-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Poison Blade':10, }, } metadict_chars['Warrior 5 lvl (- )'] = { 'level':5, #'close_order_AI':True, 'water_walk':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Dueling':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Humanoid-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Long Spear':1, 'Poison Blade':10, }, } #---- # () (): metadict_chars['Monk 3 lvl ( )'] = { # 'level':3, 'grappler_AI':True, 'carefull_AI':True, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Shadow_Arts':True, 'Spells':[ ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Darkvision'), #('2_lvl', 'Darkness'), ('2_lvl', 'Silence'), ], }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Shortsword +1':1, }, } metadict_chars['Monk 9 lvl ( )'] = { # # Monk 1 lvl (city windsong-apprentice) sum:104 STR:17 DEX:19 CON:17 INT:16 WIS:18 CHA:17 'level':9, 'grappler_AI':True, 'carefull_AI':True, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':17, 'dexterity':19, 'constitution':17, 'intelligence':16, 'wisdom':18, 'charisma':17, }, 'class_features':{ # TODO: # 2. Shadow_Step -- 60 . # ------ # 5. Stillness_of_Mind -- . # 6. Unarmored_Movement_improvement -- 'Feat_Defensive_Duelist':True, 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Shadow_Arts':True, 'Spells':[ ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Darkvision'), #('2_lvl', 'Darkness'), ('2_lvl', 'Silence'), ], 'Slow_Fall':True, 'Extra_Attack':True, 'Stunning_Strike':True, 'Ability_Score_Improvement':{ 'wisdom':+2, 'dexterity':+1, 'constitution':+1, }, 'Ki_Empowered_Strikes':True, 'Shadow_Step':True, 'Evasion':True, 'Stillness_of_Mind':True, 'Unarmored_Movement_improvement':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: # 2. . # 3. 3-4 . # 4000 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Bracers of Defence':1, 'Rune of Shielding':1, #'Staff of Striking +3':1, 'Shortsword +1':1, }, } #---- # () (): metadict_chars['Wizard 3 lvl ( )'] = { 'level':3, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'archer', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Friends'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), ('ritual', 'Detect_Magic'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Sleep'), ('2_lvl', 'Blur'), ('2_lvl', 'Suggestion'), ('2_lvl', 'Hold_Person'), ('2_lvl', 'Invisibility'), ], 'School_of_Enchantment':True, 'Hypnotic_Gaze':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 9 lvl ()'] = { # , , . # Wizard 2 lvl (city cat-weaver) sum:101 STR:14 DEX:19 CON:17 INT:19 WIS:16 CHA:16 # Feat_Observant +5 . . 'level':9, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':14, 'dexterity':21, 'constitution':18, 'intelligence':20, 'wisdom':18, 'charisma':16, }, 'class_features':{ # TODO: Instinctive_Charm -- , . 'Feat_Resilient':'constitution', 'Feat_Observant':True, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Friends'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), ('ritual', 'Detect_Magic'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Sleep'), #('2_lvl', 'Blur'), ('2_lvl', 'Suggestion'), ('2_lvl', 'Hold_Person'), ('2_lvl', 'Invisibility'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Nondetection'), ('3_lvl', 'Fireball'), ('3_lvl', 'Melf_Minute_Meteors'), #('4_lvl', 'Fear'), ('4_lvl', 'Arcane_Eye'), ('5_lvl', 'Teleportation_Circle'), ('5_lvl', 'Geas'), ], 'School_of_Enchantment':True, 'Hypnotic_Gaze':True, 'Instinctive_Charm':True, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: 3-4 . # . 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, } #---- # () (): metadict_chars['Warrior 1 lvl ( )'] = { 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Heavy Shield':1, 'Shortsword':1, 'Fire Spear':4, 'Holy Blade':10, }, } metadict_chars['Warrior 2 lvl ( )'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Scale Mail':1, 'Heavy Shield':1, 'Shortsword':1, 'Fire Spear':2, 'Holy Blade':10, }, } metadict_chars['Warrior 3 lvl ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Fire Spear':2, 'Holy Blade':10, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, #'rearm_AI':True, 'defence_AI':True, 'carefull_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Heavy Shield':1, 'Shortsword':1, 'Fire Spear':2, 'Holy Blade':10, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl ( )'] = { # , . . 'level':5, #'rearm_AI':True, 'defence_AI':True, 'carefull_AI':True, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Defence':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Half Plate':1, 'Heavy Shield':1, 'Shortsword':1, 'Fire Spear':2, 'Holy Blade':10, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Commoner 1 lvl ( )'] = { # 'level':1, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':militia_pack, 'equipment_weapon':{ 'Leather Armor':1, 'Shield':1, 'Dagger':1, 'Sling real':1, #'Holy Bullet':10, 'Lead Bullet':10, #'Sling Bullet':10, }, } metadict_chars['Commoner 2 lvl ( )'] = { 'level':2, 'char_class':'Commoner', 'behavior':'archer', 'hit_dice':'1d8', 'race':'Human-common', 'weapon_skill':['simple'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Studded Leather':1, 'Shield':1, 'Dagger':1, 'Sling real':1, #'Holy Bullet':10, 'Lead Bullet':10, #'Sling Bullet':10, }, } metadict_chars['Warrior 3 lvl ( )'] = { 'level':3, 'rearm_AI':True, 'volley_AI':True, 'defence_AI':True, 'carefull_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ #'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Sling real':1, #'Holy Bullet':10, 'Lead Bullet':10, #'Sling Bullet':10, }, } #---- # () (): metadict_chars['Bard 2 lvl ( )'] = { # TODO: Jack_of_All_Trades 1/2 . 'level':2, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'abilityes_choice':['charisma','dexterity','constitution'], 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ # 2 lvl -- 5 ('cantrip', 'Message'), ('cantrip', 'Prestidigitation'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Silent_Image'), ('1_lvl', 'Dissonant_Whispers'), #('1_lvl', 'Sleep'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Rapier':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Bard 6 lvl ( )'] = { 'level':6, 'fireball_AI':True, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ # sum:85 STR:10 DEX:16 CON:15 INT:14 WIS:14 CHA:16 'strength':10, 'dexterity':16, 'constitution':15, 'intelligence':14, 'wisdom':14, 'charisma':16, }, 'class_features':{ 'Feat_Inspiring_Leader':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ # 6 lvl -- 9 # TODO: "" (Silence) 2 lvl. . ('cantrip', 'Message'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Dancing_Lights'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Healing_Word'), ('1_lvl', 'Silent_Image'), ('1_lvl', 'Dissonant_Whispers'), #('1_lvl', 'Sleep'), ('2_lvl', 'Shatter'), ('3_lvl', 'Crusaders_Mantle'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Sending'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, 'Expertise':True, 'College_of_Lore':True, 'Bonus_Proficiencies':True, 'Cutting_Words':True, 'Font_of_Inspiration':True, 'Ability_Score_Improvement':{ 'charisma':+2, }, 'Additional_Magical_Secrets':True, 'Countercharm':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'skills':[ # 8 = 2 + 3 + 3 Bonus_Proficiencies # === Intelligence 'Arcana', 'Investigation', 'Religion', # === Wisdom 'Insight', 'Perception', # === Charisma 'Deception', 'Intimidation', 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Heroism':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Rapier +1':1, 'Longbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Warrior 1 lvl ( )'] = { 'level':1, #'archer_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Studded Leather':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 2 lvl (- )'] = { 'level':2, #'archer_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Chain Shirt':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 3 lvl (- )'] = { 'level':3, #'archer_AI':True, 'brave_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, } metadict_chars['Warrior 4 lvl (- )'] = { 'level':4, #'archer_AI':True, 'brave_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl (- )'] = { 'level':5, #'archer_AI':True, 'brave_AI':True, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate':1, 'Shield':1, 'Shortsword':1, 'Crossbow, Heavy':1, 'Crossbow Bolt':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Warlock 2 lvl ( )'] = { 'level':2, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Otherworldly_Patron':'Archfey', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Thunderclap'), ('cantrip', 'Eldritch_Blast'), ('1_lvl', 'Armor_of_Agathys'), ], 'Eldritch_Invocations':True, 'Invocation_Eldritch_Spear':True, }, 'race':'Fourlegged-common', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, #'Infusion of Claws':1, #'Infusion of Barkskin':1, 'Infusion of Regeneration':1, }, } metadict_chars['Warlock 3 lvl ( )'] = { 'level':3, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Otherworldly_Patron':'Archfey', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Thunderclap'), ('cantrip', 'Eldritch_Blast'), ('2_lvl', 'Armor_of_Agathys'), #('2_lvl', 'Invisibility'), #('2_lvl', 'Suggestion'), #('2_lvl', 'Shatter'), #('2_lvl', 'Hex'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Eldritch_Spear':True, 'Invocation_Agonizing_Blast':True, }, 'race':'Fourlegged-common', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, #'Infusion of Claws':1, 'Infusion of Barkskin':1, 'Infusion of Regeneration':1, }, } metadict_chars['Warlock 3 lvl ( )'] = { 'level':3, #'defence_AI':True, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ # TODO: 'Otherworldly_Patron':'Archfey', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Thunderclap'), ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Prestidigitation'), ('2_lvl', 'Armor_of_Agathys'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Suggestion'), #('2_lvl', 'Shatter'), #('2_lvl', 'Hex'), ], 'Dark_One\'s_Blessing':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Eldritch_Spear':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Regeneration':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () ('): metadict_chars['Warlock 2 lvl ( \')'] = { 'level':2, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'archer', 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ ('cantrip', 'Shape_Water'), ('cantrip', 'Eldritch_Blast'), ('1_lvl', 'Charm_Person'), ('1_lvl', 'Armor_of_Agathys'), ('1_lvl', 'Sleep'), ], # TODO: . # - 1 lvl Fey_Presence, / , 10- . 'Fey_Presence':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Mask_of_Many_Faces':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : 'Infusion of Regeneration':1, 'Potion of Antidote':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shortsword':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Horseclaw', #'equipment_mount':{ # 'Horse Scale Mail':1, # }, } metadict_chars['Warlock 6 lvl (\' )'] = { 'level':6, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':10, 'dexterity':16, 'constitution':12, 'intelligence':14, 'wisdom':16, 'charisma':18, }, 'class_features':{ 'Feat_Mounted_Combatant':True, 'Otherworldly_Patron':'Fiend', 'Pact_Magic':True, 'Spells':[ # Shape_Water Create_Bonfire : ('cantrip', 'Shape_Water'), ('cantrip', 'Eldritch_Blast'), ('cantrip', 'Minor_Illusion'), ('cantrip', 'Prestidigitation'), ('cantrip', 'Message'), ('ritual', 'Detect_Magic'), ('ritual', 'Identify'), ('3_lvl', 'Sleep'), ('3_lvl', 'Charm_Person'), ('3_lvl', 'Armor_of_Agathys'), ('3_lvl', 'Summon_Lesser_Demons'), ('3_lvl', 'Counterspell'), # , : #('3_lvl', 'Fly'), ], # TODO: . # - 1 lvl Fey_Presence, / , 10- . # - 6 lvl Misty_Escape, 60 , , . . 'Fey_Presence':True, 'Misty_Escape':True, 'Eldritch_Invocations':True, 'Invocation_Agonizing_Blast':True, 'Invocation_Mask_of_Many_Faces':True, 'Invocation_Book_of_Ancient_Secrets':True, 'Pact_Boon':True, 'Pact_of_the_Tome':True, 'Feat_Inspiring_Leader':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # : 'Infusion of Regeneration':1, 'Potion of Antidote':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Shortsword +1':1, 'Shortbow':1, 'Arrow':40, }, #'mount_combat':True, #'mount_type':'Horseclaw', #'equipment_mount':{ # 'Horse Scale Mail':1, # }, } #---- # () (): metadict_chars['Wizard 2 lvl ( )'] = { 'level':2, 'commando_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'archer', 'class_features':{ 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mend'), ('cantrip', 'Water_Shape'), ('cantrip', 'Mold_Earth'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Sleep'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), ], }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, } metadict_chars['Wizard 7 lvl ()'] = { 'level':7, 'archer_AI':True, 'commando_AI':True, 'fireball_AI':True, 'squad_advantage':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ # . Feat_Resilient . 'Feat_Resilient':'constitution', 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mend'), ('cantrip', 'Water_Shape'), ('cantrip', 'Mold_Earth'), ('cantrip', 'Message'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), #('1_lvl', 'Sleep'), ('1_lvl', 'Magic_Missile'), ('1_lvl', 'Absorb_Elements'), # Blur, " " #('2_lvl', 'Blur'), ('2_lvl', 'Suggestion'), ('2_lvl', 'Hold_Person'), ('2_lvl', 'Invisibility'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Nondetection'), ('3_lvl', 'Sending'), #('3_lvl', 'Dispel_Magic'), # : #('3_lvl', 'Fireball'), #('3_lvl', 'Melf_Minute_Meteors'), #('4_lvl', 'Ice_Storm'), ('4_lvl', 'Arcane_Eye'), ('4_lvl', 'Control_Water'), #('4_lvl', 'Greater_Invisibility'), #('4_lvl', 'Polymorph'), ], 'Ability_Score_Improvement':{ 'intelligence':+2, }, }, 'race':'Cat-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':10, 'Potion of Antidote':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, }, } #---- # () (): metadict_chars['Warrior 1 lvl ( )'] = { 'level':1, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'warrior', 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Chain Shirt':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':6, }, } metadict_chars['Warrior 2 lvl ( )'] = { 'level':2, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Infusion of Vitality':1, #'Scale Mail':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':12, 'Sleep Blade':40, }, } metadict_chars['Warrior 3 lvl ( )'] = { 'level':3, 'char_class':'Warrior', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':12, 'Sleep Blade':40, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Alert':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':12, 'Sleep Blade':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl ( )'] = { # , (). 'level':5, 'char_class':'Warrior-officer', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Extra_Attack':True, 'Feat_Alert':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Goodberry':4, 'Potion of Antidote':1, 'Infusion of Longstrider':1, 'Infusion of False Life':1, 'Rune of Absorbtion':1, #'Half Plate':1, 'Mage_Armor':1, 'Heavy Shield':1, 'Shortsword':1, 'Pilum':12, 'Sleep Blade':40, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #------------------------------------------------------------------------------- # -, Black Flags metadict_chars['Warrior 2 lvl (-) ()'] = { 'sneak_AI':True, 'grappler_AI':True, 'disengage_AI':True, 'base_unit':'Warrior 2 lvl (grenadier line-infantry-veteran)', 'char_class':'Warrior-pirate', 'race':'Cat-hero', 'class_features':{ 'Cunning_Action':True, 'Cunning_Action_Defence':True, 'Fighting_Style_Blind_Fighting':True, }, 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Claws':1, 'Hand Grenade':10, 'Smoke Grenade':2, }, } metadict_chars['Warrior 5 lvl (-) ()'] = { 'sneak_AI':True, 'grappler_AI':True, 'disengage_AI':True, 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'char_class':'Warrior-pirate', 'race':'Cat-hero', 'class_features':{ 'Cunning_Action':True, 'Cunning_Action_Defence':True, 'Fighting_Style_Blind_Fighting':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Claws':1, 'Infusion of Vitality':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Hand Grenade':10, 'Smoke Grenade':2, }, } #---- # () ( ): metadict_chars['Warrior 2 lvl (-)'] = { 'base_unit':'Warrior 2 lvl (grenadier line-infantry-veteran)', 'char_class':'Warrior-heavy', 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } metadict_chars['Warrior 5 lvl (-) ()'] = { 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'char_class':'Warrior-officer', 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre +1':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':5, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'base_unit':'Warrior 4 lvl (grenadier line-infantry-sergeant)', 'char_class':'Warrior-heavy', 'behavior':'elite_warrior', 'class_features':{ 'Feat_Martial_Adept':True, 'Menacing_Attack':True, 'Precision_Attack':True, #'Parry':True, }, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':10, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } metadict_chars['Warrior 5 lvl ( )'] = { 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'char_class':'Warrior-officer', 'class_features':{ 'Feat_Martial_Adept':True, 'Menacing_Attack':True, 'Precision_Attack':True, #'Parry':True, 'Extra_Attack':True, }, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre +1':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':10, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } metadict_chars['Warrior 4 lvl ( ) ()'] = { 'base_unit':'Warrior 4 lvl (grenadier line-infantry-sergeant)', 'char_class':'Warrior-heavy', 'behavior':'elite_warrior', 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':10, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } metadict_chars['Warrior 5 lvl ( ) ()'] = { 'base_unit':'Warrior 5 lvl (grenadier line-infantry-lieutenant)', 'char_class':'Warrior-officer', 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Rune of Absorbtion':1, 'Breastplate, 17 century':1, 'Halberd':1, 'Sabre +1':1, 'Shield':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Hand Grenade':10, 'Smoke Grenade':1, #'Hand Mortar':1, #'2lb Bomb':3, }, } #---- # () ( ): metadict_chars['Warrior 1 lvl ()'] = { 'base_unit':'Warrior 1 lvl (cannoneer artillery)', 'behavior':'warrior', } metadict_chars['Warrior 2 lvl (-)'] = { 'base_unit':'Warrior 2 lvl (cannoneer artillery-veteran)', 'behavior':'warrior', } metadict_chars['Warrior 2 lvl (-) (6lb Cannon)'] = { 'base_unit':'Warrior 2 lvl (cannoneer artillery-veteran)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '6lb Cannon, naval':1, '6lb Bar':100, '6lb Ball':100, }, 'mount_combat':True, 'mount_type':'6lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 2 lvl (-) (2lb Falconet)'] = { 'base_unit':'Warrior 2 lvl (cannoneer artillery-veteran)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '2lb Falconet':1, #'2lb Ball':100, '2lb Bomb':100, }, 'mount_combat':True, 'mount_type':'2lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 3 lvl (-)'] = { 'base_unit':'Warrior 3 lvl (cannoneer artillery-corporal)', 'behavior':'warrior', } metadict_chars['Warrior 3 lvl (-) (6lb Cannon)'] = { 'base_unit':'Warrior 3 lvl (cannoneer artillery-corporal)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '6lb Cannon, naval':1, '6lb Bar':100, '6lb Ball':100, }, 'mount_combat':True, 'mount_type':'6lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 3 lvl (-) (12lb Cannon)'] = { 'base_unit':'Warrior 3 lvl (cannoneer artillery-corporal)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '12lb Cannon, naval':1, '12lb Bar':100, '12lb Ball':100, }, 'mount_combat':True, 'mount_type':'12lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (-)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'behavior':'commander', } metadict_chars['Warrior 4 lvl (-) (12lb Mortar)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '12lb Mortar':1, '12lb Bomb':100, }, 'mount_combat':True, 'mount_type':'12lb Mortar, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 4 lvl (-) (2lb Falconet)'] = { 'base_unit':'Warrior 4 lvl (cannoneer artillery-sergeant)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, '2lb Falconet':1, '2lb Ball':100, #'2lb Bomb':100, }, 'mount_combat':True, 'mount_type':'2lb Cannon, chassis', 'equipment_mount':{}, } metadict_chars['Warrior 5 lvl (-)'] = { 'base_unit':'Warrior 5 lvl (cannoneer artillery-lieutenant)', } #---- # () ( ): metadict_chars['Fighter 11 lvl ( )'] = { # -- . --, 17% . # Fighter 1 lvl (legionary slayer-rookie) sum:100 STR:19 DEX:18 CON:19 INT:15 WIS:12 CHA:17 # Commanding_Presence +1d10 (, , ) # Tactical_Assessment +1d10 () (, ) 'level':11, 'fearless_AI':True, 'hunter_AI':True, 'sneak_AI':True, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':19, 'dexterity':18, 'constitution':19, 'intelligence':15, 'wisdom':12, 'charisma':17, }, 'class_features':{ 'Feat_Shield_Master':True, 'Feat_Heavy_Armor_Master':True, 'Fighting_Style_Defence':True, 'Second_Wind':True, 'Action_Surge':True, 'Extra_Attack':True, 'Indomitable':True, 'Ability_Score_Improvement':{ 'strength':+1, 'constitution':+1, }, # : 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, # (11 lvl -- 7 , 5 1d10): # TODO: # - Trip_Attack -- . # - Grappling_Strike -- . # - Bait_and_Switch -- +1d10 AC / . #'Parry':True, 'Menacing_Attack':True, 'Disarming_Attack':True, 'Precision_Attack':True, 'Commanding_Presence':True, 'Tactical_Assessment':True, #'Bait_and_Switch':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Antidote':1, 'Infusion of Heroism':1, 'Rune of Shielding':2, 'Plate Armor +1':1, 'Heavy Shield +1':1, 'Rarity +2':1, 'Rapier +2':1, 'Pistol, Ashbeard':1, 'Muskete Bullet':30, #'Hand Grenade':10, 'Smoke Grenade':1, 'Poison Blade':40, }, } metadict_chars['Fighter 13 lvl ( )'] = { # -- . Mirror_Image Blur 60% . # Fighter 1 lvl (legionary sentinel-battler) sum:103 STR:19 DEX:17 CON:18 INT:16 WIS:16 CHA:17 # " " (Detect_Thoughts), . 'level':13, 'fearless_AI':True, 'hunter_AI':True, 'no_grappler_AI':True, 'char_class':'Eldritch_Knight', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':19, 'dexterity':17, 'constitution':18, 'intelligence':16, 'wisdom':16, 'charisma':17, }, 'class_features':{ # TODO: # - Eldritch_Strike -- = . . 'Feat_War_Caster':True, 'Feat_Shield_Master':True, 'Feat_Heavy_Armor_Master':True, 'Feat_Inspiring_Leader':True, 'Ability_Score_Improvement':{ 'strength':+1, 'intelligence':+2, }, 'Fighting_Style_Blind_Fighting':True, 'Second_Wind':True, 'Action_Surge':True, # 'Martial_Archetype_Eldritch_Knight':True, 'Weapon_Bond':True, 'Spellcasting':True, 'Spells':[ # 9 13 lvl (2 evocation abjuration) ('cantrip', 'Message'), ('cantrip', 'Green_Flame_Blade'), #('cantrip', 'Blade_Ward'), #('ritual', 'Alarm'), ('1_lvl', 'Shield'), #('2_lvl', 'Shield'), #('1_lvl', 'Fog_Cloud'), ('2_lvl', 'Mirror_Image'), ('3_lvl', 'Blur'), ('2_lvl', 'Darkness'), #('2_lvl', 'Flaming_Sphere'), #('2_lvl', 'Detect_Thoughts'), ('2_lvl', 'Gust_of_Wind'), ('2_lvl', 'Warding_Wind'), ('3_lvl', 'Counterspell'), ('3_lvl', 'Fireball'), ], 'Extra_Attack':True, 'Indomitable':True, 'War_Magic':True, 'Eldritch_Strike':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: 3 #'Infusion of Regeneration':1, 'Rune of Absorbtion':2, 'Plate Armor +1':1, 'Heavy Shield +1':1, #'Sword of Flame Tongue':1, #'Sword of Life-Stealing':1, #'Longsword +2':1, 'Rarity +2':1, }, } #---- # () (, Gunsway): metadict_chars['Commoner 1 lvl ( --)'] = { 'base_unit':'Commoner 1 lvl (militia bowman)', 'behavior':'warrior', 'equipment_weapon':{ 'Dagger':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Commoner 2 lvl ( --)'] = { 'base_unit':'Commoner 2 lvl (militia bowman-veteran)', 'behavior':'warrior', 'weapon_skill':['simple','martial'], 'equipment_weapon':{ 'Shield':1, 'Scimitar':1, 'Shortbow':1, 'Arrow':40, }, } metadict_chars['Warrior 3 lvl ( --)'] = { 'base_unit':'Warrior 3 lvl (sqythian bowman-corporal)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Rune of Armor':1, 'Shield':1, 'Scimitar':1, 'Longbow':1, 'Arrow':40, #'Pistol, Lorenzony':1, #'Muskete Bullet':30, }, } metadict_chars['Warrior 4 lvl (- --)'] = { 'base_unit':'Warrior 4 lvl (sqythian bowman-sergeant)', 'equipment_weapon':{ 'Rune of Armor':1, 'Rune of Shielding':1, 'Shield':1, 'Scimitar':1, 'Longbow':1, 'Arrow':40, #'Pistol, Lorenzony':1, #'Muskete Bullet':30, }, } metadict_chars['Warrior 5 lvl (- --)'] = { 'base_unit':'Warrior 5 lvl (sqythian bowman-lieutenant)', 'equipment_weapon':{ 'Rune of Armor':1, 'Rune of Shielding':1, 'Rune of Absorbtion':1, 'Shield':1, 'Scimitar +1':1, 'Longbow':1, 'Arrow':40, #'Pistol, Lorenzony':1, #'Muskete Bullet':30, }, } #---- # () (): metadict_chars['Ranger 5 lvl ( ) ()'] = { # 'volley_AI':True, 'base_unit':'Ranger 5 lvl (otherworld wanderer-lieutenant)', 'race':'Primevial-medium-hero', 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Regeneration':1, 'Rune of Armor':1, 'Rune of Shielding':1, 'Shield':1, 'Longsword +1':1, 'Longbow, Black Skies':1, 'Seeking Arrow':60, 'Sleep Blade':60, #'Poison Blade':40, }, } metadict_chars['Barbarian 5 lvl ( ) ()'] = { 'volley_AI':True, 'base_unit':'Barbarian 5 lvl (thracian slayer-lord)', 'race':'Primevial-medium-hero', 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Regeneration':1, #'Rune of Armor':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Heavy Shield':1, 'Greatsword +1':1, 'Longbow, Black Skies':1, 'Seeking Arrow':60, 'Sleep Blade':60, }, } metadict_chars['Warrior 5 lvl ( )'] = { 'level':5, 'char_class':'Warrior-bowman', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Sharpshooter':True, 'Extra_Attack':True, }, 'race':'Primevial-medium', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Potion of Heroism':1, 'Potion of Antidote':1, 'Infusion of Regeneration':1, 'Rune of Armor':1, 'Rune of Shielding':1, 'Shield':1, 'Longsword +1':1, 'Longbow, Black Skies':1, 'Seeking Arrow':60, 'Sleep Blade':60, #'Poison Blade':40, }, } #---- # () (): metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mending'), ('cantrip', 'Acid_Splash'), ('ritual', 'Unseen_Servant'), ], }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Heavy Shield':1, 'Sabre':1, 'Longbow':1, 'Poison Arrow':40, 'Poison Blade':10, #'Flame Grenade':10, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl ( )'] = { 'level':5, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Protection':True, 'Feat_Magic_Initiate':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mending'), ('cantrip', 'Acid_Splash'), ('ritual', 'Unseen_Servant'), ], 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Heavy Shield':1, 'Sabre':1, 'Longbow':1, 'Poison Arrow':40, 'Poison Blade':10, #'Flame Grenade':10, 'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Wizard 13 lvl ()'] = { # Wizard 1 lvl (otherworld mage-disciple) sum:94 STR:13 DEX:17 CON:16 INT:19 WIS:14 CHA:15 # : # - Feat_Alert, -- . # - Feat_Keen_Mind -- . # - Feat_Metamagic_Adept -- Arcane_Gate Mass_Suggestion # : # - (Fabricate) . # - (Contingency) Wall_of_Force. # - (Arcane_Gate), 1000 ( Metamagic_Distant_Spell) # - (Create_Homunculus), . 'level':13, 'fireball_AI':True, 'disengage_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':13, 'dexterity':17, 'constitution':16, 'intelligence':19, 'wisdom':14, 'charisma':15, }, 'class_features':{ 'Feat_Alert':True, 'Feat_Keen_Mind':True, 'Feat_Metamagic_Adept':True, 'Metamagic_Subtle_Spell':True, 'Metamagic_Distant_Spell':True, 'Ability_Score_Improvement':{ 'dexterity':+1, 'intelligence':+1, 'charisma':+1, }, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # _ + _ (18 ) ('cantrip', 'Prestidigitation'), ('cantrip', 'Acid_Splash'), ('cantrip', 'Mending'), ('cantrip', 'Message'), ('cantrip', 'Mage_Hand'), # : ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('ritual', 'Find_Familiar'), ('ritual', 'Comprehend_Languages'), ('ritual', 'Feign_Death'), ('ritual', 'Water_Breathing'), ('ritual', 'Rary_Telepathic_Bond'), ('ritual', 'Contact_Other_Plane'), # (6 ): # TODO: Dust_Devil Flaming_Sphere. ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'See_Invisibility'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Dust_Devil'), # (12 ): ('3_lvl', 'Counterspell'), ('3_lvl', 'Sleet_Storm'), ('3_lvl', 'Sending'), ('4_lvl', 'Fabricate'), ('4_lvl', 'Dimension_Door'), ('4_lvl', 'Conjure_Minor_Elementals'), ('5_lvl', 'Conjure_Elemental'), ('5_lvl', 'Planar_Binding'), ('5_lvl', 'Scrying'), ('6_lvl', 'Arcane_Gate'), ('6_lvl', 'Mass_Suggestion'), ('7_lvl', 'Teleportation'), # ---- # ( 1-3 lvl): # ---- #('3_lvl', 'Blink'), #('3_lvl', 'Animate_Dead'), #('3_lvl', 'Dispel_Magic'), #('3_lvl', 'Melf_Minute_Meteors'), #('3_lvl', 'Summon_Lesser_Demons'), # ---- #('4_lvl', 'Stoneskin'), #('4_lvl', 'Arcane_Eye'), #('4_lvl', 'Control_Water'), #('4_lvl', 'Leomund_Secret_Chest'), #('4_lvl', 'Otiluke_Resilent_Sphere'), #('4_lvl', 'Mordenkainen_Private_Sanctum'), #('4_lvl', 'Conjure_Minor_Elementals'), #('4_lvl', 'Summon_Greater_Demon'), #('4_lvl', 'Sickening_Radiance'), #('4_lvl', 'Banishment'), # ---- #('5_lvl', 'Animated_Objects'), #('5_lvl', 'Conjure_Elemental'), #('5_lvl', 'Planar_Binding'), #('5_lvl', 'Wall_of_Force'), #('5_lvl', 'Passwall'), #('5_lvl', 'Scrying'), #('5_lvl', 'Cone_of_Cold'), #('5_lvl', 'Cloudkill'), #('5_lvl', 'Teleportation_Circle'), # ---- #('6_lvl', 'Soul_Cage'), #('6_lvl', 'Arcane_Gate'), #('6_lvl', 'True_Seeing'), #('6_lvl', 'Contingency'), #('6_lvl', 'Mass_Suggestion'), #('6_lvl', 'Programmed_Illusion'), #('6_lvl', 'Create_Homunculus'), #('6_lvl', 'Whirlwind'), # ---- #('7_lvl', 'Teleportation'), #('7_lvl', 'Mordenkainens_Magnificent_Mansion'), ], # TODO: Benign_Transposition Focused_Conjuration 'School_of_Conjuration':True, 'Minor_Conjuration':True, 'Benign_Transposition':True, 'Focused_Conjuration':True, #'Durable_Summons':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: 3-4 # - Rune of Flying # - Rune of Stoneskin # - Rune of Greater Invisibility 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } metadict_chars['Wizard 4 lvl ( )'] = { 'level':4, 'archer_AI':True, 'fireball_AI':True, 'char_class':'Wizard', 'hit_dice':'1d6', 'behavior':'commander', 'class_features':{ 'Feat_Alert':True, 'Ability_Score_Improvement':{ 'intelligence':+2, }, 'Arcane_Recovery':True, 'Spellcasting':True, 'Spells':[ # _ + _ (8 ) ('cantrip', 'Prestidigitation'), ('cantrip', 'Acid_Splash'), ('cantrip', 'Mending'), ('cantrip', 'Message'), # : ('ritual', 'Alarm'), ('ritual', 'Identify'), ('ritual', 'Detect_Magic'), ('ritual', 'Unseen_Servant'), ('ritual', 'Gentle_Repose'), ('ritual', 'Find_Familiar'), ('ritual', 'Comprehend_Languages'), ('1_lvl', 'Shield'), ('1_lvl', 'Fog_Cloud'), ('1_lvl', 'Absorb_Elements'), ('2_lvl', 'See_Invisibility'), ('2_lvl', 'Invisibility'), ('2_lvl', 'Dust_Devil'), ], 'School_of_Conjuration':True, 'Minor_Conjuration':True, 'Benign_Transposition':True, }, 'race':'Human-hero', 'weapon_skill':['simple'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Rune of Armor':1, 'Dagger':1, }, #'mount_combat':True, #'mount_type':'Light Warhorse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Warrior 4 lvl ( )'] = { 'level':4, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'elite_warrior', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Defensive_Duelist':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Shield':1, 'Sabre':1, 'Glaive':1, 'Longbow':1, 'Poison Arrow':40, 'Poison Blade':10, #'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } metadict_chars['Warrior 5 lvl ( )'] = { 'level':5, 'char_class':'Warrior-pirate', 'hit_dice':'1d8', 'behavior':'commander', 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Defensive_Duelist':True, 'Extra_Attack':True, }, 'race':'Human-common', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Rune of Shielding':1, 'Shield':1, 'Glaive':1, 'Sabre +1':1, 'Longbow':1, 'Poison Arrow':40, 'Poison Blade':10, #'Smoke Grenade':1, }, #'mount_combat':False, #'mount_type':'Riding Horse', #'equipment_mount':{ # }, } #---- # () (): metadict_chars['Monk 13 lvl ()'] = { # # Monk 1 lvl (city windsong-apprentice) sum:97 STR:16 DEX:19 CON:17 INT:14 WIS:19 CHA:12 # Tongue_of_the_Sun_and_Moon -- . 'level':13, #'grappler_AI':True, 'fireball_AI':True, 'carefull_AI':True, 'char_class':'Monk', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ 'strength':16, 'dexterity':19, 'constitution':17, 'intelligence':14, 'wisdom':19, 'charisma':12, }, 'class_features':{ # TODO: # ------ # 1. Stillness_of_Mind -- . # 2. Unarmored_Movement_improvement -- . # ------ 'Feat_Sharpshooter':True, 'Feat_Weapon_Master':True, 'Fighting_Style_Archery':True, 'Feat_Defensive_Duelist':True, 'Ability_Score_Improvement':{ 'wisdom':+1, 'dexterity':+1, }, # : 'Agile_Parry':True, #'Kensei_Weapons':['Saber','Longbow','Glaive','Chakram'], 'Kensei_Weapons':['simple','martial'], 'Kensei_Shot':'1d4', 'Magic_Kensei_Weapons':True, 'Deft_Strike':True, 'Sharpen_the_Blade':True, # : 'Unarmored_Defense':True, 'Martial_Arts':True, 'Flurry_of_Blows':True, 'Patient_Defense':True, 'Step_of_the_Wind':True, 'Unarmored_Movement':True, 'Deflect_Missiles':True, 'Slow_Fall':True, 'Extra_Attack':True, 'Stunning_Strike':True, 'Ki_Empowered_Strikes':True, 'Evasion':True, 'Stillness_of_Mind':True, 'Unarmored_Movement_improvement':True, 'Purity_of_Body':True, 'immunity':['poison','disease'], 'Tongue_of_the_Sun_and_Moon':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':[], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # TODO: # 3. 3-4 . 'Potion of Antidote':1, 'Infusion of Vitality':1, 'Infusion of Heroism':1, 'Rune of Shielding':1, 'Bracers of Defence':1, #'Sword of Sharpness':1, #'Sword of Hopesfire':1, 'Sword of Flame Tongue':1, 'Longbow':1, 'Poison Arrow':80, 'Sleep Blade':10, 'Chakram':10, }, } #---- # () ( ): metadict_chars['Warlock 5 lvl () ( )'] = { # , +10 +20 Pass_Without_Trace. +10 . # Pact_of_the_Chain: -- 'level':5, 'fireball_AI':True, 'char_class':'Warlock', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_medial':True, 'abilityes':{ # (): +2 ; # (): +2 'strength':11, 'dexterity':18+2, 'constitution':16, 'intelligence':13, 'wisdom':10, 'charisma':18+2, }, 'class_features':{ # , : 'immunity':['sleep'], 'resistance':['charmed'], 'Darkvision':60, # ---- 'Feat_Elemental_Adept':'fire', 'Otherworldly_Patron':'Efreeti', 'Pact_Magic':True, 'Spells':[ # 3 6 5 lvl ('cantrip','Create_Bonfire'), ('cantrip','Minor_Illusion'), ('cantrip','Mage_Hand'), ('cantrip','Silent_Image'), ('ritual', 'Find_Familiar'), ('3_lvl','Invisibility'), ('3_lvl','Enhance_Ability'), ('3_lvl','Phantasmal_Force'), ('3_lvl','Armor_of_Agathys'), ('3_lvl','Fireball'), ('3_lvl','Tongues'), #('3_lvl','Hypnotic_Pattern'), ], 'Pact_Boon':True, 'Pact_of_the_Chain':True, 'Genies_Vessel':True, 'Genies_Wrath':'fire', 'Bottled_Respite':True, 'Eldritch_Invocations':True, 'Invocation_Misty_Visions':True, 'Invocation_Mask_of_Many_Faces':True, 'Invocation_Voice_of_the_Chain_Master':True, }, 'race':'Primevial-medium-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light'], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Infusion of Heroism':1, #'Infusion of Claws':1, 'Rune of Shielding':1, 'Rune of Absorbtion':1, 'Rune of Armor':1, 'Rarity +2':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } #---- # (Shady) ( ): metadict_chars['Warrior 3 lvl ( )'] = { 'base_unit':'Warrior 3 lvl (fusilier line-infantry-corporal)', 'behavior':'elite_warrior', 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Scimitar':1, 'Shield':1, 'Muskete, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 4 lvl ( )'] = { 'base_unit':'Warrior 4 lvl (fusilier line-infantry-sergeant)', 'equipment_weapon':{ 'Rune of Armor':1, 'Infusion of Longstrider':1, 'Scimitar':1, 'Shield':1, 'Muskete, Lorenzony':1, 'Muskete Bullet':30, 'Smoke Grenade':1, }, } metadict_chars['Warrior 5 lvl ()'] = { 'base_unit':'Warrior 5 lvl (fusilier line-infantry-lieutenant)', 'hitpoints_medial':True, 'abilityes':{ 'strength':12, 'dexterity':16, 'constitution':14, 'intelligence':10, 'wisdom':6, 'charisma':16, }, 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Inspiring_Leader':True, 'Extra_Attack':True, }, 'equipment_weapon':{ 'Rune of Armor':1, 'Rune of Message':1, 'Infusion of Longstrider':1, 'Dagger':1, #'Scimitar':1, #'Muskete, Brown Bess':1, #'Muskete Bullet, bess':30, 'Smoke Grenade':1, }, } metadict_chars['Artificier 5 lvl (Shady) ( )'] = { 'level':5, 'sneak_AI':True, 'fireball_AI':True, #'enslave_AI':True, #'defence_AI':True, #'grenadier_AI':True, #'firearm_AI':True, 'char_class':'Artificier', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_base':8 + 4*5, 'abilityes':{ # ; +1 , +1 'strength':9, 'dexterity':17+1, 'constitution':11+1, 'intelligence':18+2, 'wisdom':18, 'charisma':13, }, 'class_features':{ 'Feat_Linguist':True, 'Feat_Healer':True, 'Feat_Skill_Expert':'medicine', 'Spellcasting':True, 'Spells':[ # : 4 +7 (+5 +2 /2) ('cantrip', 'Mending'), ('cantrip', 'Mage_Hand'), ('1_lvl', 'Healing_Word'), #('1_lvl', 'Ray_of_Sickness'), ('1_lvl', 'Expeditious_Retreat'), ('1_lvl', 'Sanctuary'), #('1_lvl', 'Identify'), #('1_lvl', 'Alarm'), #('1_lvl', 'Detect_Magic'), #('1_lvl', 'Purify_Food_and_Drink'), ('2_lvl', 'Flaming_Sphere'), #('2_lvl', 'Melfs_Acid_Arrow'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'See_Invisibility'), ('2_lvl', 'Invisibility'), #('2_lvl', 'Blur'), #('2_lvl', 'Web'), #('2_lvl', 'Enhance_Ability'), #('2_lvl', 'Continual_Flame'), #('2_lvl', 'Arcane_Lock'), #('2_lvl', 'Magic_Mouth'), #('2_lvl', 'Skywrite'), ], 'Magical_Tinkering':True, 'Infuse_Item':True, 'The_Right_Tool_for_the_Job':True, 'Artificier_Alchemist':True, 'Experimental_Elixir':True, 'Alchemical_Savant':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'skills':[ # (): , # (): , , # (-): 'History', 'Nature', 'Religion', 'Animal_Handling', 'Insight', 'Medicine', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ #'Infusion of Claws':1, #'Potion of Rage':1, 'Potion of Heroism':1, 'Potion of Antidote':1, 'Potion of Boldness':1, 'Potion of Resilience':1, # ---- 'Rune of Armor':1, 'Rune of Message':1, 'Rune of Shielding':1, 'Scimitar +1':1, 'Shield':1, #'Muskete, Lorenzony':1, #'Pistol, Lorenzony':1, #'Muskete Bullet':30, '10lb Bomb, mine':2, 'Smoke Grenade':1, }, } #---- # (Katorjnik) ( ): metadict_chars['Ranger 5 lvl (Katorjnik) ( )'] = { 'level':5, #'sneak_AI':True, 'striker_AI':True, 'firearm_AI':True, #'defence_AI':True, #'killer_AI':True, 'char_class':'Ranger', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_base':10 + 6*4, 'abilityes':{ # ; +1 , +1 'strength':14, 'dexterity':18+1, 'constitution':12, 'intelligence':10, 'wisdom':17+1, 'charisma':15, }, 'class_features':{ 'Fighting_Style_Archery':True, 'Feat_Firearms_Expert':True, 'Feat_Sharpshooter':True, 'Feat_Alert':True, 'Favored_Enemy':['humans', 'spain'], 'Natural_Explorer':['sea', 'coast'], 'Spellcasting':True, 'Spells':[ #('ritual', 'Beast_Sense'), ('1_lvl', 'Hunters_Mark'), ('1_lvl', 'Hail_of_Thorns'), ('2_lvl', 'Pass_Without_Trace'), ('2_lvl', 'Lesser_Restoration'), ], 'Primeval_Awareness':True, 'Ranger_Archetype_Hunter':True, 'Hunter_Colossus_Slayer':'1d8', 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'skills':[ # (): , () # (): , 'Athletics', 'Stealth', 'Insight', 'Perception', 'Survival', 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # . 'Rune of Armor':1, 'Rune of Absorbtion':1, 'Bracers of Silver':1, 'Sabre':1, 'Shield':1, 'Rifle, Schwartz Mark':1, #'Pistol, Lorenzony':1, 'Muskete Bullet':90, 'Smoke Grenade':2, }, } #---- # () ( ): metadict_chars['Fighter 5 lvl () ( )'] = { 'level':5, #'defence_AI':True, 'striker_AI':True, 'no_grappler_AI':True, 'char_class':'Battlemaster', 'hit_dice':'1d10', 'behavior':'commander', 'hitpoints_base':10 + 6*4, 'abilityes':{ # ; +1 , +1 # : (+ 1 ) # : (+ 1 ) # : (+ 1 ) 'strength':9, 'dexterity':16, 'constitution':8, 'intelligence':18+2, 'wisdom':18+2, 'charisma':17+1, }, 'class_features':{ # TODO: Feat_Martial_Adept +1 , . . 'Feat_Martial_Adept':True, 'Feat_Keen_Mind':True, 'Feat_Observant':True, 'Feat_Linguist':True, 'Feat_Defensive_Duelist':True, 'Fighting_Style_Dueling':True, 'Second_Wind':True, 'Action_Surge':True, 'Martial_Archetype_Battlemaster':True, 'Combat_Superiority':True, 'Student_of_War':True, 'Disarming_Attack':True, 'Precision_Attack_Close':True, 'Feinting_Attack':True, 'Extra_Attack':True, }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','heavy','shield'], 'skills':[ # (): , # (): # (): 'History', 'Investigation', 'Insight', 'Perception', 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ # . . #'Shield, Bladebreaker':1, 'Rune of Armor':1, 'Rune of Shielding':2, 'Rapier of Sharpness':1, 'Pistol, Lorenzony':1, 'Muskete Bullet':30, #'Smoke Grenade':1, }, } #---- # (Endeavour) ( ): metadict_chars['Bard 5 lvl (firesalamander) ( )'] = { # TODO: Combat_Inspiration . # -- . . # AC -- . 'level':5, 'striker_AI':True, 'fireball_AI':True, 'char_class':'Bard', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_base':8 + 4*5, 'abilityes':{ # (): +2 ; # (): +1 , +1 ; # (-): +1 ; 'strength':10+1, 'dexterity':18, 'constitution':8, 'intelligence':14, 'wisdom':18+2, 'charisma':18+2, }, 'class_features':{ # , : 'immunity':['sleep'], 'resistance':['charmed'], 'Darkvision':60, # ---- 'Feat_Chef':True, 'Feat_Healer':True, 'Bardic_Inspiration':True, 'Spellcasting':True, 'Spells':[ ('cantrip', 'Mending'), ('cantrip', 'Mage_Hand'), ('cantrip', 'Message'), ('ritual', 'Unseen_Servant'), ('ritual', 'Comprehend_Languages'), ('1_lvl', 'Sleep'), ('1_lvl', 'Expeditious_Retreat'), ('2_lvl', 'Knock'), ('2_lvl', 'Calm_Emotions'), ('3_lvl', 'Catnap'), ('3_lvl', 'Fear'), ('3_lvl', 'Sleep'), ], 'Jack_of_All_Trades':True, 'Song_of_Rest':True, 'College_of_Valor':True, 'Combat_Inspiration':True, 'Expertise':['Survival','Deception'], 'Font_of_Inspiration':True, }, 'race':'Half-elf-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'skills':[ # (): , , # (): , # (): 'Sleight_of_Hand', 'Medicine', 'Perception', 'Survival', 'Deception', 'Performance', 'Persuasion', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Rune of Absorbtion':1, 'Rune of Shielding':2, 'Armor, One-of-Many':1, 'Shield':1, 'Rapier':1, 'Hand Grenade':2, #'Pistol, Lorenzony':1, #'Muskete Bullet':30, #'Smoke Grenade':1, }, } #---- # () ( ): metadict_chars['Artificier 5 lvl () ( )'] = { 'level':5, #'accurate_AI':True, 'striker_AI':True, 'firearm_AI':True, 'fireball_AI':True, 'no_grappler_AI':True, 'disengage_AI':True, 'char_class':'Artificier', 'hit_dice':'1d8', 'behavior':'commander', 'hitpoints_base':8 + 4*5, 'abilityes':{ # ; +1 , +1 # (???): +1 'strength':13, 'dexterity':13+1, 'constitution':14, 'intelligence':18+2, 'wisdom':18, 'charisma':10, }, 'class_features':{ 'Feat_Spellsniper':True, 'Feat_Sharpshooter':True, 'Feat_Telekinetic':True, 'Spellcasting':True, 'Spells':[ # : 4 +7 (+5 +2 /2) # Scorching_Ray , . . ('cantrip', 'Magic_Stone'), ('cantrip', 'Mending'), ('cantrip', 'Mage_Hand'), ('cantrip', 'Shocking_Grasp'), ('ritual', 'Purify_Food_and_Drink'), ('ritual', 'Detect_Magic'), ('ritual', 'Skywrite'), ('1_lvl', 'Shield'), ('1_lvl', 'Thunderwave'), ('1_lvl', 'Absorb_Elements'), ('1_lvl', 'Cure_Wounds'), #('2_lvl', 'Scorching_Ray'), ('2_lvl', 'Shatter'), ('2_lvl', 'Lesser_Restoration'), ('2_lvl', 'Levitate'), ], 'Magical_Tinkering':True, 'Infuse_Item':True, 'The_Right_Tool_for_the_Job':True, 'Artificier_Artillerist':True, 'Eldritch_Cannon':True, 'Eldritch_Cannon_Control_Distance':60, 'Arcane_Firearm':'1d8', }, 'race':'Human-hero', 'weapon_skill':['simple','martial'], 'armor_skill':['light','medium','shield'], 'skills':[ # (): , # (): , , # (-): 'Arcana', 'History', 'Nature', 'Religion', 'Perception', ], 'equipment_supply':soldier_supply, 'equipment_backpack':soldiers_pack, 'equipment_weapon':{ 'Infusion of Longstrider':1, 'Rune of Shielding':2, 'Half Plate, 17 century':1, 'Shield, Bladebreaker':1, 'Equalizer':1, 'Magic Boom-stone':3, '10lb Bomb, mine':1, 'Smoke Grenade':1, }, 'mount_combat':True, #'mount_type':'Eldritch Cannon (flamethrower)', #'mount_type':'Eldritch Cannon (force ballista)', 'mount_type':'Eldritch Cannon (protector)', 'equipment_mount':{ '10lb Bomb, mine':4, 'Smoke Grenade':4, }, }
29.188831
133
0.551602
1953a970695d2673fad8c3f0a83d3f344f3fbfa4
5,647
py
Python
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
9
2018-07-30T20:12:47.000Z
2021-02-05T17:02:04.000Z
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
14
2020-01-28T22:38:58.000Z
2022-02-10T00:11:21.000Z
sandbox/kl_div/kl.py
samuelfneumann/RLControl
71430b1de2e4262483908932eb44579c2ec8216d
[ "Apache-2.0" ]
3
2018-08-08T14:52:53.000Z
2021-01-23T18:00:05.000Z
import numpy as np import scipy as sp import scipy.stats import matplotlib.pyplot as plt if __name__ == '__main__': main()
38.155405
168
0.64583
1953dea348e57ea12a9ad8bb64e5c7842c0eba20
37,416
py
Python
pysnmp-with-texts/CIRCUIT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CIRCUIT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CIRCUIT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CIRCUIT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CIRCUIT-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:49:40 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ConstraintsUnion, ValueRangeConstraint, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueRangeConstraint", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint") circuit, coriolisMibs = mibBuilder.importSymbols("CORIOLIS-MIB", "circuit", "coriolisMibs") ModuleCompliance, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup") MibScalar, MibTable, MibTableRow, MibTableColumn, ObjectIdentity, IpAddress, Integer32, iso, Gauge32, Counter64, MibIdentifier, NotificationType, TimeTicks, Unsigned32, Counter32, Bits, NotificationType, ModuleIdentity = mibBuilder.importSymbols("SNMPv2-SMI", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "ObjectIdentity", "IpAddress", "Integer32", "iso", "Gauge32", "Counter64", "MibIdentifier", "NotificationType", "TimeTicks", "Unsigned32", "Counter32", "Bits", "NotificationType", "ModuleIdentity") DisplayString, TruthValue, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TextualConvention") circuitMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 5812, 6, 1)) if mibBuilder.loadTexts: circuitMIB.setLastUpdated('0010300000Z') if mibBuilder.loadTexts: circuitMIB.setOrganization('Coriolis Networks') if mibBuilder.loadTexts: circuitMIB.setContactInfo(' Srivathsan Srinivasagopalan Postal: 330 Codman Hill Road, Boxboro MA, 01719. Tel: +1 978 264 1904 Fax: +1 978 264 1929 E-mail: sri@coriolisnet.com') if mibBuilder.loadTexts: circuitMIB.setDescription(' The MIB module for transport channels ') circuitLoadBalanceInterval = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitLoadBalanceInterval.setStatus('current') if mibBuilder.loadTexts: circuitLoadBalanceInterval.setDescription('The default load balancing schedule is to examine 1 circuit every 3 minutes at the GNE. Regardless of whether the circuit is moved to a better ring path or not, the next circuit is not examined until another 3 minutes (default) had expired. The duration of the load balance timer will be configurable from a range of 0 to 65535 seconds. Using a value of 0 will turn off load balancing.') circuitLoadBalanceNumPerInterval = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitLoadBalanceNumPerInterval.setStatus('current') if mibBuilder.loadTexts: circuitLoadBalanceNumPerInterval.setDescription('Indicates the number of circuits being loadbalanced in a fixed interval. The maximum value is 10 circuits per second.') circuitOldIpAddrToSwap = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 4), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitOldIpAddrToSwap.setStatus('current') if mibBuilder.loadTexts: circuitOldIpAddrToSwap.setDescription('When a chassis running several circuits has to be moved to a new location with a new different IpAddress, then all the associated circuits has to be properly modified with the new IpAddress. This object will specify the old-IpAddress. This process is almost transparent to the user, but, he will notice traffic loss due to the circuits being brought down and up.') circuitNewIpAddrToSwap = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitNewIpAddrToSwap.setStatus('current') if mibBuilder.loadTexts: circuitNewIpAddrToSwap.setDescription('When a chassis running several circuits has to be moved to a new location with a new different IpAddress, then all the associated circuits has to be properly modified with the new IpAddress. This object will specify the old-IpAddress. This process is almost transparent to the user, but, he will notice traffic loss due to the circuits being brought down and up.') circuitEventInterval = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 6), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitEventInterval.setStatus('current') if mibBuilder.loadTexts: circuitEventInterval.setDescription('For any circuit related events, events are generated at a specific time interval. circuitEventInterval specifies that. The default value is 1 second.') circuitEventNumPerInterval = MibScalar((1, 3, 6, 1, 4, 1, 5812, 6, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 10))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitEventNumPerInterval.setStatus('current') if mibBuilder.loadTexts: circuitEventNumPerInterval.setDescription('This object specifies the number of events generated per interval. The default is 10 per second.') circuitTable = MibTable((1, 3, 6, 1, 4, 1, 5812, 6, 8), ) if mibBuilder.loadTexts: circuitTable.setStatus('current') if mibBuilder.loadTexts: circuitTable.setDescription('A table containing information about the transport channels in the system') circuitEntry = MibTableRow((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1), ).setIndexNames((0, "CIRCUIT-MIB", "circuitSrcIpAddr"), (0, "CIRCUIT-MIB", "circuitSrcInterfaceNum"), (0, "CIRCUIT-MIB", "circuitSrcConnectionID")) if mibBuilder.loadTexts: circuitEntry.setStatus('current') if mibBuilder.loadTexts: circuitEntry.setDescription('Entry in the table for a single transport channel') circuitSrcIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 1), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitSrcIpAddr.setStatus('current') if mibBuilder.loadTexts: circuitSrcIpAddr.setDescription('IP address of the source circuit endpoint.') circuitSrcInterfaceNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 2), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitSrcInterfaceNum.setStatus('current') if mibBuilder.loadTexts: circuitSrcInterfaceNum.setDescription('The interface number of the source circuit endpoint.') circuitSrcConnectionID = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 3), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitSrcConnectionID.setStatus('current') if mibBuilder.loadTexts: circuitSrcConnectionID.setDescription('Connection Identifier of the source circuit endpoint. Based on the protocol type, further information may be required to completely specify a circuit on a channel. For example, Ethernet VLAN requires a VLAN Id, Frame Relay requires a DLCI and ATM requires VPI and VCI. For ATM, this field is encoded as 12 bits of VPI and 16 bits of VCI.') circuitSrcDescString = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 4), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitSrcDescString.setStatus('current') if mibBuilder.loadTexts: circuitSrcDescString.setDescription('Textual description of the source side of the circuit endpoint.') circuitDestIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 5), IpAddress()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitDestIpAddr.setStatus('current') if mibBuilder.loadTexts: circuitDestIpAddr.setDescription('IP address of the destination circuit endpoint.') circuitDestInterfaceNum = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 6), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitDestInterfaceNum.setStatus('current') if mibBuilder.loadTexts: circuitDestInterfaceNum.setDescription('The interface number of the destination circuit endpoint.') circuitDestConnectionID = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 7), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitDestConnectionID.setStatus('current') if mibBuilder.loadTexts: circuitDestConnectionID.setDescription('Connection Identifier of the destination circuit endpoint. Based on the protocol type, further information may be required to completely specify a circuit on a channel. For example, Ethernet VLAN requires a VLAN Id, Frame Relay requires a DLCI and ATM requires VPI and VCI. For ATM, this field is encoded as 12 bits of VPI and 16 bits of VCI.') circuitDestDescString = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 8), OctetString()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitDestDescString.setStatus('current') if mibBuilder.loadTexts: circuitDestDescString.setDescription('Textual description of the destination side of the circuit endpoint.') circuitName = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 32))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitName.setStatus('current') if mibBuilder.loadTexts: circuitName.setDescription('CircuitName is a unique name given to a circuit.') circuitID = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 10), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitID.setStatus('current') if mibBuilder.loadTexts: circuitID.setDescription('CircuitID is a unique ID given to a circuit. It is equal to the TC-ID in the PM.') circuitRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6))).clone(namedValues=NamedValues(("active", 1), ("notInService", 2), ("notReady", 3), ("createAndGo", 4), ("createAndWait", 5), ("destroy", 6)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitRowStatus.setStatus('current') if mibBuilder.loadTexts: circuitRowStatus.setDescription('Indicates if a row has been created or deleted. See SNMPv2-TC for complete description.') circuitReasonText = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 12), DisplayString()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitReasonText.setStatus('current') if mibBuilder.loadTexts: circuitReasonText.setDescription('Provides the reason for the error indicated.') circuitFailLocIpAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 13), IpAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocIpAddr.setStatus('current') if mibBuilder.loadTexts: circuitFailLocIpAddr.setDescription('IP address of location where circuit failure code is encountered.') circuitFailLocSlot1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 14), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 26))).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocSlot1.setStatus('current') if mibBuilder.loadTexts: circuitFailLocSlot1.setDescription('Slot number where circuit failure code is encountered.') circuitFailLocPort1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 15), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocPort1.setStatus('current') if mibBuilder.loadTexts: circuitFailLocPort1.setDescription('Port number where circuit failure code is encountered.') circuitFailLocInterfaceNum1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 16), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocInterfaceNum1.setStatus('current') if mibBuilder.loadTexts: circuitFailLocInterfaceNum1.setDescription('Interface number where circuit failure code is encountered.') circuitFailLocConnectionID1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 17), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocConnectionID1.setStatus('current') if mibBuilder.loadTexts: circuitFailLocConnectionID1.setDescription('Connection Identifier of the failed circuit endpoint.') circuitFailLocSlot2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 26))).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocSlot2.setStatus('current') if mibBuilder.loadTexts: circuitFailLocSlot2.setDescription('Slot number where circuit failure code is encountered.') circuitFailLocPort2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocPort2.setStatus('current') if mibBuilder.loadTexts: circuitFailLocPort2.setDescription('Port number where circuit failure code is encountered.') circuitFailLocInterfaceNum2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 20), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocInterfaceNum2.setStatus('current') if mibBuilder.loadTexts: circuitFailLocInterfaceNum2.setDescription('Interface number where circuit failure code is encountered.') circuitFailLocConnectionID2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 21), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitFailLocConnectionID2.setStatus('current') if mibBuilder.loadTexts: circuitFailLocConnectionID2.setDescription('Connection Identifier of the failed circuit endpoint.') circuitEndPoint1Protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 22), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ethernet", 1), ("frameRelay", 2), ("atm", 3), ("vt", 4), ("axData", 5), ("axTdm", 6), ("isl", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitEndPoint1Protocol.setStatus('current') if mibBuilder.loadTexts: circuitEndPoint1Protocol.setDescription('Protocol determines the connectionID.') circuitFwdTDType = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 23), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ethernet", 1), ("frameRelay", 2), ("tdm", 3), ("atm-cbr", 4), ("atm-vbr-rt", 5), ("atm-vbr-nrt", 6), ("atm-vbr-ubr", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitFwdTDType.setStatus('current') if mibBuilder.loadTexts: circuitFwdTDType.setDescription("Specifies the traffic descriptor type associated with the forward traffic descriptor parameters. The forward direction is 'into the network' from the circuit endpoint. TDType is independent of the end-point protocol.") circuitFwdTDParam1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 24), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitFwdTDParam1.setStatus('current') if mibBuilder.loadTexts: circuitFwdTDParam1.setDescription('Parameter 1 of the forward traffic descriptor of type circuitFwdTdType. For type Ethernet, this value corresponds to CIR. For type Frame Relay, this value corresponds to CIR. For type ATM-CBR, this value corresponds to PCR(0+1).') circuitFwdTDParam2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 25), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitFwdTDParam2.setStatus('current') if mibBuilder.loadTexts: circuitFwdTDParam2.setDescription('Parameter 2 of the forward traffic descriptor of type circuitFwdTdType. For type Ethernet, this value corresponds to Bc. For type Frame Relay, this value corresponds to Bc.') circuitFwdTDParam3 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 26), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitFwdTDParam3.setStatus('current') if mibBuilder.loadTexts: circuitFwdTDParam3.setDescription('Parameter 3 of the forward traffic descriptor of type circuitFwdTdType. For type Ethernet, this value corresponds to Be. For type Frame Relay, this value corresponds to Be.') circuitFwdTDParam4 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 27), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitFwdTDParam4.setStatus('current') if mibBuilder.loadTexts: circuitFwdTDParam4.setDescription('Parameter 4 of the forward traffic descriptor of type circuitFwdTdType.') circuitEndPoint2Protocol = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 28), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ethernet", 1), ("frameRelay", 2), ("atm", 3), ("vt", 4), ("axData", 5), ("axTdm", 6), ("isl", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitEndPoint2Protocol.setStatus('current') if mibBuilder.loadTexts: circuitEndPoint2Protocol.setDescription('Protocol determines the connectionID.') circuitBwdTDType = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 29), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7))).clone(namedValues=NamedValues(("ethernet", 1), ("frameRelay", 2), ("tdm", 3), ("atm-cbr", 4), ("atm-vbr-rt", 5), ("atm-vbr-nrt", 6), ("atm-vbr-ubr", 7)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitBwdTDType.setStatus('current') if mibBuilder.loadTexts: circuitBwdTDType.setDescription("Specifies the traffic descriptor type associated with the backward traffic descriptor parameters. The backward direction is 'out of the network' from the circuit endpoint. TDType is independent to of the end-point protocol.") circuitBwdTDParam1 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 30), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitBwdTDParam1.setStatus('current') if mibBuilder.loadTexts: circuitBwdTDParam1.setDescription('Parameter 1 of the backward traffic descriptor of type circuitBwdTdType. For type Ethernet, this value corresponds to CIR. For type Frame Relay, this value corresponds to CIR. For type ATM-CBR, this value corresponds to PCR(0+1).') circuitBwdTDParam2 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 31), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitBwdTDParam2.setStatus('current') if mibBuilder.loadTexts: circuitBwdTDParam2.setDescription('Parameter 2 of the backward traffic descriptor of type circuitBwdTdType. For type Ethernet, this value corresponds to Bc. For type Frame Relay, this value corresponds to Bc.') circuitBwdTDParam3 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 32), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitBwdTDParam3.setStatus('current') if mibBuilder.loadTexts: circuitBwdTDParam3.setDescription('Parameter 3 of the backward traffic descriptor of type circuitBwdTdType. For type Ethernet, this value corresponds to Be. For type Frame Relay, this value corresponds to Be.') circuitBwdTDParam4 = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 33), Unsigned32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitBwdTDParam4.setStatus('current') if mibBuilder.loadTexts: circuitBwdTDParam4.setDescription('Parameter 4 of the backward traffic descriptor of type circuitBwdTdType.') circuitClassOfService = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 34), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 7))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitClassOfService.setStatus('current') if mibBuilder.loadTexts: circuitClassOfService.setDescription('Specifies the class of service for Data or non-TDM circuits. This value is in the range of 0-7 where 1 has the highest priority and 7 has the lowest.') circuitAdminState = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 35), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2), ("enabledButNotUsed", 3)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitAdminState.setStatus('current') if mibBuilder.loadTexts: circuitAdminState.setDescription("Administrative state of the circuit. Circuits in the disabled state do not consume network resources such as bandwidth. The network continuously attempts to establish circuits until successful while in the enabled state. The 'enabledButNotUsed' state tells that the transport segment is established and network resources are assigned to it, but, traffic is not allowed to pass though it.") circuitOperState = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 36), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("test", 3)))).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOperState.setStatus('current') if mibBuilder.loadTexts: circuitOperState.setDescription('Aperational state of the circuit. Circuits in the disabled state do not consume network resources such as bandwidth. The network continuously attempts to establish circuits until successful while in the enabled state.') circuitTimeSinceStatusChange = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 37), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitTimeSinceStatusChange.setStatus('current') if mibBuilder.loadTexts: circuitTimeSinceStatusChange.setDescription('Gives the time (in seconds) since the most recent status change.') circuitSetupPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 38), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitSetupPriority.setStatus('current') if mibBuilder.loadTexts: circuitSetupPriority.setDescription('If there are insufficient network resources for establishing all transport channels, this field specifies the priority of the transport channel.') circuitHoldPriority = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 39), Unsigned32()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitHoldPriority.setStatus('current') if mibBuilder.loadTexts: circuitHoldPriority.setDescription('If a number of transport channels of a low Setup Priority need to be cleared in order to release resources allowing for a higher priority (Setup) transport channel to be established, this field specifies the Hold priority where low Hold priority transport channels are cleared before higher Hold priority transport channels.') circuitIsRedundancyReqd = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 40), TruthValue()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitIsRedundancyReqd.setStatus('current') if mibBuilder.loadTexts: circuitIsRedundancyReqd.setDescription("Specifies if the circuit is to be established over rings that are logically configured as 'protected'. A protected ring could physically be in a fault state where one fiber has failed. A circuit that requires redundancy will be established over rings logically configured as 'protected' even though the current physical state of a protected ring may be in a fault state.") circuitPreferredEP1OptSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 41), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 26))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP1OptSlot.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP1OptSlot.setDescription('If the circuit spans one or two rings, this is the slot number of the first preferred ring. Preferred rings allow a manual overide of the routed circuit path.') circuitPreferredEP1OptPort = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 42), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP1OptPort.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP1OptPort.setDescription('If the circuit spans one or two rings, this is the port number of the first preferred ring.') circuitPreferredEP1OptVport = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 43), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP1OptVport.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP1OptVport.setDescription('If the circuit spans one or two rings, this is the lambda number of the first preferred ring.') circuitPreferredEP2OptSlot = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 44), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 26))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP2OptSlot.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP2OptSlot.setDescription('If the circuit spans two rings, this is the slot number of the second preferred ring. Preferred rings allow a manual overide of the routed circuit path.') circuitPreferredEP2OptPort = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 45), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP2OptPort.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP2OptPort.setDescription('If the circuit spans two rings, this is the port number of the second preferred ring.') circuitPreferredEP2OptVport = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 46), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitPreferredEP2OptVport.setStatus('current') if mibBuilder.loadTexts: circuitPreferredEP2OptVport.setDescription('If the circuit spans two rings, this is the lambda number of the second preferred ring.') circuitUseAlternateRing = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 47), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("yes", 1), ("no", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: circuitUseAlternateRing.setStatus('current') if mibBuilder.loadTexts: circuitUseAlternateRing.setDescription('Allows operator to specify whether an alternate ring can be used if the preferred ring(s) fail. This requires the ability to load-balance back onto the preferred ring once it becomes available. The format for this field is Boolean.') circuitInFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 48), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInFrames.setStatus('current') if mibBuilder.loadTexts: circuitInFrames.setDescription('Number of frames received at the ingress point and passed on to the circuit.') circuitInDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 49), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInDEFrames.setStatus('current') if mibBuilder.loadTexts: circuitInDEFrames.setDescription('Number of frames received at the ingress point and passed on to the circuit.') circuitInOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 50), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInOctets.setStatus('current') if mibBuilder.loadTexts: circuitInOctets.setDescription('Number of octets received at the ingress point and passed on to the circuit.') circuitInDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 51), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInDEOctets.setStatus('current') if mibBuilder.loadTexts: circuitInDEOctets.setDescription('Number of octets received at the ingress point and passed on to the circuit.') circuitInCLP0Cells = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 52), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInCLP0Cells.setStatus('current') if mibBuilder.loadTexts: circuitInCLP0Cells.setDescription('Number of cells received at the ingress point and passed on to the circuit.') circuitInCLP1Cells = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 53), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInCLP1Cells.setStatus('current') if mibBuilder.loadTexts: circuitInCLP1Cells.setDescription('Number of cells received at the ingress point and passed on to the circuit.') circuitInFramesDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 54), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInFramesDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInFramesDiscard.setDescription('Number of frames received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInDEFramesDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 55), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInDEFramesDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInDEFramesDiscard.setDescription('Number of frames received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInOctetsDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 56), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInOctetsDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInOctetsDiscard.setDescription('Number of octets received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInDEOctetsDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 57), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInDEOctetsDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInDEOctetsDiscard.setDescription('Number of octets received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInCLP0CellsDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 58), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInCLP0CellsDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInCLP0CellsDiscard.setDescription('Number of octets received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInCLP1CellsDiscard = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 59), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInCLP1CellsDiscard.setStatus('current') if mibBuilder.loadTexts: circuitInCLP1CellsDiscard.setDescription('Number of octets received at the ingress point but are discarded due to the non-conformance of the contract, i.e., it exceeds the traffic contract (BE).') circuitInFramesTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 60), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInFramesTagged.setStatus('current') if mibBuilder.loadTexts: circuitInFramesTagged.setDescription('Number of tagged frames received. A tagged frame represents non-conforming frames to the contract (when CIR < frame contract < BE). In these frames, the DE (Discard Enable) is set. ') circuitInOctetsTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 61), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInOctetsTagged.setStatus('current') if mibBuilder.loadTexts: circuitInOctetsTagged.setDescription('Number of tagged octets received. A tagged octet represents non-conforming octet to the contract (when CIR < octet contract < BE).In these octets, the DE (Discard Enable) is set.') circuitInCLP0CellsTagged = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 62), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitInCLP0CellsTagged.setStatus('current') if mibBuilder.loadTexts: circuitInCLP0CellsTagged.setDescription('Number of tagged octets received. A tagged octet represents non-conforming octet to the contract (when CIR < octet contract < BE).In these octets, the DE (Discard Enable) is set.') circuitOutFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 63), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutFrames.setStatus('current') if mibBuilder.loadTexts: circuitOutFrames.setDescription('Number of frames sent out through the circuit.') circuitOutDEFrames = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 64), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutDEFrames.setStatus('current') if mibBuilder.loadTexts: circuitOutDEFrames.setDescription('Number of frames sent out through the circuit.') circuitOutOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 65), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutOctets.setStatus('current') if mibBuilder.loadTexts: circuitOutOctets.setDescription('Number of octets sent out through the circuit.') circuitOutDEOctets = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 66), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutDEOctets.setStatus('current') if mibBuilder.loadTexts: circuitOutDEOctets.setDescription('Number of octets sent out through the circuit.') circuitOutCLP0Cells = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 67), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutCLP0Cells.setStatus('current') if mibBuilder.loadTexts: circuitOutCLP0Cells.setDescription('Number of cells sent out through the circuit.') circuitOutCLP1Cells = MibTableColumn((1, 3, 6, 1, 4, 1, 5812, 6, 8, 1, 68), Counter64()).setMaxAccess("readonly") if mibBuilder.loadTexts: circuitOutCLP1Cells.setStatus('current') if mibBuilder.loadTexts: circuitOutCLP1Cells.setDescription('Number of cells sent out through the circuit.') circuitInactive = NotificationType((1, 3, 6, 1, 4, 1, 5812) + (0,24)).setObjects(("CIRCUIT-MIB", "circuitReasonText")) if mibBuilder.loadTexts: circuitInactive.setDescription('Indicates that the circuit became inactive and specifies the reason for it becoming inactive') circuitActive = NotificationType((1, 3, 6, 1, 4, 1, 5812) + (0,25)).setObjects(("CIRCUIT-MIB", "circuitReasonText")) if mibBuilder.loadTexts: circuitActive.setDescription('Indicates that the circuit became active') circuitLoadBalancing = NotificationType((1, 3, 6, 1, 4, 1, 5812) + (0,26)).setObjects(("CIRCUIT-MIB", "circuitReasonText")) if mibBuilder.loadTexts: circuitLoadBalancing.setDescription('Indicates that the circuit underwent load balancing') mibBuilder.exportSymbols("CIRCUIT-MIB", circuitEndPoint2Protocol=circuitEndPoint2Protocol, circuitInDEOctets=circuitInDEOctets, circuitID=circuitID, circuitInOctetsDiscard=circuitInOctetsDiscard, circuitInCLP1CellsDiscard=circuitInCLP1CellsDiscard, circuitInFrames=circuitInFrames, circuitFwdTDParam4=circuitFwdTDParam4, circuitPreferredEP1OptVport=circuitPreferredEP1OptVport, circuitInCLP1Cells=circuitInCLP1Cells, circuitMIB=circuitMIB, circuitInDEFrames=circuitInDEFrames, circuitBwdTDParam1=circuitBwdTDParam1, circuitInCLP0CellsTagged=circuitInCLP0CellsTagged, circuitEventNumPerInterval=circuitEventNumPerInterval, circuitSrcIpAddr=circuitSrcIpAddr, circuitFailLocPort2=circuitFailLocPort2, circuitFwdTDType=circuitFwdTDType, circuitDestInterfaceNum=circuitDestInterfaceNum, circuitSrcConnectionID=circuitSrcConnectionID, circuitRowStatus=circuitRowStatus, circuitFailLocInterfaceNum2=circuitFailLocInterfaceNum2, circuitInFramesTagged=circuitInFramesTagged, circuitInCLP0CellsDiscard=circuitInCLP0CellsDiscard, circuitOutOctets=circuitOutOctets, circuitFwdTDParam1=circuitFwdTDParam1, circuitOutDEOctets=circuitOutDEOctets, circuitFailLocSlot1=circuitFailLocSlot1, circuitFwdTDParam3=circuitFwdTDParam3, circuitPreferredEP2OptSlot=circuitPreferredEP2OptSlot, circuitInDEFramesDiscard=circuitInDEFramesDiscard, circuitBwdTDParam2=circuitBwdTDParam2, circuitBwdTDParam3=circuitBwdTDParam3, circuitDestDescString=circuitDestDescString, circuitLoadBalanceInterval=circuitLoadBalanceInterval, circuitFailLocPort1=circuitFailLocPort1, circuitSetupPriority=circuitSetupPriority, circuitActive=circuitActive, circuitIsRedundancyReqd=circuitIsRedundancyReqd, circuitInFramesDiscard=circuitInFramesDiscard, circuitAdminState=circuitAdminState, circuitPreferredEP1OptSlot=circuitPreferredEP1OptSlot, circuitSrcInterfaceNum=circuitSrcInterfaceNum, circuitBwdTDParam4=circuitBwdTDParam4, circuitBwdTDType=circuitBwdTDType, circuitFailLocConnectionID2=circuitFailLocConnectionID2, circuitPreferredEP1OptPort=circuitPreferredEP1OptPort, circuitName=circuitName, circuitOperState=circuitOperState, circuitClassOfService=circuitClassOfService, circuitInDEOctetsDiscard=circuitInDEOctetsDiscard, circuitFailLocIpAddr=circuitFailLocIpAddr, circuitInCLP0Cells=circuitInCLP0Cells, circuitOutDEFrames=circuitOutDEFrames, circuitOldIpAddrToSwap=circuitOldIpAddrToSwap, circuitFwdTDParam2=circuitFwdTDParam2, circuitDestConnectionID=circuitDestConnectionID, circuitLoadBalancing=circuitLoadBalancing, circuitDestIpAddr=circuitDestIpAddr, circuitInOctetsTagged=circuitInOctetsTagged, circuitUseAlternateRing=circuitUseAlternateRing, circuitHoldPriority=circuitHoldPriority, PYSNMP_MODULE_ID=circuitMIB, circuitInactive=circuitInactive, circuitFailLocInterfaceNum1=circuitFailLocInterfaceNum1, circuitReasonText=circuitReasonText, circuitEndPoint1Protocol=circuitEndPoint1Protocol, circuitNewIpAddrToSwap=circuitNewIpAddrToSwap, circuitFailLocConnectionID1=circuitFailLocConnectionID1, circuitOutFrames=circuitOutFrames, circuitPreferredEP2OptVport=circuitPreferredEP2OptVport, circuitLoadBalanceNumPerInterval=circuitLoadBalanceNumPerInterval, circuitTimeSinceStatusChange=circuitTimeSinceStatusChange, circuitOutCLP0Cells=circuitOutCLP0Cells, circuitTable=circuitTable, circuitPreferredEP2OptPort=circuitPreferredEP2OptPort, circuitFailLocSlot2=circuitFailLocSlot2, circuitSrcDescString=circuitSrcDescString, circuitEntry=circuitEntry, circuitOutCLP1Cells=circuitOutCLP1Cells, circuitEventInterval=circuitEventInterval, circuitInOctets=circuitInOctets)
146.729412
3,536
0.795836
19556d177fed4def9f6818303c33e5aa562c38b8
904
py
Python
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
SortingAlgorithm/shell_sort.py
hpf0532/algorithms_demo
4f02444ee634295e5cbf8e5624d4e5b65931897d
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # author: hpf # create time: 2020/7/16 21:33 # file: shell_sort.py # IDE: PyCharm # (Shell Sort) # DLShell1959 # 1 if __name__ == '__main__': li = [34, 2, 13, 76, 54, 22, 90, 46, 13] print(li) shell_sort(li) print(li) # # # O(n2) #
21.52381
67
0.535398
19557822a163b70d4aa82e704dabbed7f22587fe
4,273
py
Python
tests/rl/test_rainbow.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
1
2022-03-01T09:16:57.000Z
2022-03-01T09:16:57.000Z
tests/rl/test_rainbow.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
tests/rl/test_rainbow.py
pocokhc/simple_rl
765f12f392f87e6897027905d74f1bced6a2b7bf
[ "MIT" ]
null
null
null
import unittest import srl from srl.test import TestRL if __name__ == "__main__": unittest.main(module=__name__, defaultTest="Test.test_verify_Pendulum", verbosity=2) # unittest.main(module=__name__, defaultTest="TestGrid.test_verify_Grid_naive", verbosity=2)
36.521368
101
0.670723
1955c95ee465de712840c70524c29d14aa03188f
353
py
Python
challenge_3/python/bryantpq/find_majority.py
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_3/python/bryantpq/find_majority.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_3/python/bryantpq/find_majority.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
if __name__ == "__main__": a = [2,2,3,7,5,7,7,7,4,7,2,7,4,5,6,7,7,8,6,7,7,8,10,12,29,30,19,10,7,7,7,7,7,7,7,7,7] print(find_majority(a))
19.611111
89
0.413598
1956211e1137a8ec3efab729e58887fd70b0e317
7,307
py
Python
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
1
2018-06-12T12:00:33.000Z
2018-06-12T12:00:33.000Z
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
null
null
null
data-structures/double-list.py
costincaraivan/cs-refresher
008fdb2af661310c65f656f017ec34e5df004424
[ "MIT" ]
null
null
null
# Completely silly exercises, in real life use: # Python lists: https://docs.python.org/3/tutorial/datastructures.html import unittest import logging logging.basicConfig(level=logging.INFO) # - DoublyLinkedListNode class. #-## # - DoublyLinkedList class. # Search method not included, has its own category. #-## # - TestDoublyLinkedList class. #-## if __name__ == "__main__": unittest.main(verbosity=2)
26.765568
72
0.596141
19580f1da14543fc46625b13a2d4fdf6ece370dd
888
py
Python
Ch. 2/tcp_server.py
Kediel/BHP
b0cd2aa82c95eef58f50d9d7d137fddcb70644cb
[ "MIT" ]
null
null
null
Ch. 2/tcp_server.py
Kediel/BHP
b0cd2aa82c95eef58f50d9d7d137fddcb70644cb
[ "MIT" ]
4
2017-07-27T17:34:24.000Z
2017-07-31T23:13:03.000Z
Ch. 2/tcp_server.py
Kediel/BHP
b0cd2aa82c95eef58f50d9d7d137fddcb70644cb
[ "MIT" ]
null
null
null
import socket import threading bind_ip = "0.0.0.0" bind_port = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((bind_ip, bind_port)) server.listen(5) print "[*] Listening on %s:%d" % (bind_ip, bind_port) # This is our client-handling thread while True: client, addr = server.accept() print "[*] Accepted connection from: %s:%d" % (addr[0], addr[1]) # Spin up our client thread to handle incoming data client_handler = threading.Thread(target = handle_client, args = (client,)) client_handler.start()
23.368421
79
0.614865
195b152f91cd032e891708e898116a34b190d47e
210
py
Python
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
null
null
null
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
40
2015-08-14T23:11:08.000Z
2019-11-11T22:27:29.000Z
setup.py
nycz/ishu
6596b6e330c3439516dbd6cafe48d99388874aba
[ "MIT" ]
null
null
null
import setuptools import site import sys # This is a workaround to allow --user and -e combined # See https://github.com/pypa/pip/issues/7953 site.ENABLE_USER_SITE = "--user" in sys.argv[1:] setuptools.setup()
26.25
54
0.752381
195cbcd5dccdd7c73a9db51970b9798eb35a32b9
466
py
Python
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
Python Programs/guess the number.py
sayanpoddar123/RTU-DigitalLibrary
658500ce3ee089d622cea0f6b49dfb8b485d0be6
[ "MIT" ]
null
null
null
#Guess program n=18 a=0 y = 1 print("Number of guesses is limited to only 4 times") while a<=3: z=int(input("Enter your choice=")) if z>n: print("Please less your number") a+=1 elif z<n: print("Please increase your number") a += 1 else: print("You win") print(y,"Number of guesses you take to finish the game") break print(4-y,"Guesses left") y+=1 if(a>3): print("Game over")
16.642857
64
0.555794
195cc099346d6a0faa355accfa24ab213925cda9
8,019
py
Python
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
59
2015-03-25T21:29:06.000Z
2022-01-17T22:48:05.000Z
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
11
2015-07-07T07:10:42.000Z
2021-11-21T12:47:42.000Z
src/soundsystem.py
WinterLicht/Chaos-Projectile
3fffb788b241b7baa4247c1e630d83a7210ddc2e
[ "CC-BY-4.0" ]
19
2015-07-13T06:44:44.000Z
2022-02-05T03:09:27.000Z
""" .. module:: soundsystem :Platform: Unix, Windows :Synopsis: Sound system """ import os import pygame import events import ai
43.819672
111
0.60419
195d27bed09f6f47effd9b2ab9128a9b8b6d2db2
2,227
py
Python
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
hammer/django_bulk/bulk_create_test.py
awolfly9/hammer
03add3037461154fd764bb3340e68393e16f015f
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- import django import os import sys import datetime import random import time os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings' django.setup() from web.other.models import BilibiliPlay from .helper import bulk_create if __name__ == '__main__': BilibiliPlay.objects.all().delete() # test_once_get() # test_once_update() # test_default_bulk() test_custom_bulk() ''' 'UPDATE `other_bilibili_play` SET `name` = (CASE `id` WHEN %s THEN %s WHEN %s THEN %s WHEN %s THEN %s WHEN %s THEN %s WHEN %s THEN %s ELSE `name` END) WHERE `id` in (%s, %s, %s, %s, %s)' '''
26.511905
186
0.606646
195d837e267b2d3b0b05977370db15211b8d4942
37,304
py
Python
tests/rnacentral/search_export/exporter_test.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
1
2018-08-09T14:41:16.000Z
2018-08-09T14:41:16.000Z
tests/rnacentral/search_export/exporter_test.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
60
2015-02-04T16:43:53.000Z
2022-01-27T10:28:43.000Z
tests/rnacentral/search_export/exporter_test.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import print_function import json import operator as op import os import re import subprocess import tempfile import xml.etree.ElementTree as ET from functools import lru_cache from xml.dom import minidom import pytest import six from rnacentral_pipeline.rnacentral.search_export import exporter from tests.helpers import run_range_as_single, run_with_replacements # Parse out all UPIs # Create temp table of UPI to get metadata for # Run queries generating all metadata for those UPIs # Delete UPI table METADATA = None META_REPLACEMENTS = { "crs.sql": ( "WHERE", "WHERE features.upi || '_' || features.taxid IN ({urs})\nAND", ), "feedback.sql": ( "FROM rnc_feedback_overlap overlap", "FROM rnc_feedback_overlap overlap\n WHERE overlap.upi_taxid IN ({urs})", ), "go_annotations.sql": ( "GROUP BY anno.rna_id", "WHERE anno.rna_id IN ({urs})\nGROUP BY anno.rna_id", ), "interacting-proteins.sql": ( "WHERE", "WHERE related.source_urs_taxid in ({urs})\n AND", ), "interacting-rnas.sql": ( "WHERE", "WHERE related.source_urs_taxid in ({urs})\n AND", ), "secondary-structure.sql": ("WHERE", "WHERE pre.id in ({urs})\n AND"), } # Test that this assigns authors from > 1 publications to a single set def test_can_create_document_with_unicode(): key = op.itemgetter("text") val = sorted(load_and_get_additional("URS000009EE82_562", "product"), key=key) assert val == sorted( [ {"attrib": {"name": "product"}, "text": u"tRNA-Asp(gtc)"}, {"attrib": {"name": "product"}, "text": u"P-site tRNA Aspartate"}, {"attrib": {"name": "product"}, "text": u"transfer RNA-Asp"}, {"attrib": {"name": "product"}, "text": u"tRNA_Asp_GTC"}, {"attrib": {"name": "product"}, "text": u"tRNA-asp"}, {"attrib": {"name": "product"}, "text": u"tRNA Asp UC"}, {"attrib": {"name": "product"}, "text": u"tRNA-Asp"}, {"attrib": {"name": "product"}, "text": u"tRNA-Asp-GTC"}, {"attrib": {"name": "product"}, "text": u"ASPARTYL TRNA"}, {"attrib": {"name": "product"}, "text": u"tRNA-Asp (GTC)"}, ], key=key, ) def test_it_can_handle_a_list_in_ontology(): data = load_data("URS00003B5CA5_559292") results = data.findall("./cross_references/ref") xrefs = {as_xml_dict(r)["attrib"]["dbkey"] for r in results} assert {"ECO:0000202", u"GO:0030533", "SO:0000253"} & xrefs # @pytest.mark.skip() # def test_produces_correct_count(): # entries = exporter.range(db(), 1, 100) # with tempfile.NamedTemporaryFile() as out: # exporter.write(out, entries) # out.flush() # with open(out.name, 'r') as raw: # parsed = ET.parse(raw) # count = parsed.find('./entry_count') # assert count.text == '105'
31.829352
134
0.562781
195f3150d0257121a8dd90bf3f90e35c01b0fa1c
1,921
py
Python
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/threads/tests/test_thread_poll_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
import json from django.urls import reverse from misago.acl.testutils import override_acl from misago.categories.models import Category from misago.threads import testutils from misago.users.testutils import AuthenticatedUserTestCase
30.015625
93
0.605934
19618fa1e0fd69bf4ce89b6dd9ce0cf4d5bdf4a2
33
py
Python
PosPy/__init__.py
richierh/PointofSalePy
54fc11b5f167d361c75b6b1cb890c7020393d46c
[ "Apache-2.0" ]
null
null
null
PosPy/__init__.py
richierh/PointofSalePy
54fc11b5f167d361c75b6b1cb890c7020393d46c
[ "Apache-2.0" ]
null
null
null
PosPy/__init__.py
richierh/PointofSalePy
54fc11b5f167d361c75b6b1cb890c7020393d46c
[ "Apache-2.0" ]
null
null
null
#!usr/bin/python import __main__
11
16
0.787879
196257af7109744f1d324ddf851e3f43ec9a1048
457
py
Python
__init__.py
patilaja/sqlalchemy-challenge
96e210106d31beb74d4ec5e42b20f5fd2d60db05
[ "ADSL" ]
null
null
null
__init__.py
patilaja/sqlalchemy-challenge
96e210106d31beb74d4ec5e42b20f5fd2d60db05
[ "ADSL" ]
null
null
null
__init__.py
patilaja/sqlalchemy-challenge
96e210106d31beb74d4ec5e42b20f5fd2d60db05
[ "ADSL" ]
null
null
null
#Helper method that implements the logic to look up an application.
30.466667
68
0.617068
196317379bcca4ea114372256f94af6d980d0618
9,717
py
Python
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
demisto_sdk/commands/run_test_playbook/test_playbook_runner.py
SergeBakharev/demisto-sdk
17d00942a1bd33039a8aba9ddffecfd81008d275
[ "MIT" ]
null
null
null
import os import re import time import demisto_client from demisto_client.demisto_api.rest import ApiException from demisto_sdk.commands.common.tools import LOG_COLORS, get_yaml, print_color from demisto_sdk.commands.upload.uploader import Uploader SUCCESS_RETURN_CODE = 0 ERROR_RETURN_CODE = 1 ENTRY_TYPE_ERROR = 4
41.348936
115
0.653185
19646232e69c582660ce7e5151741a5f639b0987
871
py
Python
procurement_portal/records/migrations/0017_auto_20201024_1438.py
rikusv/procurement-portal-backend
a00eb1d9d9da7737a84d9c495db0f59b26839157
[ "MIT" ]
null
null
null
procurement_portal/records/migrations/0017_auto_20201024_1438.py
rikusv/procurement-portal-backend
a00eb1d9d9da7737a84d9c495db0f59b26839157
[ "MIT" ]
19
2020-09-18T17:10:55.000Z
2020-10-18T09:54:16.000Z
procurement_portal/records/migrations/0017_auto_20201024_1438.py
rikusv/procurement-portal-backend
a00eb1d9d9da7737a84d9c495db0f59b26839157
[ "MIT" ]
2
2020-10-21T17:58:44.000Z
2022-02-13T17:21:22.000Z
# Generated by Django 3.1.1 on 2020-10-24 14:38 from django.db import migrations, models
30.034483
90
0.61194
19646d9adaadbd2e2fc9af7b3104bea3fb1c2bae
1,030
py
Python
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
7
2020-12-15T13:25:43.000Z
2021-08-31T14:35:06.000Z
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
2
2020-11-12T12:46:28.000Z
2021-12-21T07:26:28.000Z
docs/examples/template_query.py
Fourcast/flycs_sdk
4bf206c26f59726d0ce0caa51bd3a893a34fed2a
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from flycs_sdk.entities import Entity from flycs_sdk.pipelines import Pipeline, PipelineKind from flycs_sdk.transformations import Transformation # Define your transformation SQL query using jinja template for the table name and define the list of table on which this transformation should be applied query = Transformation( name="my_query", query="SELECT * FROM {table_name}", version="1.0.0", tables=["tables1", "tables2"], ) # Then define your entity and pipeline as usual stage_config = { "raw": {"my_query": "1.0.0"}, "staging": {"my_query": "1.0.0"}, } entity1 = Entity("entity1", "1.0.0", stage_config) entity1.transformations = { "raw": {"my_query": query}, "staging": {"my_query": query}, } p1 = Pipeline( name="my_pipeline", version="1.0.0", schedule="* 12 * * *", entities=[entity1], kind=PipelineKind.VANILLA, start_time=datetime.now(tz=timezone.utc), ) # expose the pipeline to the module as usual pipelines = [p1]
27.105263
154
0.694175
1965469fd09240b19440049eb433930a5143a25d
13,252
py
Python
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
try/run_eval.py
CleverShovel/AIJ2020-digital-peter
baf07200e607cd39398fc0db1ba699c7af5cea77
[ "MIT" ]
null
null
null
import torch.nn.functional as F import torch.nn as nn import torch import torchvision.transforms.functional as VF from PIL import Image import numpy as np import os from os.path import join from collections import Counter # device = torch.device("cuda" if torch.cuda.is_available() else "cpu") import math from ctcdecode import CTCBeamDecoder import multiprocessing n_cpus = multiprocessing.cpu_count() # letters = [' ', ')', '+', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '[', ']', 'i', 'k', 'l', '|', '', '', # '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', # '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''] letters = list(' ()+/0123456789[]abdefghiklmnoprstu|') std, mean = (0.3847, 0.3815, 0.3763), (0.6519, 0.6352, 0.5940) # CNN-BLSTM # # https://github.com/mf1024/Batch-Renormalization-PyTorch/blob/master/batch_renormalization.py # # Batch Renormalization for convolutional neural nets (2D) implementation based # # on https://arxiv.org/abs/1702.03275 # class BatchNormalization2D(nn.Module): # def __init__(self, num_features, eps=1e-05, momentum = 0.1): # super().__init__() # self.eps = eps # self.momentum = torch.tensor( (momentum), requires_grad = False) # self.gamma = nn.Parameter(torch.ones((1, num_features, 1, 1), requires_grad=True)) # self.beta = nn.Parameter(torch.zeros((1, num_features, 1, 1), requires_grad=True)) # self.running_avg_mean = torch.ones((1, num_features, 1, 1), requires_grad=False) # self.running_avg_std = torch.zeros((1, num_features, 1, 1), requires_grad=False) # def forward(self, x): # device = self.gamma.device # batch_ch_mean = torch.mean(x, dim=(0,2,3), keepdim=True).to(device) # batch_ch_std = torch.clamp(torch.std(x, dim=(0,2,3), keepdim=True), self.eps, 1e10).to(device) # self.running_avg_std = self.running_avg_std.to(device) # self.running_avg_mean = self.running_avg_mean.to(device) # self.momentum = self.momentum.to(device) # if self.training: # x = (x - batch_ch_mean) / batch_ch_std # x = x * self.gamma + self.beta # else: # x = (x - self.running_avg_mean) / self.running_avg_std # x = self.gamma * x + self.beta # self.running_avg_mean = self.running_avg_mean + self.momentum * (batch_ch_mean.data.to(device) - self.running_avg_mean) # self.running_avg_std = self.running_avg_std + self.momentum * (batch_ch_std.data.to(device) - self.running_avg_std) # return x # class BatchRenormalization2D(nn.Module): # def __init__(self, num_features, eps=1e-05, momentum=0.01, r_d_max_inc_step = 0.0001): # super().__init__() # self.eps = eps # self.momentum = torch.tensor( (momentum), requires_grad = False) # self.gamma = nn.Parameter(torch.ones((1, num_features, 1, 1)), requires_grad=True) # self.beta = nn.Parameter(torch.zeros((1, num_features, 1, 1)), requires_grad=True) # self.running_avg_mean = torch.ones((1, num_features, 1, 1), requires_grad=False) # self.running_avg_std = torch.zeros((1, num_features, 1, 1), requires_grad=False) # self.max_r_max = 3.0 # self.max_d_max = 5.0 # self.r_max_inc_step = r_d_max_inc_step # self.d_max_inc_step = r_d_max_inc_step # self.r_max = torch.tensor( (1.0), requires_grad = False) # self.d_max = torch.tensor( (0.0), requires_grad = False) # def forward(self, x): # device = self.gamma.device # batch_ch_mean = torch.mean(x, dim=(0,2,3), keepdim=True).to(device) # batch_ch_std = torch.clamp(torch.std(x, dim=(0,2,3), keepdim=True), self.eps, 1e10).to(device) # self.running_avg_std = self.running_avg_std.to(device) # self.running_avg_mean = self.running_avg_mean.to(device) # self.momentum = self.momentum.to(device) # self.r_max = self.r_max.to(device) # self.d_max = self.d_max.to(device) # if self.training: # r = torch.clamp(batch_ch_std / self.running_avg_std, 1.0 / self.r_max, self.r_max).to(device).data.to(device) # d = torch.clamp((batch_ch_mean - self.running_avg_mean) / self.running_avg_std, -self.d_max, self.d_max).to(device).data.to(device) # x = ((x - batch_ch_mean) * r )/ batch_ch_std + d # x = self.gamma * x + self.beta # if self.r_max < self.max_r_max: # self.r_max += self.r_max_inc_step * x.shape[0] # if self.d_max < self.max_d_max: # self.d_max += self.d_max_inc_step * x.shape[0] # else: # x = (x - self.running_avg_mean) / self.running_avg_std # x = self.gamma * x + self.beta # self.running_avg_mean = self.running_avg_mean + self.momentum * (batch_ch_mean.data.to(device) - self.running_avg_mean) # self.running_avg_std = self.running_avg_std + self.momentum * (batch_ch_std.data.to(device) - self.running_avg_std) # return x # class FullGatedConv2d(nn.Conv2d): # def __init__(self, in_channels, **kwargs): # super().__init__(in_channels, in_channels * 2, **kwargs) # self.channels = in_channels # self.sigm = nn.Sigmoid() # def forward(self, x): # x = super().forward(x) # gated_x = self.sigm(x[:, self.channels:, :, :]) # return x[:, :self.channels, :, :] * gated_x # class HTRFlorConvBlock(nn.Module): # def __init__(self, in_channels, out_channels, kernel_size): # super().__init__() # self.conv = nn.Conv2d(in_channels, out_channels, kernel_size) # self.prelu = nn.PReLU() # self.br = nn.BatchNorm2d(out_channels) # def forward(self, x): # x = self.br(self.prelu(self.conv(x))) # return x # class HTRFlor(nn.Module): # def __init__(self, htr_dropout=0.2, gru_dropout=0.5): # super().__init__() # self.conv_block1 = HTRFlorConvBlock(3, 16, kernel_size=(3, 3)) # self.gconv1 = FullGatedConv2d(16, kernel_size=(3, 3), padding=1) # self.pool1 = nn.MaxPool2d((2, 2)) # self.conv_block2 = HTRFlorConvBlock(16, 32, kernel_size=(3, 3)) # self.gconv2 = FullGatedConv2d(32, kernel_size=(3, 3), padding=1) # self.pool2 = nn.MaxPool2d((2, 2)) # self.conv_block3 = HTRFlorConvBlock(32, 40, kernel_size=(2, 4)) # self.gconv3 = FullGatedConv2d(40, kernel_size=(3, 3), padding=1) # self.drop3 = nn.Dropout2d(htr_dropout) # self.conv_block4 = HTRFlorConvBlock(40, 48, kernel_size=(3, 3)) # self.gconv4 = FullGatedConv2d(48, kernel_size=(3, 3), padding=1) # self.drop4 = nn.Dropout2d(htr_dropout) # self.conv_block5 = HTRFlorConvBlock(48, 56, kernel_size=(2, 4)) # self.gconv5 = FullGatedConv2d(56, kernel_size=(3, 3), padding=1) # self.drop5 = nn.Dropout2d(htr_dropout) # self.conv_block6 = HTRFlorConvBlock(56, 64, kernel_size=(3, 3)) # # self.pool = nn.MaxPool2d((1, 2)) # self.flatten = nn.Flatten(1, 2) # self.drop7 = nn.Dropout(gru_dropout) # self.lstm7 = nn.LSTM(64*24, 128, num_layers=3, dropout=gru_dropout, bidirectional=True, batch_first=True) # # self.lstm7 = nn.LSTM(64*24, 128, bidirectional=True, batch_first=True) # # self.linear7 = nn.Linear(2*128, 256) # # self.drop8 = nn.Dropout(gru_dropout) # # self.lstm8 = nn.LSTM(256, 128, bidirectional=True, batch_first=True) # self.linear8 = nn.Linear(2*128, len(letters) + 1) # def forward(self, x): # x = self.conv_block1(x) # x = self.pool1(self.gconv1(x)) # x = self.conv_block2(x) # x = self.pool2(self.gconv2(x)) # x = self.conv_block3(x) # x = self.drop3(self.gconv3(x)) # x = self.conv_block4(x) # x = self.drop4(self.gconv4(x)) # x = self.conv_block5(x) # x = self.drop5(self.gconv5(x)) # x = self.flatten(self.conv_block6(x)) # x = x.transpose(1, 2) # x, _ = self.lstm7(self.drop7(x)) # # x = self.linear7(x) # # x, _ = self.lstm8(self.drop8(x)) # x = self.linear8(x) # return x # def init_weights(m): # if type(m) == nn.Conv2d or type(m) == FullGatedConv2d: # nn.init.kaiming_uniform_(m.weight) # # nn.init.kaiming_uniform_(m.weight) model_path = 'language_model/train.binary' decoder = CTCBeamDecoder([*letters, '~'], model_path=None, alpha=0.01, blank_id=len(letters), beam_width=100, num_processes=n_cpus) # decoder = CTCBeamDecoder([*letters, '~'], # model_path=model_path, # alpha=0.1, # blank_id=len(letters), # beam_width=100, # num_processes=n_cpus) if __name__ == '__main__': main()
34.066838
145
0.60821
1966ed8573024a45a35bef1db87d4c67dcc7b5bc
496
py
Python
phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0002_ciudadano_fecha_nacimiento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-09 09:43 from __future__ import unicode_literals from django.db import migrations, models
24.8
94
0.633065
1967b5cbe9cc4d8e1820eb5ee22aea8355578e45
8,306
py
Python
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
5
2019-06-13T02:38:51.000Z
2021-07-29T03:32:41.000Z
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
1
2019-08-05T17:30:31.000Z
2019-08-05T17:30:31.000Z
experiments/track_deep_trial.py
tcstewar/davis_tracking
4813eeaf66bdfad7b90f17831f6b0946daa8cbdf
[ "MIT" ]
3
2019-06-05T18:42:14.000Z
2019-06-19T19:36:02.000Z
import pytry import os import random import nengo import nengo_extras import numpy as np import nengo_dl import tensorflow as tf import davis_tracking
44.655914
131
0.567903
196901465c6a28bf050c45315b7c684ef13a92ea
1,337
py
Python
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
1
2019-10-01T01:39:29.000Z
2019-10-01T01:39:29.000Z
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
7
2019-12-04T21:40:40.000Z
2020-06-26T21:49:51.000Z
apps/collection/tests/public/test_public_collection_list.py
magocod/django_repository
660664ba2321499e92c3c5c23719756db2569e90
[ "MIT" ]
1
2020-04-08T02:46:31.000Z
2020-04-08T02:46:31.000Z
""" ... """ # Django from django.conf import settings # local Django from apps.collection.models import Collection from apps.collection.serializers import CollectionSlugSerializer from apps.tests.fixtures import RepositoryTestCase PAGE_SIZE = settings.REST_FRAMEWORK["PAGE_SIZE"]
31.093023
86
0.703067
196a103d422e501e45fed5d95aa6423587fcbc43
2,033
py
Python
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
9
2020-04-28T17:26:42.000Z
2021-07-13T14:47:42.000Z
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
2
2021-09-08T01:55:51.000Z
2022-03-12T00:25:38.000Z
main.py
uditarora/fashion-product-classification
686f8a6c34c54f2a09baa7fba89fe446582e8408
[ "MIT" ]
1
2020-08-03T15:27:05.000Z
2020-08-03T15:27:05.000Z
import argparse import logging import os from src.train import setup_top20, setup_ft, setup_bottom logging.basicConfig(level=logging.INFO) logger = logging.getLogger('fashion') if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("-d", "--data", help="path to the dataset", required=True) parser.add_argument("--ckpt", help="path to checkpoint folder", default='ckpts') parser.add_argument("-m", "--multi", help="run multitask learning model", action="store_true") args = parser.parse_args() if not os.path.exists(args.ckpt): os.makedirs(args.ckpt) main(args.data, args.ckpt, args.multi)
37.648148
98
0.711264
196bb8f934a37aeb286c8e9a73930e525b7e413c
8,508
py
Python
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
33
2015-10-28T18:26:31.000Z
2021-10-10T21:19:31.000Z
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
464
2015-08-11T04:12:10.000Z
2018-02-21T21:29:11.000Z
src/toil_scripts/transfer_gtex_to_s3/transfer_gtex_to_s3.py
BD2KGenomics/toil-scripts
f878d863defcdccaabb7fe06f991451b7a198fb7
[ "Apache-2.0" ]
21
2015-09-08T18:07:49.000Z
2020-11-24T01:02:08.000Z
#!/usr/bin/env python2.7 """ Toil script to move TCGA data into an S3 bucket. Dependencies Curl: apt-get install curl Docker: wget -qO- https://get.docker.com/ | sh Toil: pip install toil S3AM: pip install --pre s3am """ import argparse import glob import hashlib import os import shutil import subprocess import tarfile from toil.job import Job # Convenience Functions def generate_unique_key(master_key_path, url): """ master_key_path: str Path to the BD2K Master Key (for S3 Encryption) url: str S3 URL (e.g. https://s3-us-west-2.amazonaws.com/bucket/file.txt) Returns: str 32-byte unique key generated for that URL """ with open(master_key_path, 'r') as f: master_key = f.read() assert len(master_key) == 32, 'Invalid Key! Must be 32 characters. ' \ 'Key: {}, Length: {}'.format(master_key, len(master_key)) new_key = hashlib.sha256(master_key + url).digest() assert len(new_key) == 32, 'New key is invalid and is not 32 characters: {}'.format(new_key) return new_key def docker_call(work_dir, tool_parameters, tool, java_opts=None, sudo=False, outfile=None): """ Makes subprocess call of a command to a docker container. tool_parameters: list An array of the parameters to be passed to the tool tool: str Name of the Docker image to be used (e.g. quay.io/ucsc_cgl/samtools) java_opts: str Optional commands to pass to a java jar execution. (e.g. '-Xmx15G') outfile: file Filehandle that stderr will be passed to sudo: bool If the user wants the docker command executed as sudo """ base_docker_call = 'docker run --log-driver=none --rm -v {}:/data'.format(work_dir).split() if sudo: base_docker_call = ['sudo'] + base_docker_call if java_opts: base_docker_call = base_docker_call + ['-e', 'JAVA_OPTS={}'.format(java_opts)] try: if outfile: subprocess.check_call(base_docker_call + [tool] + tool_parameters, stdout=outfile) else: subprocess.check_call(base_docker_call + [tool] + tool_parameters) except subprocess.CalledProcessError: raise RuntimeError('docker command returned a non-zero exit status: {}' ''.format(base_docker_call + [tool] + tool_parameters)) except OSError: raise RuntimeError('docker not found on system. Install on all nodes.') def parse_sra(path_to_config): """ Parses genetorrent config file. Returns list of samples: [ [id1, id1 ], [id2, id2], ... ] Returns duplicate of ids to follow UUID/URL standard. """ samples = [] with open(path_to_config, 'r') as f: for line in f.readlines(): if not line.isspace(): samples.append(line.strip()) return samples def tarball_files(work_dir, tar_name, uuid=None, files=None): """ Tars a group of files together into a tarball work_dir: str Current Working Directory tar_name: str Name of tarball uuid: str UUID to stamp files with files: str(s) List of filenames to place in the tarball from working directory """ with tarfile.open(os.path.join(work_dir, tar_name), 'w:gz') as f_out: for fname in files: if uuid: f_out.add(os.path.join(work_dir, fname), arcname=uuid + '.' + fname) else: f_out.add(os.path.join(work_dir, fname), arcname=fname) # Job Functions def start_batch(job, input_args): """ This function will administer 5 jobs at a time then recursively call itself until subset is empty """ samples = parse_sra(input_args['sra']) # for analysis_id in samples: job.addChildJobFn(download_and_transfer_sample, input_args, samples, cores=1, disk='30') def download_and_transfer_sample(job, input_args, samples): """ Downloads a sample from dbGaP via SRAToolKit, then uses S3AM to transfer it to S3 input_args: dict Dictionary of input arguments analysis_id: str An analysis ID for a sample in CGHub """ if len(samples) > 1: a = samples[len(samples)/2:] b = samples[:len(samples)/2] job.addChildJobFn(download_and_transfer_sample, input_args, a, disk='30G') job.addChildJobFn(download_and_transfer_sample, input_args, b, disk='30G') else: analysis_id = samples[0] work_dir = job.fileStore.getLocalTempDir() sudo = input_args['sudo'] # Acquire dbgap_key shutil.copy(input_args['dbgap_key'], os.path.join(work_dir, 'dbgap.ngc')) # Call to fastq-dump to pull down SRA files and convert to fastq if input_args['single_end']: parameters = [analysis_id] else: parameters = ['--split-files', analysis_id] docker_call(tool='quay.io/ucsc_cgl/fastq-dump:2.5.7--4577a6c1a3c94adaa0c25dd6c03518ee610433d1', work_dir=work_dir, tool_parameters=parameters, sudo=sudo) # Collect files and encapsulate into a tarball shutil.rmtree(os.path.join(work_dir, 'sra')) sample_name = analysis_id + '.tar.gz' if input_args['single_end']: r = [os.path.basename(x) for x in glob.glob(os.path.join(work_dir, '*.f*'))] tarball_files(work_dir, tar_name=sample_name, files=r) else: r1 = [os.path.basename(x) for x in glob.glob(os.path.join(work_dir, '*_1*'))] r2 = [os.path.basename(x) for x in glob.glob(os.path.join(work_dir, '*_2*'))] tarball_files(work_dir, tar_name=sample_name, files=r1 + r2) # Parse s3_dir to get bucket and s3 path key_path = input_args['ssec'] s3_dir = input_args['s3_dir'] bucket_name = s3_dir.lstrip('/').split('/')[0] base_url = 'https://s3-us-west-2.amazonaws.com/' url = os.path.join(base_url, bucket_name, sample_name) # Generate keyfile for upload with open(os.path.join(work_dir, 'temp.key'), 'wb') as f_out: f_out.write(generate_unique_key(key_path, url)) # Upload to S3 via S3AM s3am_command = ['s3am', 'upload', '--sse-key-file', os.path.join(work_dir, 'temp.key'), 'file://{}'.format(os.path.join(work_dir, sample_name)), 's3://' + bucket_name + '/'] subprocess.check_call(s3am_command) def main(): """ Transfer gTEX data from dbGaP (NCBI) to S3 """ # Define Parser object and add to toil parser = build_parser() Job.Runner.addToilOptions(parser) args = parser.parse_args() # Store inputs from argparse inputs = {'sra': args.sra, 'dbgap_key': args.dbgap_key, 'ssec': args.ssec, 's3_dir': args.s3_dir, 'single_end': args.single_end, 'sudo': args.sudo} # Sanity checks if args.ssec: assert os.path.isfile(args.ssec) if args.sra: assert os.path.isfile(args.sra) if args.dbgap_key: assert os.path.isfile(args.dbgap_key) # Start Pipeline Job.Runner.startToil(Job.wrapJobFn(start_batch, inputs), args) if __name__ == '__main__': main()
42.328358
118
0.629525
196bec7ed8b6cf58b1516910c7416d81061dacce
1,885
py
Python
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
tests/metrics/cpu_psutil_tests.py
shareablee/apm-agent-python
29f12ceb410b3c1a7f933b29dcecccf628dbbb6c
[ "BSD-3-Clause" ]
null
null
null
import time import pytest from elasticapm.utils import compat cpu_psutil = pytest.importorskip("elasticapm.metrics.sets.cpu_psutil") pytestmark = pytest.mark.psutil cpu_linux = pytest.importorskip("elasticapm.metrics.sets.cpu_linux")
33.660714
97
0.658886
196e9f2b4480f78817f1f39de8dbbca5da718152
3,785
py
Python
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
day11/main.py
josteinl/advent2020
f109f9c1ef4fcb14582cda6b114d7648000decc6
[ "Apache-2.0" ]
null
null
null
""" Day 11 - Seating """ from itertools import chain import collections if __name__ == '__main__': # Part one: # result = part_one() # print(f'Result {result}') result = part_two() print(f'Result {result}')
29.115385
91
0.57675
19709fd1d6df22996971f4e668193dabf3b6aadc
388
py
Python
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
3
2022-02-13T09:12:57.000Z
2022-03-08T23:41:03.000Z
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
4
2021-12-22T08:29:50.000Z
2022-03-02T18:48:53.000Z
firmware/pipelines.py
armijnhemel/FirmwareScraper
9684767bfbe076013386f6ee0b466f9282baf587
[ "MIT" ]
5
2019-11-19T06:26:07.000Z
2022-02-28T06:48:35.000Z
from scrapy.pipelines.files import FilesPipeline
16.869565
59
0.747423
1971dea6d61ad931626506926b94703bc0412249
2,843
py
Python
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/yolox/src/boxes.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ======================================================================================= """ box iou related """ from mindspore.ops import operations as P from mindspore.ops.primitive import constexpr def bboxes_iou(bboxes_a, bboxes_b, xyxy=True): """ calculate iou Args: bboxes_a: bboxes_b: xyxy: Returns: """ if bboxes_a.shape[1] != 4 or bboxes_b.shape[1] != 4: raise_bbox_error() if xyxy: tl = P.Maximum()(bboxes_a[:, None, :2], bboxes_b[:, :2]) br = P.Minimum()(bboxes_a[:, None, 2:], bboxes_b[:, 2:]) area_a = bboxes_a[:, 2:] - bboxes_a[:, :2] area_a = (area_a[:, 0:1] * area_a[:, 1:2]).squeeze(-1) area_b = bboxes_b[:, 2:] - bboxes_b[:, :2] area_b = (area_b[:, 0:1] * area_b[:, 1:2]).squeeze(-1) else: tl = P.Maximum()( (bboxes_a[:, None, :2] - bboxes_a[:, None, 2:] / 2), (bboxes_b[:, :2] - bboxes_b[:, 2:] / 2), ) br = P.Minimum()( (bboxes_a[:, None, :2] + bboxes_a[:, None, 2:] / 2), (bboxes_b[:, :2] + bboxes_b[:, 2:] / 2), ) area_a = (bboxes_a[:, 2:3] * bboxes_a[:, 3:4]).squeeze(-1) area_b = (bboxes_b[:, 2:3] * bboxes_b[:, 3:4]).squeeze(-1) en = (tl < br).astype(tl.dtype) en = (en[..., 0:1] * en[..., 1:2]).squeeze(-1) area_i = tl - br area_i = (area_i[:, :, 0:1] * area_i[:, :, 1:2]).squeeze(-1) * en return area_i / (area_a[:, None] + area_b - area_i) def batch_bboxes_iou(batch_bboxes_a, batch_bboxes_b, xyxy=True): """ calculate iou for one batch Args: batch_bboxes_a: batch_bboxes_b: xyxy: Returns: """ if batch_bboxes_a.shape[-1] != 4 or batch_bboxes_b.shape[-1] != 4: raise_bbox_error() ious = [] for i in range(len(batch_bboxes_a)): if xyxy: iou = bboxes_iou(batch_bboxes_a[i], batch_bboxes_b[i], True) else: iou = bboxes_iou(batch_bboxes_a[i], batch_bboxes_b[i], False) iou = P.ExpandDims()(iou, 0) ious.append(iou) ious = P.Concat(axis=0)(ious) return ious
30.569892
89
0.562082
19720b08a53678ae7b601ebc496e7b65a4ff6078
3,343
py
Python
main/control/welcome.py
lipis/crypto-pocket
ec40e9f49e521d7b095c9065f89b8888a871313a
[ "MIT" ]
4
2018-01-17T12:41:18.000Z
2018-01-26T18:59:57.000Z
main/control/welcome.py
lipis/crypto-pocket
ec40e9f49e521d7b095c9065f89b8888a871313a
[ "MIT" ]
43
2018-01-29T06:15:52.000Z
2018-09-19T02:14:40.000Z
main/control/welcome.py
lipis/crypto-pocket
ec40e9f49e521d7b095c9065f89b8888a871313a
[ "MIT" ]
null
null
null
# coding: utf-8 import flask from google.appengine.ext import ndb import auth import config import model from main import app ############################################################################### # Welcome ############################################################################### ############################################################################### # Sitemap stuff ############################################################################### ############################################################################### # Warmup request ###############################################################################
33.43
126
0.608436
1973e78021509b21a44ae56187ef66052677e85e
2,029
py
Python
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
14
2021-02-26T15:19:21.000Z
2022-03-31T18:49:12.000Z
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
null
null
null
qa_multi_span/model.py
chunchiehy/musst
1525f917d8802d18c302720125ef9720b9c743fd
[ "MIT" ]
1
2021-11-16T07:20:32.000Z
2021-11-16T07:20:32.000Z
from transformers import AlbertModel from transformers import AlbertPreTrainedModel import torch.nn as nn import torch import torch.nn.functional as F
33.816667
73
0.667817
19753cc35369937ec7625ed05051badbaa38c37c
1,160
py
Python
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
class_one/02_strings.py
nclairesays/intro-python-hackforla
65ab8584ab9d5082aaa405b40c47cbeacfff610c
[ "MIT" ]
null
null
null
# STRINGS # https://docs.python.org/3/tutorial/introduction.html#strings s = str(42) s # convert another data type into a string (casting) s = 'I like you' # examine a string s[0] # returns 'I' len(s) # returns 10 # string slicing like lists s[0:7] # returns 'I like ' s[6:] # returns 'you' s[-1] # returns 'u' # EXERCISE: Book Titles (Part 1) # 1) Extract the book title from the string # 2) Save each book title to a variable (ie book1_title) # 3) How many characters/elements are in each title? # Hint: {bookTitle} by {author}, {years} book1 = "Beyond the Door by Dick, Philip K., 1928-1982" book2 = "The Variable Man by Dick, Philip K., 1928-1982" book3 = "The Skull by Dick, Philip K., 1928-1982" # STRINGS - Part II # concatenate strings s3 = 'The meaning of life is' s4 = '42' s3 + ' ' + s4 # returns 'The meaning of life is 42' s3 + ' ' + str(42) # same thing # split a string into a list of substrings separated by a delimiter s = 'I like you' s.split(' ') # returns ['I','like','you'] s.split() # same thing ## Learn more with Automate the Boring Stuff: ## https://automatetheboringstuff.com/chapter1/
22.745098
67
0.655172
1975eb951bcdc39a34c55d4b1e7b13067352c07a
11,809
py
Python
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
32
2015-02-04T03:57:28.000Z
2021-01-17T13:19:02.000Z
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
33
2015-01-12T21:17:16.000Z
2018-03-14T22:54:13.000Z
amqpy/transport.py
veegee/amqpy
c5346b1f6910b8553ca96769d2c88a7807f83417
[ "MIT" ]
9
2015-02-17T04:44:31.000Z
2021-12-09T20:36:29.000Z
from __future__ import absolute_import, division, print_function __metaclass__ = type import errno import six import socket import ssl from abc import ABCMeta, abstractmethod import logging from threading import RLock from ssl import SSLError import datetime import time from . import compat from .proto import Frame from .concurrency import synchronized from .exceptions import UnexpectedFrame from .utils import get_errno from .spec import FrameType log = logging.getLogger('amqpy') compat.patch() _UNAVAIL = {errno.EAGAIN, errno.EINTR, errno.ENOENT} AMQP_PROTOCOL_HEADER = b'AMQP\x00\x00\x09\x01' # bytes([65, 77, 81, 80, 0, 0, 9, 1]) def send_heartbeat(self): """Send a heartbeat to the server """ self.last_heartbeat_sent = datetime.datetime.now() self.last_heartbeat_sent_monotonic = time.monotonic() self.write_frame(Frame(FrameType.HEARTBEAT)) def is_alive(self): """Check if connection is alive This method is the primary way to check if the connection is alive. Side effects: This method may send a heartbeat as a last resort to check if the connection is alive. :return: True if connection is alive, else False :rtype: bool """ if not self.sock: # we don't have a valid socket, this connection is definitely not alive return False if not self.connected: # the `transport` is not connected return False # recv with MSG_PEEK to check if the connection is alive # note: if there is data still in the buffer, this will not tell us anything # if hasattr(socket, 'MSG_PEEK') and not isinstance(self.sock, ssl.SSLSocket): # prev = self.sock.gettimeout() # self.sock.settimeout(0.0001) # try: # self.sock.recv(1, socket.MSG_PEEK) # except socket.timeout: # pass # except socket.error: # # the exception is usually (always?) a ConnectionResetError in Python 3.3+ # log.debug('socket.error, connection is closed') # return False # finally: # self.sock.settimeout(prev) # send a heartbeat to check if the connection is alive try: self.send_heartbeat() except socket.error: return False return True class SSLTransport(Transport): """Transport that works over SSL """ def _setup_transport(self): """Wrap the socket in an SSL object """ self.sock = ssl.wrap_socket(self.sock, **self.ssl_opts) def read(self, n, initial=False): """Read from socket According to SSL_read(3), it can at most return 16kb of data. Thus, we use an internal read buffer like `TCPTransport.read()` to get the exact number of bytes wanted. :param int n: exact number of bytes to read :return: data read :rtype: bytes """ return self._read(n, initial, _errnos=(errno.ENOENT, errno.EAGAIN, errno.EINTR)) def write(self, s): """Write a string out to the SSL socket fully """ try: write = self.sock.write except AttributeError: # works around a bug in python socket library raise IOError('Socket closed') else: while s: n = write(s) if not n: raise IOError('Socket closed') s = s[n:] class TCPTransport(Transport): """Transport that deals directly with TCP socket """ def read(self, n, initial=False): """Read exactly n bytes from the socket :param int n: exact number of bytes to read :return: data read :rtype: bytes """ return self._read(n, initial, _errnos=(errno.EAGAIN, errno.EINTR)) def create_transport(host, port, connect_timeout, frame_max, ssl_opts=None): """Given a few parameters from the Connection constructor, select and create a subclass of Transport If `ssl_opts` is a dict, SSL will be used and `ssl_opts` will be passed to :func:`ssl.wrap_socket()`. In all other cases, SSL will not be used. :param host: host :param connect_timeout: connect timeout :param ssl_opts: ssl options passed to :func:`ssl.wrap_socket()` :type host: str :type connect_timeout: float or None :type ssl_opts: dict or None """ if isinstance(ssl_opts, dict): return SSLTransport(host, port, connect_timeout, frame_max, ssl_opts) else: return TCPTransport(host, port, connect_timeout, frame_max)
32.53168
110
0.597172
197751283e20cfc29bc1ae41f28e04248f1f81be
2,795
py
Python
code/aditya.py
nyamako/hacktoberfest-2018
bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f
[ "MIT" ]
67
2018-09-25T21:37:23.000Z
2020-11-03T02:03:22.000Z
code/aditya.py
nyamako/hacktoberfest-2018
bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f
[ "MIT" ]
245
2018-09-18T10:07:28.000Z
2020-09-30T19:00:11.000Z
code/aditya.py
nyamako/hacktoberfest-2018
bf7939d4b0cfb57a854a1644dbbae7ddf8af3c4f
[ "MIT" ]
1,192
2018-09-18T11:27:55.000Z
2021-10-17T10:24:37.000Z
import random import time #list of words words = ("python", "india", "japan", "mother", "computer", "watch", "keyboard", "compass", "bottle", "monitor", "switch", "shoes", "chain", "mobile", "coffee", "alfredo", "mouse", "stomach", "tablet", "mojito", "halapeneos", "pizza", "nutella", "peanut", "broccoli") n = 0 #defining class player #Function to fetch Jumbled Word! def getJumbledWord(): word = random.choice(words) origWord = word jumbledWord = ''.join(random.sample(word, len(word))) return jumbledWord, origWord #Function to show Result #Function for countdown timer (source: https://stackoverflow.com/questions/25189554/countdown-clock-0105) print('Welcome to JUmBLeD!') print('Guess the correct anwer to win points!') print('The one who scores the most out of 10 questions wins!') print('Note: Player who fails to give answer within 15 secs will loose!\n\n') print('Player1:') name1 = input('Enter your Name: ') player1 = Player(name1) print('Player2:') name2 = input('Enter your Name: ') player2 = Player(name2) while(n<=5): jumbledWord1, origWord1 = getJumbledWord() print('Question {}: \n\n'.format(n)) print('Player 1:') print('Your Jumbled word is: ', jumbledWord1) w1 = input('Player 1 Answer: ') if w1 == origWord1: player1.score += 1 print('correct!') print('Score: ', player1.score) print('\n') else: print("Incorrect!") print('Score: ', player1.score) print('\n') jumbledWord2, origWord2 = getJumbledWord() print('Player 2:') print('Your Jumbled word is: ', jumbledWord2) w2 = input('Player 2 Answer: ') if w2 == origWord2: player2.score += 1 print('correct!') print('Score: ', player2.score) print('\n') else: print("Incorrect!") print('Score: ', player2.score) print('\n') n += 1 showResult(player1, player2)
28.814433
105
0.608945
19775af3ac0af2c8563350d3a05ceb55a427a779
639
py
Python
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
tracking/urls.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.urls import path from . import views app_name = 'tracking' urlpatterns = [ path('user/login/', views.list_user_login, name='listuserlog'), path('user/<int:pk>/', views.telemetry_user_detail, name='userdetail'), path('project/', views.list_project_status_change, name='statuslist'), path('application/', views.list_application_change, name='applicationlist'), path('download/', views.download_telemetry, name='downloadtelemetry'), ]
37.588235
102
0.744914
1977d36fe2b99e051c145c78f7a06b38fad7e1e1
394
py
Python
admin_log_entries/settings.py
ataylor32/django-adminlogentries
6aa99b0444b3747369404bcaee4b50183f8194e0
[ "MIT" ]
5
2017-12-05T13:44:48.000Z
2021-07-29T14:04:57.000Z
admin_log_entries/settings.py
ataylor32/django-adminlogentries
6aa99b0444b3747369404bcaee4b50183f8194e0
[ "MIT" ]
null
null
null
admin_log_entries/settings.py
ataylor32/django-adminlogentries
6aa99b0444b3747369404bcaee4b50183f8194e0
[ "MIT" ]
null
null
null
from django.conf import settings default_settings = { 'has_module_permission_false': False, } ADMIN_LOG_ENTRIES_SETTINGS = {} compute_settings()
21.888889
69
0.756345
1979aba1d17f885ed392d4535bcc74a5d8e636bc
464
py
Python
lwrl/optimizers/multistep_optimizer.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
2
2019-04-11T11:55:48.000Z
2020-05-29T18:09:51.000Z
lwrl/optimizers/multistep_optimizer.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
6
2021-06-01T22:21:00.000Z
2022-03-11T23:24:36.000Z
lwrl/optimizers/multistep_optimizer.py
sealday/lwrl
52bcd67751e605c38db4afa609c58938c7034e8d
[ "MIT" ]
1
2019-04-12T03:09:47.000Z
2019-04-12T03:09:47.000Z
from lwrl.optimizers import MetaOptimizer
33.142857
69
0.709052
197a1ef6fa46d979a05f557aa10ddfcfec221a69
5,301
py
Python
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
4
2020-12-16T13:14:26.000Z
2022-03-26T08:54:12.000Z
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
1
2022-03-26T09:09:04.000Z
2022-03-26T09:09:04.000Z
saefportal/saef/views/connection_view.py
harry-consulting/SAEF
12ef43bbcc3178b8a988e21c1bef035881cf6e6d
[ "BSD-2-Clause" ]
1
2020-12-16T13:20:17.000Z
2020-12-16T13:20:17.000Z
from saef.connections import ConnectionFormHelper from ..models import Connection from ..forms import ConnectionTypeForm from saefportal.settings import MSG_SUCCESS_CONNECTION_UPDATE, MSG_SUCCESS_CONNECTION_VALID, \ MSG_ERROR_CONNECTION_INVALID, MSG_SUCCESS_CONNECTION_SAVED, MSG_ERROR_CONNECTION_SELECT_INVALID, \ MSG_SUCCESS_CONNECTION_DELETED from django.contrib import messages from django.shortcuts import redirect, render, get_object_or_404 from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.views import generic ADD_CONNECTION_TITLE = 'Add Connection' ADD_CONNECTION_TEMPLATE_NAME = "connection/add_connection.html" EDIT_CONNECTION_TEMPLATE_NAME = "connection/edit_connection_detail.html" POSTGRESQL_NAME = "PostgreSQL"
41.414063
105
0.716469
197a2e031fcb6bc8c3c7153d570a652bf400420f
6,206
py
Python
modules/niftitools.py
NeuroSainteAnne/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
2
2022-01-09T11:25:40.000Z
2022-03-24T04:00:11.000Z
modules/niftitools.py
yunfei920406/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
null
null
null
modules/niftitools.py
yunfei920406/synthFLAIR
ddb083e0ddbb5a7a3131e947c8a84809f25b93a1
[ "BSD-3-Clause" ]
2
2022-03-24T04:00:17.000Z
2022-03-25T00:36:13.000Z
import os import pydicom import glob import numpy as np import nibabel as nib from skimage import filters, morphology from scipy.ndimage.morphology import binary_fill_holes from scipy.ndimage import label from dipy.segment.mask import median_otsu def padvolume(volume): "Applies a padding/cropping to a volume in order to hav 256x256 size" padx1 = padx2 = pady1 = pady2 = 0 orig_shape = volume.shape if orig_shape[0] < 256 or orig_shape[1] < 256: if orig_shape[0] < 256: padx1 = int((256.0 - orig_shape[0])/2) padx2 = 256 - orig_shape[0] - padx1 if orig_shape[1] < 256: pady1 = int((256.0 - orig_shape[1])/2) pady2 = 256 - orig_shape[1] - pady1 volume = np.pad(volume, ((padx1, padx2),(pady1,pady2),(0,0)), mode="edge") cutx1 = cutx2 = cuty1 = cuty2 = 0 if orig_shape[0] > 256 or orig_shape[1] > 256: if orig_shape[0] > 256: cutx1 = int((orig_shape[0]-256.0)/2) cutx2 = orig_shape[0] - 256 - cutx1 volume = volume[cutx1:-cutx2,:,:] if orig_shape[1] > 256: cuty1 = int((orig_shape[1]-256.0)/2) cuty2 = orig_shape[1] - 256 - cuty1 volume = volume[:,cuty1:-cuty2,:] return volume, (padx1, padx2, pady1, pady2, cutx1, cutx2, cuty1, cuty2) def reversepad(volume, padspecs): "Reserves a previously applied padding" padx1 = padspecs[0] padx2 = padspecs[1] pady1 = padspecs[2] pady2 = padspecs[3] cutx1 = padspecs[4] cutx2 = padspecs[5] cuty1 = padspecs[6] cuty2 = padspecs[7] if cutx1>0 or cutx2>0: volume = np.pad(volume, ((cutx1, cutx2),(0,0),(0,0)), mode="edge") if cuty1>0 or cuty2>0: volume = np.pad(volume, ((0,0),(cuty1,cuty2),(0,0)), mode="edge") if padx1>0 or padx2>0: volume = volume[padx1:-padx2,:,:] if pady1>0 or pady2>0: volume = volume[:,pady1:-pady2,:] return volume def brain_component(vol): "Select the largest component in a mask (brain)" label_im, nb_labels = label(vol) label_count = np.bincount(label_im.ravel().astype(np.int)) label_count[0] = 0 return label_im == label_count.argmax() def normalize(vol, mask): "Normalization of a volume" masked_vol = vol[mask] mean_val, sd_val = np.mean(masked_vol), np.std(masked_vol) vol = (vol - mean_val) / sd_val return vol def adccompute(b0, b1000): "Computes ADC map" crudemask = (b0 >= 1) & (b1000 >= 1) # exclude zeros for ADC calculation adc = np.zeros(b0.shape, b1000.dtype) adc[crudemask] = -1. * float(1000) * np.log(b1000[crudemask] / b0[crudemask]) adc[adc < 0] = 0 return adc def maskcompute(b0, b1000): "Computes a brain mask using otsu method" b0_mask, mask0 = median_otsu(b0, 1, 1) b1000_mask, mask1000 = median_otsu(b1000, 1, 1) mask = binary_fill_holes(morphology.binary_dilation(brain_component(mask0 & mask1000))) mask = mask & (b0 >= 1) & (b1000 >= 1) return mask def splitdiffusion(diffdata): "Splits b0 and b1000 based on value mean" vol1 = diffdata[...,0] vol2 = diffdata[...,1] if vol1.mean() > vol2.mean(): b0 = vol1 b1000 = vol2 else: b0 = vol2 b1000 = vol1 return b0, b1000
31.502538
91
0.618595
197baac1afa4b35de9d60fc8d92a0d5870b20c39
1,937
py
Python
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
1
2020-11-04T02:28:32.000Z
2020-11-04T02:28:32.000Z
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
null
null
null
recognition.py
1159186649/Raspberry-Car
d1114793dd45be4e60a5d8a8da57b01ae3210f94
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from aip import AipFace from picamera import PiCamera import urllib.request import RPi.GPIO as GPIO import base64 import time import Main #idkey APP_ID = '*****' API_KEY = '**********' SECRET_KEY ='**********' client = AipFace(APP_ID, API_KEY, SECRET_KEY)# # IMAGE_TYPE='BASE64' camera = PiCamera()# # GROUP = 'usr1' # # def getimage(): # camera.resolution = (1024,768)#1024*768 # camera.start_preview()# # time.sleep(1) # camera.capture('faceimage.jpg')# # time.sleep(1) # camera.close() # #api # if __name__ == '__main__': print('') # getimage()# img = transimage()# res = go_api(img)# if res == 1:# print("") else: print("") print('40s') time.sleep(1)
25.826667
87
0.573051
197c315cc4fccd63e25903e81134070c4aabf0c5
2,939
py
Python
base/3base.py
chenliangold4j/MyPyDictionnary
3428333f42249f33732da71e420bdc41a412f594
[ "Apache-2.0" ]
null
null
null
base/3base.py
chenliangold4j/MyPyDictionnary
3428333f42249f33732da71e420bdc41a412f594
[ "Apache-2.0" ]
null
null
null
base/3base.py
chenliangold4j/MyPyDictionnary
3428333f42249f33732da71e420bdc41a412f594
[ "Apache-2.0" ]
null
null
null
L = ['Michael', 'Sarah', 'Tracy', 'Bob', 'Jack'] print(L[0:3]); # L[0:3]0330123 # 0 print(L[:3]); # PythonL[-1] print(L[-2:]) L = list(range(100)) # 10 print(L[:10:2]) # [:]list # tupletuple # print('ABCDEFG'[:3]) # d = {'a': 1, 'b': 2, 'c': 3} for key in d: print(key) # collectionsIterable from collections.abc import Iterable print(isinstance('abc', Iterable)) print(isinstance([1, 2, 3], Iterable)) # Pythonenumeratelist-for for i, value in enumerate(['A', 'B', 'C']): print(i, value) # print(list(range(1, 11))); print([x * x for x in range(1, 11)]) print([m + n for m in 'ABC' for n in 'XYZ']) # import os print([d for d in os.listdir('.')]) # fordictitems()keyvalue d = {'x': 'A', 'y': 'B', 'z': 'C'} for k, v in d.items(): print(k, '=', v) L = ['Hello', 'World', 'IBM', 'Apple'] print([s.lower() for s in L]) # Pythongenerator L = [x * x for x in range(10)] print(L) g = (x * x for x in range(10)) print(g) # Lg[]()Llistggenerator print(next(g)) print(next(g)) print(next(g)) print(next(g)) # generatornext(g)gStopIteration # generatoryieldgenerator f = fib(6) print(f) # returngenerator # next()yieldyield # forgeneratorgeneratorreturnStopIterationStopIterationvalue g = fib(6) while True: try: x = next(g) print('g:', x) except StopIteration as e: print('Generator return value:', e.value) break # # IteratorlistdictstrIterableIterator # from collections.abc import Iterator print(isinstance((x for x in range(10)), Iterator)) # true print(isinstance((x for x in range(10)), Iterable)) # true print(isinstance([], Iterator)) # false print(isinstance([], Iterable)) # true print(isinstance({}, Iterator)) # false print(isinstance({}, Iterable)) # true print(isinstance('abc', Iterator)) # false print(isinstance('abc', Iterable)) # true # listdictstrIterableIteratoriter() # print(isinstance(iter([]), Iterator)) print(isinstance(iter('abc'), Iterator)) # PythonIteratorIteratornext()StopIteration # next() # Iterator # # Iteratorlist
27.726415
106
0.697856
197f119da149ba3627c410ef123a293d7183c17e
4,986
py
Python
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
rssxkcd.py
bkentropy/xkcd-updater
732b60428a9fdc79c2cd847623c7416cb4b6022d
[ "MIT" ]
null
null
null
#!/usr/local/bin/python2 import argparse import requests import feedparser import time import sys import sqlite3 import datetime # Command line args parser = argparse.ArgumentParser(description='Provide HipChat integration url to post xkcd comics') parser.add_argument('url', type=str, help='(string) a special url for posting to a hipchat room') parser.add_argument('-c', '--commit', action='store_true', help='check the output, and commit if it looks right') args = parser.parse_args() # Get rss feed from URL (https://xkcd.com/rss.xml) def check_rss_feed(cursor, feedurl, rssentries): row = cursor.execute("SELECT id FROM lastpub") lastts = row.fetchone() or ("",) req = requests.get(feedurl, headers={ "If-Modified-Since": lastts[0] }) if req.text: # get the rss feed data from the feedurl feed = feedparser.parse(feedurl) entries = feed.entries for i in range(len(entries)): e = Entry( entries[i]['title'], entries[i]['summary'].split('\"')[3], entries[i]['summary'].split('\"')[1], entries[i]['link'], entries[i]['published'], 0 ) rssentries.append(e) return req # Hipchat posting function # Database functions # Primary function if __name__ == "__main__": main()
33.689189
113
0.583233
197ff79f1f26876a9752bd0bf842c448b0d64426
401
py
Python
Conditional/Lista 1/Thiago/07.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
7
2021-05-25T16:49:20.000Z
2022-02-17T11:57:32.000Z
Conditional/Lista 1/Thiago/07.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
null
null
null
Conditional/Lista 1/Thiago/07.py
Vitor-ORB/algorithms-and-programming-1-ufms
10821e9b580b78b7f78c27e740f3ead9c6b9f0bd
[ "MIT" ]
8
2021-05-25T16:49:39.000Z
2021-09-30T18:02:07.000Z
# Leia 2 valores numricos e um smbolo correspondente a uma das operaes. # soma (+), subtrao(-), diviso(/) e multiplicao(*) n1, n2, op = input().split() n1 = int(n1) n2 = int(n2) if op == "+": print(n1 + n2) elif op == "-": print(n1 - n2) elif op == "/": print(n1 / n2) elif op == "*": print(n1 * n2) else: print("Sua operao matemtica no vlida.")
22.277778
76
0.55611
19822fbb662c35172c55da381ed0906814ac3187
2,000
py
Python
ciphers/caeser_cipher.py
nairraghav/ron-cipher
e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a
[ "MIT" ]
null
null
null
ciphers/caeser_cipher.py
nairraghav/ron-cipher
e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a
[ "MIT" ]
2
2021-02-02T23:46:26.000Z
2021-04-20T20:09:33.000Z
ciphers/caeser_cipher.py
nairraghav/ron-cipher
e7cbac6cd8f0fe30e71b7d7f26fddb8af4d6a88a
[ "MIT" ]
null
null
null
from ciphers.cipher_helper import get_character_map, flip_dict
29.411765
66
0.607
198277b32eac2b22c43af843c0ee4c66623b8afb
327
py
Python
instagram/migrations/0020_remove_profile_follow.py
01king-ori/Kings-instagram
5e3c523462883879fe33834d68bdf1ebe4b75d8d
[ "MIT" ]
3
2020-06-25T22:35:05.000Z
2022-01-11T03:50:08.000Z
instagram/migrations/0020_remove_profile_follow.py
01king-ori/Kings-instagram
5e3c523462883879fe33834d68bdf1ebe4b75d8d
[ "MIT" ]
5
2020-06-05T23:38:22.000Z
2021-06-10T19:05:02.000Z
instagram/migrations/0020_remove_profile_follow.py
01king-ori/Kings-instagram
5e3c523462883879fe33834d68bdf1ebe4b75d8d
[ "MIT" ]
5
2020-01-07T05:39:10.000Z
2021-09-14T05:31:08.000Z
# Generated by Django 2.2.6 on 2019-10-14 13:19 from django.db import migrations
18.166667
47
0.590214
1982e8dcbffc500675e9501f2db4214567aa2081
24,054
py
Python
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ca_qc_districts/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
# coding: utf-8 import re from datetime import date import boundaries # Noting that the "union" merge strategy fails with: # # GEOS_ERROR: TopologyException: found non-noded intersection between # LINESTRING (...) and LINESTRING (...) # # django.contrib.gis.geos.error.GEOSException: Could not initialize GEOS Geometry with given input. # # So, we instead use the "combine" merge strategy. # Generated by sets.rb and then edited. sets = { 10043: ["Rimouski", "districts"], 10070: ["Saint-Fabien", "districts"], 1023: ["Les les-de-la-Madeleine", "districts"], 11040: ["Trois-Pistoles", "quartiers"], 12015: ["Saint-Antonin", "districts"], 12072: ["Rivire-du-Loup", "districts"], 13073: ["Tmiscouata-sur-le-Lac", "districts"], 13095: ["Pohngamook", "quartiers"], 15013: ["La Malbaie", "districts"], 15035: ["Clermont", "districts"], 15058: ["Saint-Simon", "districts"], 16013: ["Baie-Saint-Paul", "districts"], 16055: ["Saint-Urbain", "districts"], 17055: ["Saint-Aubert", "districts"], 18050: ["Montmagny", "districts"], 19055: ["Sainte-Claire", "districts"], 19068: ["Saint-Henri", "districts"], 19097: ["Saint-Charles-de-Bellechasse", "districts"], 19105: ["Beaumont", "districts"], 2005: ["Perc", "districts"], 2010: ["Sainte-Thrse-de-Gasp", "districts"], 2015: ["Grande-Rivire", "districts"], 2028: ["Chandler", "districts"], 2047: ["Port-DanielGascons", "districts"], 21010: ["Saint-Ferrol-les-Neiges", "districts"], 21045: ["Boischatel", "districts"], 22005: ["Sainte-Catherine-de-la-Jacques-Cartier", "districts"], 22010: ["Fossambault-sur-le-Lac", "districts"], 22015: ["Lac-Saint-Joseph", "districts"], 22035: ["Stoneham-et-Tewkesbury", "districts"], 22040: ["Lac-Beauport", "districts"], 22045: ["Sainte-Brigitte-de-Laval", "districts"], 23027: ["Qubec", "districts"], 23057: ["L'Ancienne-Lorette", "districts"], 23072: ["Saint-Augustin-de-Desmaures", "districts"], 25213: ["Lvis", "districts"], 26030: ["Sainte-Marie", "districts"], 26063: ["Saint-Isidore", "districts"], 27028: ["Beauceville", "districts"], 27043: ["Saint-Joseph-de-Beauce", "districts"], 29073: ["Saint-Georges", "districts"], 30010: ["Notre-Dame-des-Bois", "districts"], 30025: ["Frontenac", "districts"], 30030: ["Lac-Mgantic", "districts"], 30045: ["Nantes", "districts"], 3005: ["Gasp", "quartiers"], 3010: ["Cloridorme", "districts"], 31015: ["Disraeli", "districts"], 31056: ["Adstock", "districts"], 31084: ["Thetford Mines", "districts"], 31122: ["East Broughton", "districts"], 32013: ["Saint-Ferdinand", "districts"], 32033: ["Princeville", "districts"], 32040: ["Plessisville", "districts"], 32065: ["Lyster", "districts"], 33045: ["Saint-Agapit", "districts"], 33052: ["Saint-Flavien", "districts"], 34030: ["Cap-Sant", "districts"], 34038: ["Saint-Basile", "districts"], 34120: ["Lac-Sergent", "quartiers"], 35027: ["Saint-Tite", "districts"], 36033: ["Shawinigan", "districts"], 37067: ["Trois-Rivires", "districts"], 37230: ["Saint-Maurice", "districts"], 37235: ["Notre-Dame-du-Mont-Carmel", "districts"], 39060: ["Saint-Christophe-d'Arthabaska", "districts"], 39062: ["Victoriaville", "districts"], 4037: ["Sainte-Anne-des-Monts", "districts"], 41038: ["Cookshire-Eaton", "districts"], 41098: ["Weedon", "districts"], 42020: ["Saint-Franois-Xavier-de-Brompton", "districts"], 42025: ["Saint-Denis-de-Brompton", "districts"], 42032: ["Racine", "districts"], 42098: ["Richmond", "districts"], 42100: ["Saint-Claude", "districts"], 42110: ["Cleveland", "districts"], 43027: ["Sherbrooke", "districts"], 44071: ["Compton", "districts"], 45060: ["Sainte-Catherine-de-Hatley", "districts"], 45072: ["Magog", "districts"], 46050: ["Dunham", "districts"], 46058: ["Sutton", "districts"], 46075: ["Lac-Brome", "districts"], 46078: ["Bromont", "districts"], 46080: ["Cowansville", "quartiers"], 46112: ["Farnham", "districts"], 47017: ["Granby", "districts"], 47025: ["Waterloo", "districts"], 47047: ["Roxton Pond", "districts"], 48028: ["Acton Vale", "districts"], 49048: ["Saint-Germain-de-Grantham", "districts"], 49058: ["Drummondville", "districts"], 49070: ["Saint-Cyrille-de-Wendover", "districts"], 50042: ["Saint-Lonard-d'Aston", "districts"], 51015: ["Louiseville", "districts"], 52007: ["Lavaltrie", "districts"], 52017: ["Lanoraie", "districts"], 52035: ["Berthierville", "districts"], 52040: ["Sainte-Genevive-de-Berthier", "districts"], 52045: ["Saint-Ignace-de-Loyola", "districts"], 52080: ["Saint-Gabriel", "districts"], 52095: ["Mandeville", "districts"], 53040: ["Saint-Roch-de-Richelieu", "districts"], 53050: ["Saint-Joseph-de-Sorel", "quartiers"], 53052: ["Sorel-Tracy", "districts"], 53065: ["Sainte-Anne-de-Sorel", "districts"], 54008: ["Saint-Pie", "districts"], 54017: ["Saint-Damase", "districts"], 54048: ["Saint-Hyacinthe", "districts"], 54060: ["Saint-Dominique", "districts"], 55008: ["Ange-Gardien", "districts"], 55023: ["Saint-Csaire", "districts"], 55037: ["Rougemont", "districts"], 55048: ["Marieville", "districts"], 55057: ["Richelieu", "districts"], 56083: ["Saint-Jean-sur-Richelieu", "districts"], 57005: ["Chambly", "districts"], 57010: ["Carignan", "districts"], 57020: ["Saint-Basile-le-Grand", "districts"], 57025: ["McMasterville", "districts"], 57030: ["Otterburn Park", "districts"], 57033: ["Saint-Jean-Baptiste", "districts"], 57035: ["Mont-Saint-Hilaire", "districts"], 57040: ["Beloeil", "districts"], 57045: ["Saint-Mathieu-de-Beloeil", "districts"], 58007: ["Brossard", "districts"], 58012: ["Saint-Lambert", "districts"], 58033: ["Boucherville", "districts"], 58037: ["Saint-Bruno-de-Montarville", "districts"], 58227: ["Longueuil", "districts"], 59010: ["Sainte-Julie", "districts"], 59015: ["Saint-Amable", "districts"], 59020: ["Varennes", "districts"], 59025: ["Verchres", "districts"], 59035: ["Contrecoeur", "districts"], 60005: ["Charlemagne", "districts"], 60013: ["Repentigny", "districts"], 60028: ["L'Assomption", "districts"], 60035: ["L'piphanie", "districts"], 61025: ["Joliette", "districts"], 61027: ["Saint-Thomas", "districts"], 61030: ["Notre-Dame-des-Prairies", "districts"], 61040: ["Saint-Ambroise-de-Kildare", "districts"], 61050: ["Sainte-Mlanie", "districts"], 62007: ["Saint-Flix-de-Valois", "districts"], 62025: ["Saint-Alphonse-Rodriguez", "districts"], 62037: ["Rawdon", "districts"], 62047: ["Chertsey", "districts"], 62060: ["Saint-Donat", "districts"], 62075: ["Saint-Damien", "districts"], 63030: ["Saint-Esprit", "districts"], 63035: ["Saint-Roch-de-l'Achigan", "districts"], 63048: ["Saint-LinLaurentides", "districts"], 63055: ["Saint-Calixte", "districts"], 63060: ["Sainte-Julienne", "districts"], 64008: ["Terrebonne", "districts"], 64015: ["Mascouche", "districts"], 65005: ["Laval", "districts"], 66007: ["Montral-Est", "districts"], 66023: ["Montral", "districts"], 66032: ["Westmount", "districts"], 66058: ["Cte-Saint-Luc", "districts"], 66072: ["Mont-Royal", "districts"], 66087: ["Dorval", "districts"], 66097: ["Pointe-Claire", "districts"], 66102: ["Kirkland", "districts"], 66107: ["Beaconsfield", "districts"], 66117: ["Sainte-Anne-de-Bellevue", "districts"], 66127: ["Senneville", "districts"], 66142: ["Dollard-Des Ormeaux", "districts"], 67010: ["Saint-Philippe", "districts"], 67015: ["La Prairie", "districts"], 67020: ["Candiac", "districts"], 67025: ["Delson", "quartiers"], 67030: ["Sainte-Catherine", "districts"], 67035: ["Saint-Constant", "districts"], 67045: ["Mercier", "districts"], 67050: ["Chteauguay", "districts"], 67055: ["Lry", "districts"], 68020: ["Sainte-Clotilde", "districts"], 68050: ["Saint-Michel", "districts"], 68055: ["Saint-Rmi", "districts"], 69017: ["Saint-Chrysostome", "districts"], 69055: ["Huntingdon", "quartiers"], 69070: ["Saint-Anicet", "districts"], 70012: ["Sainte-Martine", "districts"], 70022: ["Beauharnois", "districts"], 70035: ["Saint-Louis-de-Gonzague", "districts"], 70040: ["Saint-Stanislas-de-Kostka", "districts"], 70052: ["Salaberry-de-Valleyfield", "districts"], 7018: ["Causapscal", "districts"], 7047: ["Amqui", "districts"], 7057: ["Lac-au-Saumon", "districts"], 71025: ["Saint-Zotique", "districts"], 71033: ["Les Coteaux", "districts"], 71040: ["Coteau-du-Lac", "districts"], 71050: ["Les Cdres", "districts"], 71060: ["L'le-Perrot", "districts"], 71065: ["Notre-Dame-de-l'le-Perrot", "districts"], 71070: ["Pincourt", "districts"], 71083: ["Vaudreuil-Dorion", "districts"], 71100: ["Hudson", "districts"], 71105: ["Saint-Lazare", "districts"], 71133: ["Rigaud", "districts"], 72005: ["Saint-Eustache", "districts"], 72010: ["Deux-Montagnes", "districts"], 72015: ["Sainte-Marthe-sur-le-Lac", "districts"], 72020: ["Pointe-Calumet", "districts"], 72025: ["Saint-Joseph-du-Lac", "districts"], 72032: ["Oka", "districts"], 72043: ["Saint-Placide", "districts"], 73005: ["Boisbriand", "districts"], 73010: ["Sainte-Thrse", "districts"], 73015: ["Blainville", "districts"], 73035: ["Sainte-Anne-des-Plaines", "districts"], 74005: ["Mirabel", "districts"], 75005: ["Saint-Colomban", "districts"], 75017: ["Saint-Jrme", "districts"], 75028: ["Sainte-Sophie", "districts"], 75040: ["Prvost", "districts"], 76008: ["Saint-Andr-d'Argenteuil", "districts"], 76020: ["Lachute", "districts"], 76043: ["Brownsburg-Chatham", "districts"], 77022: ["Sainte-Adle", "districts"], 77035: ["Sainte-Anne-des-Lacs", "districts"], 77055: ["Lac-des-Seize-les", "districts"], 77060: ["Wentworth-Nord", "districts"], 78010: ["Val-David", "districts"], 78047: ["Saint-FaustinLac-Carr", "districts"], 78055: ["Montcalm", "districts"], 78070: ["Amherst", "districts"], 78095: ["Lac-Suprieur", "districts"], 78102: ["Mont-Tremblant", "districts"], 79078: ["Lac-des-corces", "districts"], 8053: ["Matane", "districts"], 81017: ["Gatineau", "districts"], 82005: ["L'Ange-Gardien", "districts"], 82015: ["Val-des-Monts", "districts"], 82020: ["Cantley", "districts"], 82025: ["Chelsea", "districts"], 82030: ["Pontiac", "districts"], 82035: ["La Pche", "districts"], 83065: ["Maniwaki", "quartiers"], 85045: ["Saint-Bruno-de-Guigues", "districts"], 86042: ["Rouyn-Noranda", "districts"], 87058: ["Macamic", "districts"], 87090: ["La Sarre", "quartiers"], 88022: ["Barraute", "districts"], 89008: ["Val-d'Or", "districts"], 89015: ["Malartic", "districts"], 89040: ["Senneterre", "quartiers"], 90012: ["La Tuque", "districts"], 9077: ["Mont-Joli", "districts"], 93005: ["Desbiens", "quartiers"], 93012: ["MtabetchouanLac--la-Croix", "districts"], 93020: ["Hbertville", "districts"], 93030: ["Saint-Bruno", "districts"], 93035: ["Saint-Gdon", "districts"], 93042: ["Alma", "districts"], 93045: ["Saint-Nazaire", "districts"], 93065: ["L'Ascension-de-Notre-Seigneur", "districts"], 93070: ["Saint-Henri-de-Taillon", "districts"], 94068: ["Saguenay", "districts"], 94235: ["Saint-Fulgence", "districts"], 94240: ["Saint-Honor", "districts"], 94245: ["Saint-David-de-Falardeau", "districts"], 94255: ["Saint-Ambroise", "districts"], 96020: ["Baie-Comeau", "districts"], 96025: ["Pointe-Lebel", "districts"], 96030: ["Pointe-aux-Outardes", "districts"], 96040: ["Ragueneau", "districts"], 97007: ["Sept-les", "districts"], 99060: ["Eeyou Istchee Baie-James", "quartiers"], } # Check the names with (replace `CODE`): # ogrinfo -al -geom=NO boundaries/ca_qc_districts | grep -B6 CODE | grep NM_DIS | sort # Check if required with: # ogrinfo -al -geom=NO boundaries/ca_qc_districts | grep -A9 ' 1\.10' for geographic_code, (name, type) in sets.items(): geographic_codes = [geographic_code] boundaries.register('%s %s' % (name, type), domain='%s, QC' % name, last_updated=date(2017, 11, 30), name_func=district_namer, id_func=district_ider, authority='Directeur gnral des lections du Qubec', licence_url='https://www.electionsquebec.qc.ca/francais/conditions-d-utilisation-de-notre-site-web.php', encoding='utf-8', extra={'division_id': 'ocd-division/country:ca/csd:24%05d' % geographic_code}, is_valid_func=lambda f, geographic_codes=geographic_codes: int(f.get('CO_MUNCP')) in geographic_codes, notes='Load the shapefile manually:\nfab alpheus update_boundaries:args="-r --merge combine -d data/shapefiles/public/boundaries/ca_qc_districts"', ) boundaries.register('Paroisse de Plessisville districts', domain='Plessisville, QC', last_updated=date(2017, 11, 30), name_func=district_namer, id_func=district_ider, authority='Directeur gnral des lections du Qubec', licence_url='https://www.electionsquebec.qc.ca/francais/conditions-d-utilisation-de-notre-site-web.php', encoding='utf-8', extra={'division_id': 'ocd-division/country:ca/csd:2432045'}, is_valid_func=lambda f: int(f.get('CO_MUNCP')) == 32045, ) # Check the names with (replace `CODE`): # ogrinfo -al -geom=NO boundaries/ca_qc_districts | grep -B3 CODE | sort | uniq # Check the identifiers with: # ogrinfo -al -geom=NO boundaries/ca_qc_districts | grep -B4 CODE municipalities_with_boroughs = [ { 'name': 'Lvis', 'geographic_code': 25213, 'boroughs': { 'ocd-division/country:ca/csd:2425213/borough:1': 'Desjardins', 'ocd-division/country:ca/csd:2425213/borough:2': 'Les Chutes-de-la-Chaudire-Est', 'ocd-division/country:ca/csd:2425213/borough:3': 'Les Chutes-de-la-Chaudire-Ouest', }, }, { 'name': 'Longueuil', 'geographic_code': 58227, 'boroughs': { 'ocd-division/country:ca/csd:2458227/borough:1': 'Le Vieux-Longueuil', 'ocd-division/country:ca/csd:2458227/borough:2': 'Greenfield Park', 'ocd-division/country:ca/csd:2458227/borough:3': 'Saint-Hubert', }, }, { 'name': 'Montral', 'geographic_code': 66023, 'boroughs': { 'ocd-division/country:ca/csd:2466023/borough:1': "Ahuntsic-Cartierville", 'ocd-division/country:ca/csd:2466023/borough:2': "Anjou", 'ocd-division/country:ca/csd:2466023/borough:3': "Cte-des-NeigesNotre-Dame-de-Grce", 'ocd-division/country:ca/csd:2466023/borough:4': "Lachine", 'ocd-division/country:ca/csd:2466023/borough:5': "LaSalle", 'ocd-division/country:ca/csd:2466023/borough:6': "L'le-BizardSainte-Genevive", 'ocd-division/country:ca/csd:2466023/borough:7': "MercierHochelaga-Maisonneuve", 'ocd-division/country:ca/csd:2466023/borough:8': "Montral-Nord", 'ocd-division/country:ca/csd:2466023/borough:9': "Outremont", 'ocd-division/country:ca/csd:2466023/borough:10': "Pierrefonds-Roxboro", 'ocd-division/country:ca/csd:2466023/borough:11': "Plateau-Mont-Royal", 'ocd-division/country:ca/csd:2466023/borough:12': "Rivire-des-PrairiesPointe-aux-Trembles", 'ocd-division/country:ca/csd:2466023/borough:13': "RosemontLa Petite-Patrie", 'ocd-division/country:ca/csd:2466023/borough:14': "Saint-Laurent", 'ocd-division/country:ca/csd:2466023/borough:15': "Saint-Lonard", 'ocd-division/country:ca/csd:2466023/borough:16': "Sud-Ouest", 'ocd-division/country:ca/csd:2466023/borough:17': "Verdun", 'ocd-division/country:ca/csd:2466023/borough:18': "Ville-Marie", 'ocd-division/country:ca/csd:2466023/borough:19': "VilleraySaint-MichelParc-Extension", }, }, { 'name': 'Qubec', 'geographic_code': 23027, 'boroughs': { 'ocd-division/country:ca/csd:2423027/borough:1': 'La Cit-Limoilou', 'ocd-division/country:ca/csd:2423027/borough:2': 'Les Rivires', 'ocd-division/country:ca/csd:2423027/borough:3': 'Sainte-FoySilleryCap-Rouge', 'ocd-division/country:ca/csd:2423027/borough:4': 'Charlesbourg', 'ocd-division/country:ca/csd:2423027/borough:5': 'Beauport', 'ocd-division/country:ca/csd:2423027/borough:6': 'La Haute-Saint-Charles', }, }, { 'name': 'Saguenay', 'geographic_code': 94068, 'boroughs': { 'ocd-division/country:ca/csd:2494068/borough:1': 'Chicoutimi', 'ocd-division/country:ca/csd:2494068/borough:2': 'Jonquire', 'ocd-division/country:ca/csd:2494068/borough:3': 'La Baie', }, }, { 'name': 'Sherbrooke', 'geographic_code': 43027, 'boroughs': { 'ocd-division/country:ca/csd:2443027/borough:1': 'Arrondissement 1', 'ocd-division/country:ca/csd:2443027/borough:2': 'Arrondissement 2', 'ocd-division/country:ca/csd:2443027/borough:3': 'Arrondissement 3', 'ocd-division/country:ca/csd:2443027/borough:4': 'Arrondissement 4', }, }, ] # @see http://www.toponymie.gouv.qc.ca/ct/toponymie-municipale/municipalites-arrondissements/arrondissement.aspx # @see http://www.mamrot.gouv.qc.ca/repertoire-des-municipalites/fiche/arrondissement/?tx_mamrotrepertoire_pi1[order]=asc_nom_mun for municipality in municipalities_with_boroughs: geographic_code = municipality['geographic_code'] geographic_name = municipality['name'] for division_id, name in municipality['boroughs'].items(): subdivision_id = int(division_id.rsplit(':', 1)[-1]) boundaries.register('%s districts' % name, domain='%s, %s, QC' % (name, geographic_name), last_updated=date(2017, 11, 30), name_func=district_namer, id_func=district_ider, authority='Directeur gnral des lections du Qubec', licence_url='https://www.electionsquebec.qc.ca/francais/conditions-d-utilisation-de-notre-site-web.php', encoding='utf-8', extra={'division_id': division_id}, is_valid_func=lambda f, geographic_code=geographic_code, subdivision_id=subdivision_id: int(f.get('CO_MUNCP')) == geographic_code and int(f.get('NO_ARON')) == subdivision_id, notes='Load the shapefile manually:\nfab alpheus update_boundaries:args="-r --merge combine -d data/shapefiles/public/boundaries/ca_qc_districts"', ) boundaries.register('%s boroughs' % geographic_name, domain='%s, QC' % geographic_name, last_updated=date(2017, 11, 30), name_func=borough_namer, id_func=lambda f: int(f.get('NO_ARON')), authority='Directeur gnral des lections du Qubec', licence_url='https://www.electionsquebec.qc.ca/francais/conditions-d-utilisation-de-notre-site-web.php', encoding='utf-8', extra={'division_id': 'ocd-division/country:ca/csd:24%05d' % geographic_code}, is_valid_func=lambda f, geographic_code=geographic_code: int(f.get('CO_MUNCP')) == geographic_code, notes='Load the shapefile manually:\nfab alpheus update_boundaries:args="-r --merge combine -d data/shapefiles/public/boundaries/ca_qc_districts"', )
42.877005
186
0.61204
198370b8aa4515542204d0344e7d286fb2f76907
1,803
py
Python
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
pdbfairy/commands/compare_interactions.py
dannyroberts/pdbfairy
2cefd4a5e6c40f32e6fa3974ffd595fc336c582b
[ "BSD-3-Clause" ]
null
null
null
import difflib import io import click from pdbfairy import utils from pdbfairy.commands import find_interactions
33.388889
78
0.653356