This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vertices = []; | |
var edges = []; | |
vertices.push("A"); | |
vertices.push("B"); | |
vertices.push("C"); | |
vertices.push("D"); | |
vertices.push("E"); | |
edges.push(["A", "B"]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Gets the current max attack defensive power for this unit. | |
/// </summary> | |
/// <value> | |
/// The current max hitpoints. | |
/// </value> | |
public int CurrentMagic { | |
get { | |
int res = this.BaseMagic + (int)(((double)(this.CurrentMaxMagic - this.BaseMagic) / (double)this.GrowthCurve.Values[MaxLevel]) * GrowthModifier); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Wraps a bunch of stuff within the current request | |
*/ | |
function RequestContextClass(){ | |
this.ClientIp; | |
this.GeoIpData; | |
this.Request; | |
this.Response; | |
this.RequestStartTime; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "e_gear_worn_ring_health_1", | |
"inherits": "e_gear_base", | |
"components": { | |
"Gear": { | |
"Rarity": 10, | |
"Icon": "icon_gear_worn_ring_health_1", | |
"Requirements": { | |
"Equip": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "e_gear_worn_ring_health_1", | |
"inherits": "e_gear_base", | |
"components": { | |
"Gear": { | |
"Rarity": 10, | |
"Icon": "icon_gear_worn_ring_health_1", | |
"Requirements": { | |
"Equip": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "e_gear_worn_ring_health_1", | |
"inherits": "e_gear_base", | |
"components": { | |
"Gear": { | |
"Rarity": 10, | |
"Icon": "icon_gear_worn_ring_health_1", | |
"Requirements": { | |
"Equip": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** DANGER **/ | |
/* DO NOT RUN THIS SCRIPT UNLESS YOU KNOW WHAT YOU ARE DOING! */ | |
//** DANGER **/ | |
var redis = require("redis"); | |
var stacks = [{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.exchangeCurrency = function(args, context, callback){ | |
var callResponse = {}; | |
var targetCurrency = args.targetCurrency; | |
var targetCurrencyAmount = args.targetCurrencyAmount; | |
if(targetCurrency != null){ | |
if(targetCurrencyAmount > 0){ | |
ServiceLocator.PlayerManager.getOrCreatePlayer(context.UserId, context, function(player){ | |
var currencyTemplate = ServiceLocator.EntityTemplateManager.getTemplateByName(targetCurrency); | |
if(currencyTemplate != null){ | |
var currencyConfig = currencyTemplate.components.Resource; |