|
13 | 13 | class Villager:
|
14 | 14 | name: str
|
15 | 15 | bachelor: bool
|
16 |
| - locations: Tuple[str] |
| 16 | + locations: Tuple[str, ...] |
17 | 17 | birthday: str
|
18 |
| - gifts: Tuple[str] |
| 18 | + gifts: Tuple[str, ...] |
19 | 19 | available: bool
|
20 | 20 | mod_name: str
|
21 | 21 |
|
@@ -366,10 +366,11 @@ def villager(name: str, bachelor: bool, locations: Tuple[str, ...], birthday: st
|
366 | 366 | return npc
|
367 | 367 |
|
368 | 368 |
|
369 |
| -def make_bachelor(mod_name: str, npc: Villager): |
| 369 | +def adapt_wizard_to_sve(mod_name: str, npc: Villager): |
370 | 370 | if npc.mod_name:
|
371 | 371 | mod_name = npc.mod_name
|
372 |
| - return Villager(npc.name, True, npc.locations, npc.birthday, npc.gifts, npc.available, mod_name) |
| 372 | + # The wizard leaves his tower on sunday, for like 1 hour... Good enough to meet him! |
| 373 | + return Villager(npc.name, True, npc.locations + forest, npc.birthday, npc.gifts, npc.available, mod_name) |
373 | 374 |
|
374 | 375 |
|
375 | 376 | def register_villager_modification(mod_name: str, npc: Villager, modification_function):
|
@@ -452,7 +453,7 @@ def register_villager_modification(mod_name: str, npc: Villager, modification_fu
|
452 | 453 |
|
453 | 454 | # Modified villagers; not included in all villagers
|
454 | 455 |
|
455 |
| -register_villager_modification(ModNames.sve, wizard, make_bachelor) |
| 456 | +register_villager_modification(ModNames.sve, wizard, adapt_wizard_to_sve) |
456 | 457 |
|
457 | 458 | all_villagers_by_name: Dict[str, Villager] = {villager.name: villager for villager in all_villagers}
|
458 | 459 | all_villagers_by_mod: Dict[str, List[Villager]] = {}
|
|
0 commit comments