Browse Source

fixes #778

tags/v0.2.1^2
Big Bad Waffle 5 years ago
parent
commit
e46472a9e2
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/client/js/rendering/renderer.js
  2. +1
    -1
      src/server/components/stats.js

+ 2
- 2
src/client/js/rendering/renderer.js View File

@@ -648,11 +648,11 @@ define([
let graphics = new pixi.Graphics();

let alpha = obj.alpha;
if (alpha !== null)
if (obj.has('alpha'))
graphics.alpha = alpha;

let fillAlpha = obj.fillAlpha;
if (fillAlpha === null)
if (obj.has('fillAlpha'))
fillAlpha = 1;

graphics.beginFill(obj.color || '0x48edff', fillAlpha);


+ 1
- 1
src/server/components/stats.js View File

@@ -161,7 +161,7 @@ module.exports = {

if (values.hp < values.hpMax) {
values.hp += regenHp;
this.obj.syncer.setObject(false, 'stats', 'values', 'hp', this.values.hp);
this.obj.syncer.setObject(false, 'stats', 'values', 'hp', values.hp);
}

if (values.hp > values.hpMax) {


Loading…
Cancel
Save