Example #1
0
 def embed(state: LeaderSkillViewState):
     lls = state.l_mon.leader_skill
     rls = state.r_mon.leader_skill
     return EmbedView(embed_main=EmbedMain(
         title=ls_multiplier_text(lls, rls),
         description=Box(
             BoldText(
                 MonsterHeader.name(state.l_mon, link=True, show_jp=True)),
             Text(lls.desc if lls else 'None'),
             BoldText(
                 MonsterHeader.name(state.r_mon, link=True, show_jp=True)),
             Text(rls.desc if rls else 'None')),
         color=state.color),
                      embed_footer=embed_footer_with_state(state))
Example #2
0
 def embed(state: LeaderSkillSingleViewState):
     ls = state.mon.leader_skill
     return EmbedView(
         embed_main=EmbedMain(
             title=createSingleMultiplierText(ls),
             description=Box(
                 BoldText(MonsterHeader.name(state.mon, link=True, show_jp=True)),
                 Text(ls.desc if ls else 'None')),
             color=state.color),
         embed_footer=embed_footer_with_state(state))