summaryrefslogtreecommitdiff
path: root/lib/scpt/player.lua
blob: 1c8da791d879d40b238b29094cb833f8ad48ae67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
------------------------------------------------------------------------------
----------------------- Hook to create birth objects -------------------------
------------------------------------------------------------------------------
function __birth_hook_objects()

	-- Start the undeads, as undeads with the corruptions
	if get_subrace_name() == "Vampire" then
		player_gain_corruption(CORRUPT_VAMPIRE_TEETH)
		player_gain_corruption(CORRUPT_VAMPIRE_STRENGTH)
		player_gain_corruption(CORRUPT_VAMPIRE_VAMPIRE)
	end
end

-- Register in the hook list
add_hook_script(HOOK_BIRTH_OBJECTS, "__birth_hook_objects", "__birth_hook_objects")