refactor: Rastered
This commit is contained in:
parent
37ab5bdead
commit
b6d0715d44
|
@ -265,9 +265,8 @@ export default (latus) => class Vulnerable extends Trait {
|
|||
const fill = isDamage ? '#FF0000' : '#00FF77';
|
||||
this.entity.emitParticle('harm', {
|
||||
traits: {
|
||||
Textual: {
|
||||
state: {
|
||||
text: amount,
|
||||
RasterText: {
|
||||
params: {
|
||||
textStyle: {
|
||||
fill,
|
||||
fontFamily: 'joystix',
|
||||
|
@ -276,6 +275,11 @@ export default (latus) => class Vulnerable extends Trait {
|
|||
},
|
||||
},
|
||||
},
|
||||
Textual: {
|
||||
state: {
|
||||
text: amount,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user