From 04487676f0a84857b7bb0cb2f852b1194eab40f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 16 Sep 2010 23:15:39 +0200 Subject: [PATCH] psu_game: Fix Lumilass options for all races and gender. --- p/lumilass-flesh-female.bin | Bin 0 -> 1660 bytes p/lumilass-flesh-male.bin | Bin 0 -> 1660 bytes p/{lumilassA.bin => lumilass-metal-female.bin} | Bin p/lumilass-metal-male.bin | Bin 0 -> 1660 bytes src/psu/psu_game.erl | 10 +++++++++- 5 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 p/lumilass-flesh-female.bin create mode 100755 p/lumilass-flesh-male.bin rename p/{lumilassA.bin => lumilass-metal-female.bin} (100%) mode change 100644 => 100755 create mode 100755 p/lumilass-metal-male.bin diff --git a/p/lumilass-flesh-female.bin b/p/lumilass-flesh-female.bin new file mode 100755 index 0000000000000000000000000000000000000000..13ef631c5398f767bd8684d99d4d9d02c13598fc GIT binary patch literal 1660 zcmeIy#cmY<5Czaz!)1eR&P~$v{Rjk(n%HB^%kvK~8d!n>^$tANeUjK?+fr zA{3<<#R;bjWhqB_Do~YbRHp_tsYQJn(2zz%(3nVC(2`cPrVUX<(~(YerVHKaK~H+o zn?Ces00SAsV1_W95sYLMqZz|^CJ;j`6NzIIlbOO)rZJs4%w-<)iDv;zS;lf!u$~QU zWD_Si$te;^;xuPC%LOiy%q1>!g{xfSCbziF9qw|E`#j(=DWvj*r#$01FL=!x-tvz3 zeBdLWC>G?Nl%OP~C`~wJC{G0{Qi;k`p(@p=NiAwqhq~0GJ`ISVF->SnGnx}g3tH2L zwzQ)?9f%^DX-sDZGnvI~<}jCd7O;>-EM^HyS;k6Mv6?lkWgY9;z-G3vm2GTi2Rqrt zZuYR3eI&4-101A%u)ahQO-DM>nJ#pt8{O$aPkPatKJ=v@{TaYO1~Hf+3}qO@8No!;xI=z$}x^}f|Hygkt9xYj`LjLBFS9hGFQ0H4Q_Ia z+uY$U_jt%79+N^UPk72RUh<09yx}eHc+Uqu@`=xU;Va+x&JTX_i$I7!NH8IU5=I)* Pl8*FbAS3_tcLTox*I%{; literal 0 HcmV?d00001 diff --git a/p/lumilass-flesh-male.bin b/p/lumilass-flesh-male.bin new file mode 100755 index 0000000000000000000000000000000000000000..fbba17924c66a87b362327071657a440e64cf335 GIT binary patch literal 1660 zcmeIyRZkWG6b9fA5Ib(n8}r8QPHe@(RxmaT-3-*tK;3L_?7&v+z>dw%&2F$2JHYOa zM}LCXzGu(h$~2}kgE;0gkNGTMA@M9@ zIV)IC0vp)K2~Ki~)12Wf=Qz(L5=r7RSGdYGu5*jqBy)$m+~YnEc+3-?l0quac+Lx6 z^M<#)<2@hv$R~;ixhEwlMQO@VmU2|25|yb!RjN^)8iY}sI@F~e^=Uvu!f8TNn$esV zM9`8pw51*G=|D#!iDEi4n8_?=Glw|lvVeswVlhitN<7P0$tqT}hPA9?Jqc`LGh5io zHny{ao$O*ad)Ui9_H%%PbO_d$NTTROXS&dpZgi&yJ?TX>z3D?=`q7^O#4wOS3}y&J z8OCs88Noa;tvu` U2x$l76< z6rwOiC`vKHC{8$KC`&oYQ-P{fqdGOHNiFKrfQB?8f=HUvf|j%*iq=FELkBw2iOzJR zJ3Z)0FM89DSo$-7fed0O!x+v8Mly=AjAJ|#h+`s?n9LNWGL7lXVJ`ES&jR9EN&?GR zP9jOHV?D<>&IwMEObVws%{k6LRG3!lUmfK4t1$VeHsu!B#mi8Q<~A7 z7DUmSHngQ3?TIFaX-sDZGnvI~<}jB9#Iuk^EM^HyNniylS;cDBu$DxU*uX|Mv6(Gw zWgFYs!A^Fun?3AhANy$+tS`~T(1DJ0qBC9SN;kUGgP!!FH+|?!KVs?600uIM!3<$2 z!x+v8Mly=gjA1O}7|#Uan8+UXvXA{7;2?)M%n^=qjN_c(B*~<3hO?aGJQujgB`$M~ z>)hZbx46w6?(%?#JmN8_JmD$Nc*!eX^M<#)<2@hv$R|GYg|B?$J3sizF9IR{Ai;!? ThEURyj`U<8BboT0zZ>`s3l_Ew literal 0 HcmV?d00001 diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 56f13e8..62ade89 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -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.