Ejemplo n.º 1
0
    public override void report(int worldId)
    {
        material = ItemMaterialMasterManager.getInstance().getMaterialBuilderFromId(OBSERVE_ITEM_ID);
        ItemMaterialProgress progress = ItemMaterialMasterManager.getInstance().getProgress(OBSERVE_ITEM_ID);

        progress.Quality += progressQuality();
        progress.Level    = progressLevel(progress.Quality);

        ObserverHelper.saveToFile <ItemMaterialProgress>(progress, "ItemMaterialProgress", OBSERVE_ITEM_ID, worldId);
    }
Ejemplo n.º 2
0
 public ItemMaterial(ItemMaterialBuilder builder)
 {
     this.ID                     = builder.getId();
     this.QUALITY                = builder.getQuality();
     this.MASS                   = builder.getMass();
     this.VALUE                  = builder.getItemValue();
     this.CONSUMABILITY          = builder.getConsumability();
     this.NAME                   = builder.getName();
     this.DESCRIPTOIN            = builder.getDescription();
     this.FLAVOR_TEXT            = builder.getFlavorText();
     this.LEVEL                  = builder.getLevel();
     this.HEAVINESS              = builder.getHeaviness();
     this.ADDITIONAL_DESCRIPTION = builder.getAdditionalDescription();
     this.ADDITIONAL_FLAVOR      = builder.getAdditionalFlavor();
     this.ITEM_ATTRIBUTE         = builder.getItemAttribute();
 }