Skip to content

Instantly share code, notes, and snippets.

@SnowOnion
SnowOnion / 百里玄策1.hs
Created February 26, 2019 03:39
王者荣耀百里玄策,为了要一技能的 50 攻击力 buff,牺牲几次远端攻击是值得的呢?
-- https://tieba.baidu.com/p/6048246840
-- 动机 https://tieba.baidu.com/p/6030357600?fid=25249178&pid=124195062887&cid=124202650757&red_tag=0539315367#124202650757
减伤比例 :: Fractional n => n -> n
减伤比例 减防后的防御 = 减防后的防御 / (600 + 减防后的防御)
伤害 :: Fractional n => n -> n -> n
伤害 减防后的防御 攻击输出 = 攻击输出 * (1 - 减伤比例 减防后的防御)
我这玄策伤害 :: Fractional n => Bool -> Bool -> Bool -> n -> n -> n