Created
February 26, 2019 03:39
-
-
Save SnowOnion/3774f0b8dbd6357541dca350297e8903 to your computer and use it in GitHub Desktop.
王者荣耀百里玄策,为了要一技能的 50 攻击力 buff,牺牲几次远端攻击是值得的呢?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 | |
我这玄策伤害 有一级打野刀吗 有一技能效果吗 用远端打吗 减防后的防御 基础攻击 = | |
let 攻击输出 = (基础攻击 + if 有一技能效果吗 then 50 else 0) | |
* (if 有一级打野刀吗 then 1.5 else 1) | |
* (if 用远端打吗 then 1.35 else 1) | |
in | |
伤害 减防后的防御 攻击输出 | |
布尔取值 = [False, True] | |
汉化 False = "无" | |
汉化 True = "有" | |
buff怪减防后的物理防御 = 183-78.4 | |
我玄策基础物理攻击 = 195 | |
结果表格 = [[汉化 有一级打野刀吗, 汉化 有一技能效果吗, 汉化 用远端打吗, show $ 我这玄策伤害 有一级打野刀吗 有一技能效果吗 用远端打吗 buff怪减防后的物理防御 我玄策基础物理攻击] | | |
有一级打野刀吗 <- 布尔取值, | |
有一技能效果吗 <- 布尔取值, | |
用远端打吗 <- 布尔取值] | |
表头 = ["有一级打野刀吗", "有一技能效果吗", "用远端打吗", "我这玄策伤害"] | |
打印结果表格 = putStrLn $ unlines $ map unwords (表头:结果表格) | |
main = 打印结果表格 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
输出: