unit sprites and a buncha other stuff

This commit is contained in:
the me 2022-08-15 19:04:23 -07:00
parent e45eb49492
commit a537ea5cf2
37 changed files with 516 additions and 17 deletions

View 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_) {
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "weapon",
"tags": [],
"resourceType": "GMScript",
}