Skip to content

Instantly share code, notes, and snippets.

雌火竜 リオレイア
雌火竜 ヌシ・リオレイア
火竜 リオレウス
火竜 ヌシ・リオレウス
奇怪竜 フルフル
岩竜 バサルモス
角竜 ディアブロス
角竜 ヌシ・ディアブロス
金獅子 ラージャン
鋼龍 クシャルダオラ
Rathian
Rathalos
Pink Rathian
Azure Rathalos
Gold Rathian
Silver Rathalos
Yian Kut-Ku
B. Yian Kut-Ku
Gypceros
Purple Gypceros
@AsteriskAmpersand
AsteriskAmpersand / dying.py
Created October 31, 2023 19:05
Calculates odds of dying given toughness and diehard
import numpy as np
def makeMatrix(wound,toughness = False,diehard = False, remake = True):
deathvalue = 5 + diehard
m = [[0 for j in range(deathvalue)] for i in range(deathvalue)]
dieroll = [i for i in range(1,21)]
m[0][0] = 1.0
for i in range(1,deathvalue-1):
critSuccess = len(list(filter(lambda d: d == 20,dieroll)))
success = len(list(filter(lambda d: d!=20 and d >= (10+i-toughness),dieroll)))
================================================================
Wooden Log [1u/2s] - Logger [Wooden Log]
--------------------------------
================================================================
================================================================
Leaves [1u/2s] - Logger [Leaves]
--------------------------------
================================================================