mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-04 05:16:21 -04:00
Refactored Junk Dealer script, Selling junk items will now place "buy back" device in datapad
Moved the SUI Windows into Java so no need for global variables, updated conversation messages for the changes to ProsePackage, added the "buy back" control device - this contains the latest 10 items you sold to the junk dealer.
This commit is contained in:
@@ -278,6 +278,15 @@ public class CreatureObject extends TangibleObject implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public void deductCashCredits(int amountToDeduct) {
|
||||
synchronized(objectMutex) {
|
||||
this.cashCredits -= amountToDeduct;
|
||||
}
|
||||
if(getClient() != null && getClient().getSession() != null) {
|
||||
getClient().getSession().write(messageBuilder.buildCashCreditsDelta(cashCredits));
|
||||
}
|
||||
}
|
||||
|
||||
public void setCashCredits(int cashCredits) {
|
||||
synchronized(objectMutex) {
|
||||
this.cashCredits = cashCredits;
|
||||
@@ -1805,5 +1814,4 @@ public class CreatureObject extends TangibleObject implements Serializable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user