Beispiel #1
0
 entity.EntityDetailPropertyListCollection(
     [
         entity.EntityDetailProperty(
             'Event type',
             True,
             transform_function=__get_event_type_and_reward,
             embed_only=True,
             for_embed=True,
             display_inline_for_embeds=False),
         entity.EntityDetailProperty(
             'Event type',
             True,
             transform_function=__get_event_type_and_reward,
             text_only=True),
         entity.EntityDetailProperty(
             'Chance', True, transform_function=__get_situation_chance),
         entity.EntityDetailProperty(
             'Limit per day',
             True,
             entity_property_name='DailyOccurrenceLimit',
             transform_function=core.transform_get_value),
         entity.EntityDetailProperty(
             'Triggered by',
             True,
             entity_property_name='TriggerType',
             transform_function=__get_situation_trigger),
         entity.EntityDetailProperty(
             'Requirement',
             True,
             entity_property_name='RequirementString',
             transform_function=__get_situation_requirements,
             embed_only=True,
             for_embed=True,
             display_inline_for_embeds=False),
         entity.EntityDetailProperty(
             'Requirement',
             True,
             entity_property_name='RequirementString',
             transform_function=__get_situation_requirements,
             text_only=True),
         entity.EntityDetailProperty(
             'Starts at',
             True,
             entity_property_name='FromDate',
             transform_function=core.transform_pss_datetime_with_timespan,
             display_inline_for_embeds=False,
             omit_time_if_zero=True,
             include_seconds_in_timespan=False),
         entity.EntityDetailProperty(
             'Ends at',
             True,
             entity_property_name='EndDate',
             transform_function=core.transform_pss_datetime_with_timespan,
             display_inline_for_embeds=False,
             omit_time_if_zero=True,
             include_seconds_in_timespan=False),
     ],
     properties_short=[
         entity.EntityDetailProperty(
             'Ends at',
             True,
             entity_property_name='EndDate',
             transform_function=core.transform_pss_datetime_with_timespan,
             display_inline_for_embeds=False,
             omit_time_if_zero=True,
             include_seconds_in_timespan=False)
     ],
     properties_mini=[]),
Beispiel #2
0
     entity.EntityDetailProperty('Description', False, omit_if_none=False, entity_property_name='CharacterDesignDescription'),
     property_short=entity.NO_PROPERTY
 ),
 'character_properties': entity.EntityDetailPropertyListCollection(
     [
         entity.EntityDetailProperty('Rarity', True, transform_function=__get_rarity),
         entity.EntityDetailProperty('Race', True, entity_property_name='RaceType'),
         entity.EntityDetailProperty('Collection', True, transform_function=__get_collection_name),
         entity.EntityDetailProperty('Gender', True, entity_property_name='GenderType'),
         entity.EntityDetailProperty('Ability', True, transform_function=__get_ability_stat),
         entity.EntityDetailProperty('HP', True, transform_function=__get_stat, stat_name='Hp'),
         entity.EntityDetailProperty('Attack', True, transform_function=__get_stat, stat_name='Attack'),
         entity.EntityDetailProperty('Repair', True, transform_function=__get_stat, stat_name='Repair'),
         entity.EntityDetailProperty('Pilot', True, transform_function=__get_stat, stat_name='Pilot'),
         entity.EntityDetailProperty('Science', True, transform_function=__get_stat, stat_name='Science'),
         entity.EntityDetailProperty('Engine', True, transform_function=__get_stat, stat_name='Engine'),
         entity.EntityDetailProperty('Weapon', True, transform_function=__get_stat, stat_name='Weapon'),
         entity.EntityDetailProperty('Walk/run speed', True, transform_function=__get_speed),
         entity.EntityDetailProperty('Fire resist', True, entity_property_name='FireResistance'),
         entity.EntityDetailProperty('Training cap', True, entity_property_name='TrainingCapacity'),
         entity.EntityDetailProperty('Slots', True, transform_function=__get_slots),
         entity.EntityDetailProperty('Role scores', True, transform_function=__get_pixel_prestige_hyperlink)
     ],
     properties_short=[
         entity.EntityDetailProperty('Rarity', False, entity_property_name='Rarity'),
         entity.EntityDetailProperty('Ability', False, transform_function=__get_ability),
         entity.EntityDetailProperty('Collection', True, transform_function=__get_collection_name)
     ]),
 'character_embed_settings': {
     'thumbnail_url': entity.EntityDetailProperty('thumbnail_url', False, entity_property_name='ProfileSpriteId', transform_function=sprites.get_download_sprite_link_by_property)
 },
Beispiel #3
0
                                          property_mini=entity.NO_PROPERTY),
    'description':
    entity.EntityDetailPropertyCollection(entity.EntityDetailProperty(
        'Description',
        False,
        omit_if_none=False,
        entity_property_name='',
        transform_function=None),
                                          property_long=entity.NO_PROPERTY,
                                          property_short=entity.NO_PROPERTY,
                                          property_mini=entity.NO_PROPERTY),
    'properties':
    entity.EntityDetailPropertyListCollection([
        entity.EntityDetailProperty(
            'Name', True, entity_property_name='', transform_function=None),
    ],
                                              properties_long=[],
                                              properties_short=[],
                                              properties_mini=[]),
    'embed_settings': {
        'author_url': entity.NO_PROPERTY,
        'color': entity.NO_PROPERTY,
        'description': entity.NO_PROPERTY,
        'footer': entity.NO_PROPERTY,
        'icon_url': entity.NO_PROPERTY,
        'image_url': entity.NO_PROPERTY,
        'thumbnail_url': entity.NO_PROPERTY,
        'timestamp': entity.NO_PROPERTY,
        'title': entity.NO_PROPERTY,
    }
}
Beispiel #4
0
 entity.EntityDetailPropertyListCollection([
     entity.EntityDetailProperty('Ranking',
                                 True,
                                 transform_function=__get_ranking),
     entity.EntityDetailProperty('Min trophies',
                                 True,
                                 transform_function=__get_min_trophies),
     entity.EntityDetailProperty('Members',
                                 True,
                                 transform_function=__get_member_count),
     entity.EntityDetailProperty('Trophies',
                                 True,
                                 transform_function=__get_trophies),
     entity.EntityDetailProperty(
         'Division',
         True,
         transform_function=__get_division_name_and_ranking),
     entity.EntityDetailProperty('Stars',
                                 True,
                                 transform_function=__get_stars),
     entity.EntityDetailProperty('Type',
                                 True,
                                 transform_function=__get_type),
     entity.EntityDetailProperty('Championship score',
                                 True,
                                 entity_property_name='ChampionshipScore'),
     entity.EntityDetailProperty(
         'history_note',
         False,
         transform_function=__get_historic_data_note,
         text_only=True)
 ]),
Beispiel #5
0
        entity.EntityDetailProperty('Title', False, omit_if_none=False, entity_property_name=TRAINING_DESIGN_DESCRIPTION_PROPERTY_NAME),
        property_mini=entity.NO_PROPERTY
    ),
    'description': entity.EntityDetailPropertyCollection(
        entity.EntityDetailProperty('Description', False, omit_if_none=False, entity_property_name='TrainingDescription'),
        property_short=entity.NO_PROPERTY
    ),
    'properties': entity.EntityDetailPropertyListCollection([
            entity.EntityDetailProperty('Duration', True, transform_function=__get_duration),
            entity.EntityDetailProperty('Cost', True, transform_function=__get_costs),
            entity.EntityDetailProperty('Fatigue', True, transform_function=__get_fatigue),
            entity.EntityDetailProperty('Training room', True, transform_function=__get_training_room),
            entity.EntityDetailProperty('Research required', True, transform_function=__get_required_research),
            entity.EntityDetailProperty('Consumable', True, transform_function=__get_training_item_name),
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, text_only=True),
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, embed_only=True, add_line_breaks=True)
    ],
    properties_short=[
            entity.EntityDetailProperty('Consumable', True, transform_function=__get_training_item_name, embed_only=True),
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, text_only=True),
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, embed_only=True, add_line_breaks=True)
    ],
    properties_mini=[
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, text_only=True),
            entity.EntityDetailProperty('Stat gain chances', False, transform_function=__get_stat_chances, embed_only=True, add_line_breaks=True)
    ]
    ),
    'embed_settings': {
        'thumbnail_url': entity.EntityDetailProperty('thumbnail_url', False, transform_function=__get_thumbnail_url)
    }
}
Beispiel #6
0
 entity.EntityDetailPropertyListCollection([
     entity.EntityDetailProperty('Account created',
                                 True,
                                 entity_property_name='CreationDate',
                                 transform_function=__get_timestamp),
     entity.EntityDetailProperty('Last Login',
                                 True,
                                 entity_property_name='LastLoginDate',
                                 transform_function=__get_timestamp),
     entity.EntityDetailProperty(
         'Fleet', True, transform_function=__get_fleet_name_and_rank),
     entity.EntityDetailProperty('Division',
                                 True,
                                 transform_function=__get_division_name),
     entity.EntityDetailProperty('Joined fleet',
                                 True,
                                 entity_property_name='AllianceJoinDate',
                                 transform_function=__get_fleet_joined_at),
     entity.EntityDetailProperty('Trophies',
                                 True,
                                 transform_function=__get_trophies),
     entity.EntityDetailProperty('League',
                                 True,
                                 transform_function=__get_league),
     entity.EntityDetailProperty('Stars',
                                 True,
                                 transform_function=__get_stars),
     entity.EntityDetailProperty('Star value',
                                 True,
                                 transform_function=__get_star_value),
     entity.EntityDetailProperty('Crew donated',
                                 True,
                                 transform_function=__get_crew_donated,
                                 text_only=True),
     entity.EntityDetailProperty('Crew borrowed',
                                 True,
                                 transform_function=__get_crew_borrowed,
                                 text_only=True),
     entity.EntityDetailProperty(
         'Crew donated/borrowed',
         True,
         transform_function=__get_crew_donated_borrowed,
         embed_only=True),
     entity.EntityDetailProperty('PVP win/lose/draw',
                                 True,
                                 transform_function=__get_pvp_attack_stats),
     entity.EntityDetailProperty(
         'Defense win/lose/draw',
         True,
         transform_function=__get_pvp_defense_stats),
     entity.EntityDetailProperty('Level',
                                 True,
                                 transform_function=__get_level),
     entity.EntityDetailProperty('Championship score',
                                 True,
                                 entity_property_name='ChampionshipScore'),
     entity.EntityDetailProperty('User type',
                                 True,
                                 transform_function=__get_user_type),
     entity.EntityDetailProperty(
         'history_note',
         False,
         transform_function=__get_historic_data_note,
         text_only=True)
 ]),
Beispiel #7
0
     entity_property_name='ResearchDescription'),
                                       property_short=entity.NO_PROPERTY),
 'properties':
 entity.EntityDetailPropertyListCollection(
     [
         entity.EntityDetailProperty(
             'Cost', True, transform_function=__get_costs),
         entity.EntityDetailProperty(
             'Duration', True, transform_function=__get_duration),
         entity.EntityDetailProperty(
             'Required LAB lvl',
             True,
             entity_property_name='RequiredLabLevel'),
         entity.EntityDetailProperty(
             'Required Research',
             True,
             transform_function=__get_required_research_name)
     ],
     properties_short=[
         entity.EntityDetailProperty('Cost',
                                     False,
                                     transform_function=__get_costs),
         entity.EntityDetailProperty('Duration',
                                     False,
                                     transform_function=__get_duration),
         entity.EntityDetailProperty(
             'LAB lvl', True, entity_property_name='RequiredLabLevel')
     ],
     properties_mini=[]),
 'embed_settings': {
     'thumbnail_url':
     entity.EntityDetailProperty(
Beispiel #8
0
 'title_news':
 entity.EntityDetailPropertyCollection(
     entity.EntityDetailProperty('Title',
                                 False,
                                 omit_if_none=False,
                                 entity_property_name='Title')),
 'description_news':
 entity.EntityDetailPropertyCollection(
     entity.EntityDetailProperty('Description',
                                 False,
                                 entity_property_name='Description',
                                 transform_function=__sanitize_text)),
 'properties_news':
 entity.EntityDetailPropertyListCollection([
     entity.EntityDetailProperty('Link',
                                 True,
                                 entity_property_name='Link',
                                 transform_function=__get_value)
 ]),
 'embed_settings': {
     'image_url':
     entity.EntityDetailProperty(
         'image_url',
         False,
         entity_property_name='SpriteId',
         transform_function=sprites.get_download_sprite_link_by_property),
     'footer':
     entity.EntityDetailProperty('footer',
                                 False,
                                 transform_function=__get_news_footer),
     'timestamp':
     entity.EntityDetailProperty('timestamp',
Beispiel #9
0
 entity.EntityDetailPropertyListCollection(
     [
         entity.EntityDetailProperty(
             'Rarity', True, entity_property_name='Rarity'),
         entity.EntityDetailProperty(
             'Type', True, transform_function=get_type),
         entity.EntityDetailProperty(
             'Bonus',
             True,
             transform_function=__get_item_bonus_type_and_value),
         entity.EntityDetailProperty(
             'Slot', True, transform_function=__get_item_slot),
         entity.EntityDetailProperty(
             'Stat gain chances',
             True,
             transform_function=__get_training_mini_details,
             embed_only=True,
             for_embed=True),
         entity.EntityDetailProperty(
             'Stat gain chances',
             True,
             transform_function=__get_training_mini_details,
             text_only=True),
         entity.EntityDetailProperty(
             'Market price',
             True,
             transform_function=__get_pretty_market_price),
         entity.EntityDetailProperty('Savy\'s Fair price',
                                     True,
                                     entity_property_name='FairPrice',
                                     transform_function=__get_price),
         entity.EntityDetailProperty(
             'Requirements',
             True,
             entity_property_name='RequirementString',
             transform_function=__get_requirements),
     ],
     properties_short=[
         entity.EntityDetailProperty('Rarity',
                                     False,
                                     entity_property_name='Rarity'),
         entity.EntityDetailProperty(
             'Bonus',
             False,
             transform_function=__get_item_bonus_type_and_value),
         entity.EntityDetailProperty('Slot',
                                     False,
                                     transform_function=__get_item_slot),
         entity.EntityDetailProperty('Can sell',
                                     False,
                                     transform_function=__get_can_sell,
                                     text_only=True),
         entity.EntityDetailProperty(
             'Market price',
             False,
             transform_function=__get_pretty_market_price,
             embed_only=True),
         entity.EntityDetailProperty('Savy\'s Fair price',
                                     True,
                                     entity_property_name='FairPrice',
                                     transform_function=__get_price),
     ],
     properties_mini=[]),