Jump to content
MakeWebGames

Version 1.0.1 released - Both dev and full version of the engine


a_bertrand

Recommended Posts

We just released the version 1.0.1 of the engine, which contains of course all the fixes and improvement of the different modules, but as well an improvement in the lib/items.php (which is the only file of the engine to be modified beside the config.xml of the engine to show the version number).

The difference is that now the functions

Item::UnEquip($slot) will return the un-equipped object if any

and

Item:Equip($slot) will return the previously equipped object on that same slot. For example you have rags equipped and you equip yourself with a leather armor, it will automatically un-equip the rags and equip the leather armor (as previously) but now it will as well return the rags as object.

This is used in the inventory module to store the info in the action logs.

If you don't want this, you could as well skip the release and run with the 1.0.0 version and just updates the modules manually.

To upgrade, you can unzip the release and replace your old files:

modules/config.xml

libs/items.php

with the new one found in the zip file.

This is valid for both the full engine as well as the dev version.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...