Skip to content

Instantly share code, notes, and snippets.

View tchalvak's full-sized avatar
🐙
making another SPA

Roy R. tchalvak

🐙
making another SPA
View GitHub Profile
diff --git a/deploy/lib/char/Player.class.php b/deploy/lib/char/Player.class.php
index 81f04fe..277c3d8 100644
--- a/deploy/lib/char/Player.class.php
+++ b/deploy/lib/char/Player.class.php
@@ -61,5 +61,9 @@ class Player
public function as_array() {
return (array) $this->vo;
}
+
+ public function get_player_id() {
Experience System Goals:
Disincentivize spamming by rewarding risk
(i.e. winning against a single strong target should be more rewarding than winning against the equivalent hp of many weak targets)
(and actually taking damage should be more rewarding than taking no damage)
Reward tactics, better damage with the same tools, more than spamming.
(e.g. rewards for a kill instead of just a hit and run)
(and more experience for damage done)
(and eventually additive use of effects like poison)
Reward difficulty
@tchalvak
tchalvak / gist:233163
Created November 12, 2009 18:47
Gallery2 include names.
public $includes = array(
"list" => array(
"desc" => "List of images and image detail"),
"toplevel" => array(
"desc" => "List of top-level categories only",
"fixed" => array(
"action" => "toplevel")),
"nestedlevels" => array(
"desc" => "List of all category depths",
"default" => array(
<?php
} else if ($victom == "Thief") { // You only get ganged up on by the thieves if you're already trying to attack the theif.
// Check the counter to see whether they've attacked a thief multiple times in a row.
if(SESSION::get('counter')){
$counter = SESSION::get('counter');
} else {
$counter = 1;
}
$counter = $counter + 1;
} else if ($victom == "Group of Theives") {
$turn_cost = 1;
if (getcounter($username) <5) {
echo "A group of theives is waiting for you. They seem to be angered by your attacks on their Theif brethren."
$Group_attack= rand(200, 500)
if (!subtracthealth($username, $Group_attack)
How do I shot webs?
void function afunctionzors(){
sprintf("pie");
}
RRrrandom gist test!