fix lizardfolk

This commit is contained in:
evilchili 2025-09-27 10:55:57 -07:00
parent 1af88dd147
commit ffb3a34842
2 changed files with 1 additions and 21 deletions

View File

@ -69,7 +69,7 @@ class Lizardfolk(types.NPC):
self.facial_structure,
])
return (
f"{self.fullname} ({self.pronouns}) is {types.a_or_an(self.age)} {self.age}, {self.skin_color}-scaled "
f"{self.name} ({self.pronouns}) is {types.a_or_an(self.age)} {self.age}, {self.skin_color}-scaled "
f"{self.ancestry.lower()} with {types.a_or_an(self.nose)} {self.nose} snout, {self.body} body and {trait}."
)

View File

@ -1,20 +0,0 @@
import pytest
from language.types import WeightedSet
from language.languages.common import common
@pytest.mark.parametrize('values,expected_members,expected_weights', [
((('foo', 1.0), ('bar', 0.5)), ('foo', 'bar'), (1.0, 0.5))
])
def test_WeightedSet(values, expected_members, expected_weights):
print(*values)
ws = WeightedSet(*values)
assert ws.members == expected_members
assert ws.weights == expected_weights
assert ws.random()
def test_common():
for i in range(50000):
assert common.word()