player.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. //
  2. // Your player character
  3. /*jshint multistr:true*/
  4. var player = new Avatar(getRandomInt(23, 28),
  5. getRandomInt(23, 28),
  6. getRandomInt(23, 28),
  7. getRandomInt(23, 28),
  8. getRandomInt(23, 28)
  9. );
  10. // Initialise player specific variables
  11. player.experience = 5;
  12. player.daysWoman = 0;
  13. function editPlayer()
  14. {
  15. $("#output").append(
  16. "<font size='-2'>\
  17. <a id='expandplayer' href='#'>Click Here To Edit Player</a>\
  18. <table class='slidertable3' id='playertable'>\
  19. <tr><td>Submissiveness</td><td><div id='slider_submissiveness_p'></div></td><td>Dominance</td></tr>\
  20. <tr><td>Domesticity</td><td><div id='slider_domesticity_p'></div></td><td>Adventurousness</td></tr>\
  21. <tr><td>Maternalism</td><td><div id='slider_maternalism_p'></div></td><td>Paternalism</td></tr>\
  22. <tr><td>Allure</td><td><div id='slider_allure_p'></div></td><td>Lustfulness</td></tr>\
  23. <tr><td>Homosexual</td><td><div id='slider_orientation_p'></div></td><td>Heterosexual</td></tr>\
  24. <tr><td>Boobs+</td><td><div id='slider_boobs_p'></div></td></tr>\
  25. <tr><td>Breast Rows</td><td><div id='slider_rows_p'></div></td></tr>\
  26. <tr><td>Cock+</td><td><div id='slider_cock_p'></div></td></tr>\
  27. <tr><td>Genitals</td><td><div id='slider_cocks_p'></div></td></tr>\
  28. <tr><td>Balls+</td><td><div id='slider_balls_p'></div></td></tr>\
  29. <tr><td>Futa+</td><td><div id='slider_futa_p'></div></td></tr>\
  30. <tr><td>Amazon+</td><td><div id='slider_amazon_p'></div></td></tr>\
  31. <tr><td>Push Submissiveness</td><td><div id='slider_psubmissiveness_p'></div></td></tr>\
  32. <tr><td>Push Domesticity</td><td><div id='slider_pdomesticity_p'></div></td></tr>\
  33. <tr><td>Push Maternalism</td><td><div id='slider_pmaternalism_p'></div></td></tr>\
  34. <tr><td>Push Allure</td><td><div id='slider_pallure_p'></div></td></tr>\
  35. <tr><td>Push Orientation</td><td><div id='slider_porientation_p'></div></td></tr>\
  36. <tr><td>Iron Will+</td><td><div id='slider_ironwill_p'></div></td></tr>\
  37. <tr><td>Resist Submissiveness</td><td><div id='slider_psubmissiveness_r'></div></td></tr>\
  38. <tr><td>Resist Domesticity</td><td><div id='slider_pdomesticity_r'></div></td></tr>\
  39. <tr><td>Resist Maternalism</td><td><div id='slider_pmaternalism_r'></div></td></tr>\
  40. <tr><td>Resist Allure</td><td><div id='slider_pallure_r'></div></td></tr>\
  41. <tr><td>Resist Orientation</td><td><div id='slider_porientation_r'></div></td></tr>\
  42. </table></font><br/>\
  43. ");
  44. $('#expandplayer').click(function(){
  45. $('#playertable').slideToggle('fast');
  46. });
  47. $("#slider_maternalism_p").slider({value:100-player.maternalism,min:0,max:100,slide:function(event, ui) {
  48. player.maternalism = 100 - ui.value;
  49. redraw();
  50. }});
  51. $("#slider_submissiveness_p").slider({value:100-player.submissiveness,min:0,max:100,slide:function(event, ui) {
  52. player.submissiveness = 100 - ui.value;
  53. redraw();
  54. }});
  55. $("#slider_domesticity_p").slider({value:100-player.domesticity,min:0,max:100,slide:function(event, ui) {
  56. player.domesticity = 100 - ui.value;
  57. redraw();
  58. }});
  59. $("#slider_allure_p").slider({value:100-player.allure,min:0,max:100,slide:function(event, ui) {
  60. player.allure = 100 - ui.value;
  61. redraw();
  62. }});
  63. $("#slider_orientation_p").slider({value:100-player.orientation,min:0,max:100,slide:function(event, ui) {
  64. player.orientation = 100 - ui.value;
  65. redraw();
  66. }});
  67. $("#slider_boobs_p").slider({value:player.Mods.breasts,min:-20,max:200,slide:function(event, ui) {
  68. player.Mods.breasts = ui.value;
  69. redraw();
  70. }});
  71. $("#slider_amazon_p").slider({value:player.Mods.amazon,min:0,max:20,slide:function(event, ui) {
  72. player.Mods.amazon = ui.value;
  73. redraw();
  74. }});
  75. $("#slider_cock_p").slider({value:player.Mods.cock,min:0,max:20,slide:function(event, ui) {
  76. player.Mods.cock = ui.value;
  77. redraw();
  78. }});
  79. $("#slider_balls_p").slider({value:player.Mods.balls,min:0,max:20,slide:function(event, ui) {
  80. player.Mods.balls = ui.value;
  81. redraw();
  82. }});
  83. $("#slider_futa_p").slider({value:player.Mods.futa,min:0,max:20,slide:function(event, ui) {
  84. player.Mods.futa = ui.value;
  85. redraw();
  86. }});
  87. $("#slider_psubmissiveness_p").slider({value:player.Mods.pushsubmissiveness,min:0,max:20,slide:function(event, ui) {
  88. player.Mods.pushsubmissiveness = ui.value;
  89. redraw();
  90. }});
  91. $("#slider_pdomesticity_p").slider({value:player.Mods.pushdomesticity,min:0,max:20,slide:function(event, ui) {
  92. player.Mods.pushdomesticity = ui.value;
  93. redraw();
  94. }});
  95. $("#slider_pmaternalism_p").slider({value:player.Mods.pushmaternalism,min:0,max:20,slide:function(event, ui) {
  96. player.Mods.pushmaternalism = ui.value;
  97. redraw();
  98. }});
  99. $("#slider_pallure_p").slider({value:player.Mods.pushallure,min:0,max:20,slide:function(event, ui) {
  100. player.Mods.pushallure = ui.value;
  101. redraw();
  102. }});
  103. $("#slider_porientation_p").slider({value:player.Mods.pushorientation,min:0,max:20,slide:function(event, ui) {
  104. player.Mods.pushorientation = ui.value;
  105. redraw();
  106. }});
  107. $("#slider_ironwill_p").slider({value:player.Mods.ironwill,min:0,max:4,slide:function(event, ui) {
  108. player.Mods.ironwill = ui.value;
  109. redraw();
  110. }});
  111. $("#slider_psubmissiveness_r").slider({value:player.Mods.resistsubmissiveness,min:0,max:20,slide:function(event, ui) {
  112. player.Mods.resistsubmissiveness = ui.value;
  113. redraw();
  114. }});
  115. $("#slider_pdomesticity_r").slider({value:player.Mods.resistdomesticity,min:0,max:20,slide:function(event, ui) {
  116. player.Mods.resistdomesticity = ui.value;
  117. redraw();
  118. }});
  119. $("#slider_pmaternalism_r").slider({value:player.Mods.resistmaternalism,min:0,max:20,slide:function(event, ui) {
  120. player.Mods.resistmaternalism = ui.value;
  121. redraw();
  122. }});
  123. $("#slider_pallure_r").slider({value:player.Mods.resistallure,min:0,max:20,slide:function(event, ui) {
  124. player.Mods.resistallure = ui.value;
  125. redraw();
  126. }});
  127. $("#slider_porientation_r").slider({value:player.Mods.resistorientation,min:0,max:20,slide:function(event, ui) {
  128. player.Mods.resistorientation = ui.value;
  129. redraw();
  130. }});
  131. $("#slider_rows_p").slider({value:player.physique.breastrows,min:0,max:6,slide:function(event, ui) {
  132. player.physique.breastrows = ui.value;
  133. redraw();
  134. }});
  135. $("#slider_cocks_p").slider({value:player.physique.gentialscnt,min:0,max:6,slide:function(event, ui) {
  136. player.physique.gentialscnt = ui.value;
  137. redraw();
  138. }});
  139. }