Runes cast module fix

Some runes cannot be reversed

Gebo (ᚷ)
Hagalaz (ᚺ)
Isa (ᛁ)
Jera (ᛃ)
Sowilo (ᛋ)
Dagaz (ᛞ)
Ingwaz (ᛜ)

So the fixed cast_runes code is –

def cast_runes():
    non_reversing = {“Gebo”, “Hagalaz”, “Isa”, “Jera”, “Sowilo”, “Dagaz”, “Ingwaz”}
    chosen = random.sample(runes, 3)
    result = []
    for name, meaning in chosen:
        if name in non_reversing:
            result.append((name, meaning))
        else:
            reversed_flag = random.choice([True, False])
            if reversed_flag:
                result.append((f”{name} (reversed)”, f”Blocked or inverted: {meaning}”))
            else:
                result.append((name, meaning))
    return result

Leave a Reply