i am cheating
This commit is contained in:
parent
09ade10207
commit
1c893940ac
78 changed files with 466 additions and 94 deletions
22
eastern flames/scripts/stat/stat.gml
Normal file
22
eastern flames/scripts/stat/stat.gml
Normal file
|
@ -0,0 +1,22 @@
|
|||
//exit;
|
||||
global.stats = {}
|
||||
function stat(name_, fullname_, desc_, replacements_=[]) constructor {
|
||||
name = name_
|
||||
fullname = fullname_;
|
||||
desc = desc_;
|
||||
replacements = replacements_;
|
||||
global.stats[$name] = self;
|
||||
add = function(val) {
|
||||
return new unitstat(val, name, fullname, desc, replacements)
|
||||
}
|
||||
}
|
||||
#macro st global.stats
|
||||
|
||||
function unitstat(val, name_, fullname_, desc_, replacements_) : stat(name_, fullname_, desc_, replacements_) constructor {
|
||||
value = val;
|
||||
modifier = 0;
|
||||
}
|
||||
|
||||
nu stat("hp", "health", "vitality");
|
||||
nu stat("str", "strength", "physical power");
|
||||
nu stat("def", "defense", "physical defense");
|
12
eastern flames/scripts/stat/stat.yy
Normal file
12
eastern flames/scripts/stat/stat.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "stat",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue