unit sprites and a buncha other stuff
This commit is contained in:
parent
e45eb49492
commit
a537ea5cf2
37 changed files with 516 additions and 17 deletions
28
eastern flames/scripts/weapon/weapon.gml
Normal file
28
eastern flames/scripts/weapon/weapon.gml
Normal file
|
@ -0,0 +1,28 @@
|
|||
global.weapons = {};
|
||||
#macro wp global.weapons
|
||||
function weapon(name_, description_, statmod_) constructor {
|
||||
name = name_;
|
||||
description = description_;
|
||||
statmod = statmod_;
|
||||
}
|
||||
|
||||
function c_addweapon(target, weapon_) {
|
||||
array_push(target.inventory, deep_copy(weapon_));
|
||||
}
|
||||
|
||||
function c_modifierreset(target) {
|
||||
var dudes = variable_struct_get_names(target.data);
|
||||
var lads = variable_struct_get_names(st);
|
||||
var i;
|
||||
for (i=0; i<array_length(dudes); i++) {
|
||||
while !array_contains(lads, dudes[i]) || dudes[i] == "hp" {
|
||||
array_delete(dudes, i, 1);
|
||||
}
|
||||
if i > array_length(dudes) break;
|
||||
target.data[$dudes[i]].val = target.data[$dudes[i]].cap;
|
||||
}
|
||||
}
|
||||
|
||||
function c_wpeval(target, weapon_) {
|
||||
|
||||
}
|
12
eastern flames/scripts/weapon/weapon.yy
Normal file
12
eastern flames/scripts/weapon/weapon.yy
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "weapon",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue