… | |
… | |
2710 | } |
2710 | } |
2711 | |
2711 | |
2712 | sub reload_archetypes { |
2712 | sub reload_archetypes { |
2713 | load_resource_file "$DATADIR/archetypes" |
2713 | load_resource_file "$DATADIR/archetypes" |
2714 | or die "unable to load archetypes\n"; |
2714 | or die "unable to load archetypes\n"; |
|
|
2715 | #d# NEED to laod twice to resolve forward references |
|
|
2716 | # this really needs to be done in an extra post-pass |
|
|
2717 | # (which needs to be synchronous, so solve it differently) |
|
|
2718 | load_resource_file "$DATADIR/archetypes" |
|
|
2719 | or die "unable to load archetypes\n"; |
2715 | } |
2720 | } |
2716 | |
2721 | |
2717 | sub reload_treasures { |
2722 | sub reload_treasures { |
2718 | load_resource_file "$DATADIR/treasures" |
2723 | load_resource_file "$DATADIR/treasures" |
2719 | or die "unable to load treasurelists\n"; |
2724 | or die "unable to load treasurelists\n"; |