Skip to content

Commit

Permalink
Testing another way of removing droids to no avail
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 30, 2020
1 parent 57d7cad commit 4a43dd1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Items/Nothing.gml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// #define CreateNothingCommand
// CommandCreate("createNothing", 0, ScriptWrap(CreateNothing));

#define CreateNothing()
global.Nothing = ItemCreate(
undefined,
"Nothing",
"Does absolutely nothing",
sprPoop,
ItemType.Consumable,
ItemSubType.None,
0,
0,
0,
[Item.Droid, 1],
ScriptWrap(HandleNothingOnUse),
0,
true
);

StructureAddItem(Structure.SewingStation, global.Nothing)

// Message
Trace("Added Item 'Nothing' to 'SewingStation'");

#define HandleNothingOnUse

3 changes: 3 additions & 0 deletions src/Main.gml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ SetXPCommand();
SetLevelCommand();

KillAllDroidsCommand();

// Items
// CreateNothing();

0 comments on commit 4a43dd1

Please sign in to comment.