psu_game: Fix Lumilass options for all races and gender.
This commit is contained in:
parent
9c12812364
commit
04487676f0
BIN
p/lumilass-flesh-female.bin
Executable file
BIN
p/lumilass-flesh-female.bin
Executable file
Binary file not shown.
BIN
p/lumilass-flesh-male.bin
Executable file
BIN
p/lumilass-flesh-male.bin
Executable file
Binary file not shown.
0
p/lumilassA.bin → p/lumilass-metal-female.bin
Normal file → Executable file
0
p/lumilassA.bin → p/lumilass-metal-female.bin
Normal file → Executable file
BIN
p/lumilass-metal-male.bin
Executable file
BIN
p/lumilass-metal-male.bin
Executable file
Binary file not shown.
@ -1737,7 +1737,15 @@ send_1a02(A, B, C, D, E) ->
|
||||
%% @doc Lumilass handler. Possibly more.
|
||||
%% @todo Figure out how Lumilass work exactly. The 4 bytes before the file may vary.
|
||||
send_1a03() ->
|
||||
{ok, File} = file:read_file("p/lumilassA.bin"),
|
||||
{ok, User} = egs_user_model:read(get(gid)),
|
||||
Character = User#egs_user_model.character,
|
||||
Filename = case {Character#characters.race, Character#characters.gender} of
|
||||
{cast, male} -> "p/lumilass-metal-male.bin";
|
||||
{cast, female} -> "p/lumilass-metal-female.bin";
|
||||
{_, male} -> "p/lumilass-flesh-male.bin";
|
||||
{_, female} -> "p/lumilass-flesh-female.bin"
|
||||
end,
|
||||
{ok, File} = file:read_file(Filename),
|
||||
send(<< (header(16#1a03))/binary, 0:32, File/binary >>).
|
||||
|
||||
%% @doc PP cube handler.
|
||||
|
Loading…
Reference in New Issue
Block a user