Skip to content

Commit

Permalink
Update scripts for classes support (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEady authored Oct 10, 2024
1 parent ef848fb commit dbe74b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/mobiles/npcs/startup/NPCCache.src
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Program NPC_By_Taxonomy_Cache()
var Tax_NPC_list := {}; // A temp array that holds all NPCs in a certain classification.
var NPC_keys := {}; // Holds all of the keys from npcdesc.cfg
var NPC_Ref := 0; // Used to hold a ObjRef to an NPC.
var class := 0; // Used to hold a reference to a datafile element.
var clazz := 0; // Used to hold a reference to a datafile element.
var temp := ""; // A temp variable to hold a string.

UnloadConfigFile(":npcs:settings");
Expand Down Expand Up @@ -49,7 +49,7 @@ Program NPC_By_Taxonomy_Cache()
endif
taxonomies.append(temp);
endforeach
class := NPC_Taxonomy_df.CreateElement("Taxonomies");
clazz := NPC_Taxonomy_df.CreateElement("Taxonomies");
// This is the fun part, building the datafile.
foreach thing in taxonomies
// Create the classification element in <thing>.
Expand All @@ -72,7 +72,7 @@ Program NPC_By_Taxonomy_Cache()
endif
endforeach
// Store the NPC_List in the datafile.
class.SetProp(thing, Tax_NPC_list);
clazz.SetProp(thing, Tax_NPC_list);
endforeach
Print("NPC datafile setup done.");
endprogram

0 comments on commit dbe74b6

Please sign in to comment.