first commit
This commit is contained in:
15
media/lua/shared/NPCs/ExtraBodyLocations.lua
Normal file
15
media/lua/shared/NPCs/ExtraBodyLocations.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--***********************************************************
|
||||
--** THE INDIE STONE **
|
||||
--***********************************************************
|
||||
|
||||
-- Locations must be declared in render-order.
|
||||
-- Location IDs must match BodyLocation= and CanBeEquipped= values in items.txt.
|
||||
local group = BodyLocations.getGroup("Human")
|
||||
|
||||
|
||||
group:getOrCreateLocation("ArmRight")
|
||||
group:getOrCreateLocation("ArmLeft")
|
||||
group:getOrCreateLocation("LegRight")
|
||||
group:getOrCreateLocation("LegLeft")
|
||||
group:getOrCreateLocation("ArmRight_Prot")
|
||||
group:getOrCreateLocation("ArmLeft_Prot")
|
||||
26
media/lua/shared/NPCs/ExtraProfession.lua
Normal file
26
media/lua/shared/NPCs/ExtraProfession.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
local function AddProfession()
|
||||
local surgeon = ProfessionFactory.addProfession(
|
||||
'surgeon',
|
||||
getText("UI_prof_surgeon"),
|
||||
"profession_surgeon",
|
||||
-6,
|
||||
getText("UI_profdesc_surgeon")
|
||||
);
|
||||
surgeon:addXPBoost(Perks.Doctor, 4);
|
||||
surgeon:addXPBoost(Perks.SmallBlade, 3);
|
||||
surgeon:getFreeRecipes():add("Make metal hand");
|
||||
surgeon:getFreeRecipes():add("Make metal hook");
|
||||
surgeon:getFreeRecipes():add("Make wooden hook");
|
||||
surgeon:getFreeRecipes():add("Combine real surgeon kit");
|
||||
surgeon:getFreeRecipes():add("Combine surgeon kit");
|
||||
surgeon:getFreeRecipes():add("Combine improvised surgeon kit");
|
||||
|
||||
local profList = ProfessionFactory.getProfessions()
|
||||
for i=1,profList:size() do
|
||||
local prof = profList:get(i-1)
|
||||
BaseGameCharacterDetails.SetProfessionDescription(prof)
|
||||
end
|
||||
end
|
||||
|
||||
Events.OnGameBoot.Add(AddProfession);
|
||||
Reference in New Issue
Block a user