add readme

This commit is contained in:
bridge
2025-08-25 00:53:55 +08:00
parent 3c824b4150
commit 933acc2edb
5 changed files with 163 additions and 10 deletions

View File

@@ -147,8 +147,8 @@ def get_new_avatar_from_ordinary(world: World, current_year: Year, name: str, ag
birth_year = current_year - age.age
birth_month = random.choice(list(Month))
cultivation_progress = CultivationProgress(0)
pos_x = random.randint(0, 100)
pos_y = random.randint(0, 100)
pos_x = random.randint(0, world.map.width)
pos_y = random.randint(0, world.map.height)
gender = random.choice(list(Gender))
return Avatar(

View File

@@ -67,7 +67,6 @@ class Tile():
class Map():
"""
通过dict记录position 到 tile。
TODO: 有特色的地貌,比如西部大漠,东部平原,最东海洋和岛国。南边热带雨林,北边雪山和冰原。
"""
def __init__(self, width: int, height: int):
self.tiles = {}